/* =====================================================================
   TaskFlow — "Obsidian Flux" design system
   Deep-navy dark mode. Accents: sky blue, emerald, amber.
   Vanilla CSS3: variables, flexbox, grid. No frameworks.
   ===================================================================== */

:root {
    /* Surfaces (tonal layering) */
    --bg:               #0b1326;
    --surface-lowest:   #060e20;
    --surface-low:      #131b2e;
    --surface:          #171f33;
    --surface-high:     #222a3d;
    --surface-higher:   #2d3449;
    --surface-bright:   #31394d;

    /* Text */
    --text:             #dae2fd;
    --text-soft:        #c1c7d3;
    --text-dim:         #8b919d;

    /* Outlines */
    --outline:          #8b919d;
    --outline-variant:  #414751;
    --border:           rgba(255,255,255,.09);

    /* Accents */
    --primary:          #a4c9ff;   /* sky blue */
    --primary-container:#60a5fa;
    --on-primary:       #00224a;
    --primary-soft:     rgba(96,165,250,.14);

    --secondary:        #45dfa4;   /* emerald */
    --secondary-soft:   rgba(69,223,164,.14);

    --tertiary:         #ffb95f;   /* amber */
    --tertiary-soft:    rgba(255,185,95,.14);

    --error:            #ffb4ab;
    --error-soft:       rgba(255,180,171,.12);

    /* Status mapping */
    --todo:             #8b919d;
    --in_progress:      #60a5fa;
    --under_review:     #ffb95f;
    --completed:        #45dfa4;

    --radius-sm:        8px;
    --radius:           12px;
    --radius-lg:        16px;
    --radius-pill:      9999px;

    --shadow:           0 1px 2px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.25);
    --shadow-lg:        0 20px 50px rgba(0,0,0,.5);

    --sidebar-w:        260px;

    --font:             "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-head:        "Hanken Grotesk", "Inter", sans-serif;
    --font-label:       "Geist", "Inter", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    font-size: 14px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1 { font-family: var(--font-head); font-size: 2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
h2 { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; }
h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; }
a { color: var(--primary); text-decoration: none; }
.muted { color: var(--text-soft); font-size: .9rem; }

.material-symbols-outlined {
    font-family: "Material Symbols Outlined";
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    user-select: none;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--surface-lowest); }
::-webkit-scrollbar-thumb { background: var(--outline-variant); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ---------------- App shell ---------------- */
.app-shell { display: flex; min-height: 100vh; }

/* ---------------- Sidebar ---------------- */
.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--outline-variant);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 1.5rem 0;
}
.brand { padding: 0 1.5rem 1.75rem; }
.brand-name { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--primary); letter-spacing: -.01em; }
.brand-sub { font-size: .8rem; color: var(--text-dim); }

.mainnav { display: flex; flex-direction: column; gap: .25rem; padding: 0 .75rem; flex: 1; }
.navlink {
    display: flex;
    align-items: center;
    gap: .85rem;
    color: var(--text-soft);
    padding: .65rem .75rem;
    border-radius: var(--radius-sm);
    font-size: .92rem;
    font-weight: 500;
    transition: background .15s, color .15s;
}
.navlink .material-symbols-outlined { font-size: 22px; }
.navlink:hover { background: var(--surface-high); color: var(--text); }
.navlink.active {
    background: var(--surface-high);
    color: var(--primary);
    font-weight: 700;
    box-shadow: inset -2px 0 0 var(--primary);
}
.navlink.active .material-symbols-outlined { font-variation-settings: 'FILL' 1; }
.navlink-sm { padding: .5rem .75rem; font-size: .88rem; }
.navlink-sm .material-symbols-outlined { font-size: 20px; }

.sidebar-cta { padding: 1rem 1.5rem .5rem; }
.sidebar-foot { padding: .75rem .75rem 0; margin-top: .5rem; border-top: 1px solid rgba(255,255,255,.06); }

/* ---------------- App main column ---------------- */
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(11,19,38,.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--outline-variant);
    padding: 0 2rem;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 40;
}
.sidebar-toggle {
    display: none;
    background: none; border: 1px solid var(--outline-variant);
    color: var(--text); padding: .4rem .5rem; border-radius: var(--radius-sm); cursor: pointer;
}
.topbar-search {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 420px;
    width: 100%;
}
.topbar-search .material-symbols-outlined {
    position: absolute; left: .85rem; color: var(--text-dim); font-size: 20px; pointer-events: none;
}
.topbar-search input {
    width: 100%;
    background: var(--surface-low);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-pill);
    padding: .55rem 1rem .55rem 2.5rem;
    color: var(--text);
    font-family: inherit;
    font-size: .9rem;
}
.topbar-search input::placeholder { color: var(--text-dim); }
.topbar-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

.topbar-right { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.icon-btn {
    position: relative;
    background: none; border: none; cursor: pointer;
    color: var(--text-soft); display: grid; place-items: center;
    transition: color .15s;
}
.icon-btn:hover { color: var(--primary); }
.icon-btn .material-symbols-outlined { font-size: 24px; }

.userchip { display: flex; align-items: center; gap: .65rem; padding-left: 1.25rem; border-left: 1px solid var(--outline-variant); }
.userchip-meta { display: flex; flex-direction: column; line-height: 1.15; }
.userchip-name { font-size: .82rem; font-weight: 700; color: var(--text); }
.userchip-role { font-size: .7rem; color: var(--text-dim); }

.badge {
    font-family: var(--font-label);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .2rem .55rem;
    border-radius: var(--radius-pill);
    font-weight: 500;
}
.badge-admin    { color: var(--primary);   background: var(--primary-soft); }
.badge-manager  { color: var(--secondary); background: var(--secondary-soft); }
.badge-employee { color: var(--text-soft); background: rgba(255,255,255,.08); }

/* ---------------- Layout ---------------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}
.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.page-head .muted { font-size: 1rem; color: var(--text-soft); }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: .5rem;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 800px){ .grid-2 { grid-template-columns: 1fr; } }

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-sm);
    padding: .6rem 1.1rem;
    font-size: .9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, transform .1s;
    background: var(--surface-high);
    color: var(--text);
}
.btn .material-symbols-outlined { font-size: 20px; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary-container); color: var(--on-primary); border-color: transparent; }
.btn-primary:hover { background: var(--primary); }
.btn-success { background: var(--secondary); color: #003825; border-color: transparent; }
.btn-success:hover { filter: brightness(1.08); }
.btn-danger  { background: transparent; color: var(--error); border-color: var(--outline-variant); }
.btn-danger:hover { border-color: var(--error); background: var(--error-soft); }
.btn-outline { background: transparent; border-color: var(--outline-variant); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text-soft); border-color: transparent; }
.btn-ghost:hover { background: var(--surface-high); color: var(--text); }
.btn-sm { padding: .35rem .7rem; font-size: .8rem; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

.pill {
    font-family: var(--font-label);
    font-size: .72rem;
    background: var(--primary-soft);
    color: var(--primary);
    padding: .15rem .6rem;
    border-radius: var(--radius-pill);
    font-weight: 500;
}

/* ---------------- Auth ---------------- */
.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 20% 10%, rgba(96,165,250,.12), transparent 45%),
        radial-gradient(circle at 85% 90%, rgba(69,223,164,.10), transparent 45%),
        var(--bg);
    padding: 1rem;
}
.auth-card {
    background: var(--surface);
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}
.auth-brand { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; margin-bottom: 1rem; color: var(--primary); }
.auth-brand .brand-mark { color: var(--primary); }
.auth-card h1 { font-size: 1.5rem; margin-bottom: .25rem; }
.auth-hint { margin-top: 1.25rem; text-align: center; }

/* ---------------- Forms ---------------- */
label {
    display: block;
    font-family: var(--font-label);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: .9rem;
}
input, select, textarea {
    width: 100%;
    margin-top: .4rem;
    padding: .6rem .75rem;
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-family: inherit;
    background: var(--surface-lowest);
    color: var(--text);
    font-weight: 400;
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-msg { font-size: .85rem; margin-left: .5rem; }

.alert { padding: .75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .9rem; border: 1px solid transparent; }
.alert-error, .alert-danger { background: var(--error-soft); color: var(--error); border-color: rgba(255,180,171,.3); }
.alert-ok, .alert-success { background: var(--secondary-soft); color: var(--secondary); border-color: rgba(69,223,164,.3); }
.alert-warn { background: var(--tertiary-soft); color: var(--tertiary); border-color: rgba(255,185,95,.3); }

/* ---------------- Dashboard ---------------- */
.live-time-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .85rem 1.25rem;
    text-align: right;
    box-shadow: var(--shadow);
}
.live-time-label { display: block; font-family: var(--font-label); font-size: .7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em; }
.live-time { font-family: var(--font-label); font-size: 1.5rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--primary); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 700px){ .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--todo);
    border-radius: var(--radius);
    padding: 1.35rem;
    box-shadow: var(--shadow);
}
.stat-card.stat-todo         { border-left-color: var(--todo); }
.stat-card.stat-in_progress  { border-left-color: var(--in_progress); }
.stat-card.stat-under_review { border-left-color: var(--under_review); }
.stat-card.stat-completed    { border-left-color: var(--completed); }
.stat-num { display: block; font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; color: #fff; }
.stat-label { color: var(--text-soft); font-size: .85rem; }

.quick-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------------- Progress bar ---------------- */
.progress-wrap { display: flex; flex-direction: column; gap: .6rem; }
.progress-bar {
    height: 8px;
    background: var(--surface-low);
    border-radius: var(--radius-pill);
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-container), var(--secondary));
    border-radius: var(--radius-pill);
    transition: width .4s ease;
}
.progress-meta { display: flex; justify-content: space-between; font-size: .85rem; color: var(--text-soft); gap: 1rem; flex-wrap: wrap; }

/* ---------------- Kanban ---------------- */
.kanban {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 900px){ .kanban { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .kanban { grid-template-columns: 1fr; } }

.kanban-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: transparent;
    padding: 0;
    min-height: 200px;
}
.kanban-col-head {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.05rem;
    padding: .35rem .5rem .6rem;
    border-bottom: 2px solid var(--outline-variant);
}
.kanban-col-head::before {
    content: "";
    flex-shrink: 0;
    width: 8px; height: 8px; border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}
.kanban-col-head > span:first-of-type { flex: 1; color: var(--text); }
.kanban-col[data-status="todo"] .kanban-col-head         { color: var(--in_progress); border-color: rgba(96,165,250,.4); }
.kanban-col[data-status="in_progress"] .kanban-col-head  { color: var(--secondary); border-color: rgba(69,223,164,.4); }
.kanban-col[data-status="under_review"] .kanban-col-head { color: var(--tertiary); border-color: rgba(255,185,95,.4); }
.kanban-col[data-status="completed"] .kanban-col-head    { color: var(--outline); border-color: rgba(139,145,157,.4); }
.count { background: var(--surface-higher); border-radius: var(--radius-sm); padding: .1rem .5rem; font-family: var(--font-label); font-size: .72rem; color: var(--text-soft); }

.kanban-list { display: flex; flex-direction: column; gap: 1rem; min-height: 60px; padding: 2px; }
.kanban-list.drag-over { background: var(--primary-soft); border-radius: var(--radius-sm); outline: 2px dashed var(--primary); }

.task-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    box-shadow: var(--shadow);
    cursor: grab;
    transition: border-color .15s, transform .1s;
}
.task-card:hover { border-color: rgba(96,165,250,.4); transform: translateY(-1px); }
.task-card:active { cursor: grabbing; }
.task-card.dragging { opacity: .4; }
.task-card.prio-high   { border-left: 4px solid var(--tertiary); }
.task-card.prio-medium { border-left: 4px solid var(--primary-container); }
.task-card.prio-low    { border-left: 4px solid var(--outline); }
.task-card h4 { font-size: .95rem; font-weight: 600; margin-bottom: .4rem; color: var(--text); }
.task-card p { color: var(--text-soft); font-size: .85rem; }
.task-card .task-meta { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-top: .85rem; justify-content: space-between; }
.tag {
    font-family: var(--font-label);
    font-size: .66rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 500;
    padding: .18rem .5rem;
    border-radius: var(--radius-sm);
    background: var(--surface-higher);
    color: var(--text-soft);
}
.tag.prio-high   { background: var(--tertiary-soft); color: var(--tertiary); }
.tag.prio-medium { background: var(--primary-soft); color: var(--primary); }
.tag.prio-low    { background: rgba(139,145,157,.14); color: var(--text-soft); }
.tag.overdue     { background: var(--tertiary-soft); color: var(--tertiary); }
.avatars { display: flex; gap: .2rem; flex-wrap: wrap; }
.avatar {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--primary-container);
    color: var(--on-primary);
    font-size: .66rem;
    display: grid; place-items: center;
    font-weight: 700;
}
.avatar-lg { width: 34px; height: 34px; font-size: .8rem; border: 1px solid rgba(164,201,255,.3); }

/* ---------------- Table toolbar + scroll ---------------- */
.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.table-search {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 340px;
    width: 100%;
}
.table-search .material-symbols-outlined {
    position: absolute; left: .75rem; color: var(--text-dim); font-size: 20px; pointer-events: none;
}
.table-search input {
    margin-top: 0;
    background: var(--surface-low);
    border-radius: var(--radius-pill);
    padding: .5rem 1rem .5rem 2.4rem;
}
.table-scroll { max-height: 420px; overflow-y: auto; border-radius: var(--radius-sm); }
.table-scroll thead th {
    position: sticky; top: 0; z-index: 1;
    background: var(--surface);
}

/* ---------------- Tables ---------------- */
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table th, .data-table td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid rgba(255,255,255,.05); }
.data-table th { font-family: var(--font-label); color: var(--text-dim); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 500; }
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: rgba(255,255,255,.03); }

.status-chip {
    font-family: var(--font-label);
    font-size: .68rem; font-weight: 500; padding: .2rem .6rem; border-radius: var(--radius-pill);
    text-transform: uppercase; letter-spacing: .04em;
    display: inline-flex; align-items: center; gap: .35rem;
}
.status-chip::before { content: "●"; font-size: .55em; }
.status-pending  { background: var(--tertiary-soft); color: var(--tertiary); }
.status-approved { background: var(--secondary-soft); color: var(--secondary); }
.status-rejected { background: var(--error-soft); color: var(--error); }

/* ---------------- Clock ---------------- */
.attendance-top { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (max-width: 800px){ .attendance-top { grid-template-columns: 1fr; } }
.clock-card { text-align: center; }
.clock-state {
    font-size: 1.1rem; font-weight: 600; margin: 1rem 0; padding: 1rem;
    border-radius: var(--radius-sm); background: var(--surface-high); border: 1px solid var(--border);
}
.clock-state.on { background: var(--secondary-soft); color: var(--secondary); border-color: rgba(69,223,164,.3); }
.clock-buttons { display: flex; gap: 1rem; justify-content: center; }

/* ---------------- Tabs ---------------- */
.tabs { display: flex; gap: .25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--outline-variant); flex-wrap: wrap; }
.tab {
    background: none; border: none; padding: .65rem 1.1rem; font-size: .9rem; font-weight: 600;
    color: var(--text-soft); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
    transition: color .15s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------------- Modal ---------------- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(6,14,32,.7);
    display: grid; place-items: center; z-index: 100; padding: 1rem;
    backdrop-filter: blur(4px);
}
.modal-overlay[hidden] { display: none; }
.modal {
    background: var(--surface-high); width: 100%; max-width: 520px; border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--border); }
.modal form { padding: 1.5rem; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-soft); line-height: 1; }
.modal-close:hover { color: var(--primary); }
.modal-foot { display: flex; justify-content: flex-end; gap: .75rem; margin-top: .5rem; }

.detail-row { margin-bottom: .75rem; }
.detail-row strong { display: block; font-family: var(--font-label); font-size: .72rem; text-transform: uppercase; color: var(--text-dim); }

/* ---------------- Footer ---------------- */
.footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.1rem 2rem; color: var(--text-dim); font-size: .8rem;
    border-top: 1px solid var(--outline-variant); background: var(--surface);
}
.footer .clock { font-family: var(--font-label); font-variant-numeric: tabular-nums; font-weight: 500; color: var(--text-soft); }

.install-creds ul { list-style: none; margin: .5rem 0; }
.install-creds li { padding: .25rem 0; font-size: .9rem; }

.row-actions { display: flex; gap: .35rem; flex-wrap: wrap; }
.toast {
    position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 200;
    background: var(--surface-higher); color: var(--text); padding: .8rem 1.15rem; border-radius: var(--radius-sm);
    border: 1px solid var(--outline-variant);
    box-shadow: var(--shadow-lg); font-size: .88rem; opacity: 0; transform: translateY(10px);
    transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.err { border-color: rgba(255,180,171,.4); color: var(--error); }
.toast.ok  { border-color: rgba(69,223,164,.4); color: var(--secondary); }

/* ---------------- Responsive sidebar ---------------- */
@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        left: 0; top: 0;
        z-index: 60;
        transform: translateX(-100%);
        transition: transform .2s ease;
        box-shadow: var(--shadow-lg);
    }
    body.sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-toggle { display: inline-flex; }
    .topbar { padding: 0 1rem; }
    .container { padding: 1.25rem 1rem 3rem; }
}
