:root {
    color-scheme: dark;
    --bg: #08111f;
    --panel: #101c2d;
    --panel-soft: #15243a;
    --line: #263a55;
    --text: #f3f7fb;
    --muted: #9fb0c7;
    --brand: #45b6ff;
    --brand-strong: #157dd1;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: radial-gradient(circle at top left, #15304d 0, var(--bg) 42%); color: var(--text); }
a { color: inherit; text-decoration: none; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.sidebar { padding: 28px 20px; border-right: 1px solid var(--line); background: rgba(8,17,31,.88); }
.brand { font-size: 1.35rem; font-weight: 800; letter-spacing: .02em; }
.brand span { color: var(--brand); }
.subtitle { color: var(--muted); font-size: .82rem; margin-top: 5px; }
.nav { display: grid; gap: 8px; margin-top: 34px; }
.nav a { padding: 11px 13px; border-radius: 10px; color: var(--muted); }
.nav a:hover, .nav a.active { background: var(--panel-soft); color: var(--text); }
.main { padding: 32px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.eyebrow { color: var(--brand); text-transform: uppercase; letter-spacing: .13em; font-size: .75rem; font-weight: 700; }
h1 { margin: 4px 0 0; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.muted { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.card { background: linear-gradient(145deg, rgba(21,36,58,.96), rgba(13,25,42,.96)); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.metric { font-size: 2.25rem; font-weight: 800; margin-top: 8px; }
.panel { margin-top: 20px; background: rgba(16,28,45,.95); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.empty { padding: 28px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; color: var(--muted); }
.button, button { border: 0; border-radius: 10px; background: var(--brand-strong); color: white; padding: 11px 16px; font: inherit; font-weight: 700; cursor: pointer; }
.button.secondary, button.secondary { background: var(--panel-soft); border: 1px solid var(--line); }
.logout { display: inline; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(430px, 100%); background: rgba(16,28,45,.97); border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: 0 25px 80px rgba(0,0,0,.35); }
.login-card h1 { margin-bottom: 8px; }
label { display: grid; gap: 7px; margin-top: 18px; color: var(--muted); font-size: .9rem; }
input { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #091423; color: var(--text); padding: 12px 13px; font: inherit; }
.login-card button { width: 100%; margin-top: 22px; }
.alert { border: 1px solid rgba(255,125,141,.4); color: #ffd5db; background: rgba(120,25,44,.35); border-radius: 10px; padding: 12px; margin: 16px 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.badge { display: inline-flex; padding: 4px 9px; border-radius: 999px; background: #153b5c; color: #bde5ff; font-size: .8rem; }
@media (max-width: 900px) { .shell { grid-template-columns: 1fr; } .sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px; } .nav { display: flex; flex-wrap: wrap; margin-top: 16px; } .main { padding: 22px 16px; } .cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } .topbar { align-items: flex-start; flex-direction: column; } .panel { overflow-x: auto; } }
