/* VIDORA admin */
:root { --bg: #f3f4f8; --card: #fff; --text: #1d2030; --muted: #6d7284; --line: #e4e6ee; --acc: #ff3b5c; --acc2: #ff8a1f; --side: #14141d; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Inter", "Segoe UI", system-ui, Arial, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; }
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); } .sm { font-size: 12.5px; } .center { text-align: center; } .r { text-align: right; }
code { background: #f0f1f6; padding: 3px 7px; border-radius: 6px; font-size: 13px; }

.layout { display: flex; min-height: 100vh; }
.side { width: 230px; background: var(--side); color: #fff; display: flex; flex-direction: column; flex-shrink: 0; position: sticky; top: 0; height: 100vh; }
.brand { font-weight: 900; font-size: 20px; padding: 22px 20px; display: flex; align-items: center; gap: 10px; letter-spacing: .5px; }
.brand small { font-weight: 500; font-size: 12px; opacity: .6; }
.tri { width: 0; height: 0; border-left: 16px solid #ff2d55; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.side nav { flex: 1; padding: 0 10px; }
.side a { display: flex; gap: 10px; align-items: center; color: #c8cadb; padding: 11px 12px; border-radius: 10px; margin-bottom: 3px; }
.side a:hover { background: #1f1f2c; text-decoration: none; color: #fff; }
.side a.on { background: linear-gradient(90deg, var(--acc), var(--acc2)); color: #fff; font-weight: 700; }
.side-foot { padding: 10px; border-top: 1px solid #25253a; }

.main { flex: 1; min-width: 0; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 24px; display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 5; }
.topbar h1 { margin: 0; font-size: 21px; }
.burger { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; }
.content { padding: 22px 24px 60px; max-width: 1200px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.card.nopad { padding: 0; overflow: hidden; }
.card h2 { margin: 0 0 14px; font-size: 17px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.stat b { display: block; font-size: 28px; background: linear-gradient(90deg, var(--acc), var(--acc2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 13px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }
.alert-ok { background: #e7f8ee; color: #136c3a; }
.alert-err { background: #fde8ea; color: #a4152c; }
.alert-warn { background: #fff4de; color: #8a5a00; }

.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); background: #fafbfd; }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl td.wrap { max-width: 280px; }
.acts { white-space: nowrap; }
.thumb { width: 44px; height: 78px; object-fit: cover; border-radius: 8px; background: #ddd; display: block; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.p-ok { background: #e3f7ea; color: #14803f; } .p-off { background: #eceef3; color: #6d7284; } .p-bad { background: #fde8ea; color: #a4152c; } .p-prem { background: #fff0d9; color: #b25e00; }

.btn { display: inline-block; background: linear-gradient(90deg, var(--acc), var(--acc2)); color: #fff; border: 0; border-radius: 10px; padding: 11px 20px; font-weight: 700; cursor: pointer; font-size: 14.5px; }
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-alt { background: #e9ebf2; color: var(--text); }
.btn-danger { background: #e5364b; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.actions { display: flex; gap: 10px; margin-top: 6px; }

.form label, label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
label small { display: block; font-weight: 400; color: var(--muted); margin-top: 5px; }
.form > small, .card > small { color: var(--muted); display: block; margin-bottom: 8px; }
input[type=text], input[type=search], input[type=number], input[type=password], input[type=datetime-local], input[type=file], select, textarea {
    width: 100%; margin-top: 6px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(255, 59, 92, .35); border-color: var(--acc); }
textarea.mono { font-family: Consolas, Menlo, monospace; font-size: 13px; }
.toolbar input[type=search] { margin: 0; width: 240px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
label.chk { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 8px; }
label.chk input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--acc); }
select.inl { width: auto; margin: 0; padding: 7px 10px; }

.row-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-form input[type=text], .row-form input[type=number] { margin: 0; width: auto; flex: 1; min-width: 120px; }
.row-form label { margin: 0; }
.row-form.line { padding: 10px 0; border-bottom: 1px solid var(--line); }
.row-form .w-icon { flex: 0 0 70px; min-width: 70px; text-align: center; font-size: 18px; }
.row-form .w-num { flex: 0 0 90px; min-width: 80px; }

.cur-thumb { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.cur-thumb img { width: 90px; height: 160px; object-fit: cover; border-radius: 10px; }

.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.pager a { padding: 7px 13px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--text); font-weight: 700; }
.pager a.on { background: var(--acc); color: #fff; border-color: var(--acc); }

/* login */
.login-body { display: grid; place-items: center; min-height: 100vh; background: linear-gradient(135deg, #fde8ec, #fff3e8); }
.login-card { background: #fff; padding: 34px; border-radius: 18px; width: min(380px, 92vw); box-shadow: 0 20px 50px rgba(30, 32, 48, .15); }
.login-card .brand { color: var(--text); padding: 0 0 4px; }
.login-card .brand.big { font-size: 28px; }
.login-card .btn { width: 100%; margin-top: 6px; padding: 13px; }

@media (max-width: 900px) {
    .side { position: fixed; left: -240px; z-index: 30; transition: left .25s; height: 100%; }
    .side.open { left: 0; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45); }
    .burger { display: block; }
    .two, .grid2, .grid3 { grid-template-columns: 1fr; }
    .content { padding: 16px 14px 60px; }
}

.steps { padding-left: 20px; line-height: 1.8; margin: 0; }
