/* ── Base ───────────────────────────────────────────────────── */
* { box-sizing: border-box; }

body {
    font-family: 'DM Sans', sans-serif;
    background-color: #f8fafc;
    margin: 0;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
    width: 260px;
    min-height: 100vh;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    transition: width .25s ease;
    overflow: hidden;
}

.sidebar-collapsed {
    width: 0;
    border-right: none;
}

.sidebar-header {
    padding: 1.25rem 1rem;
    background: linear-gradient(135deg, #1e293b, #2563eb);
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
}

.sidebar-title { font-size: 1rem; font-weight: 700; }

.sidebar-link {
    color: #475569;
    border-radius: 8px;
    margin-bottom: 2px;
    padding: .55rem .85rem;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

.sidebar-link:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.sidebar-link.active {
    background: #dbeafe !important;
    color: #2563eb !important;
    font-weight: 600;
}

.sidebar-footer {
    padding: .75rem 1rem;
    border-top: 1px solid #e2e8f0;
    white-space: nowrap;
}

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
    background: #1e293b;
    color: white;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.topbar-brand {
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

/* ── Main content ───────────────────────────────────────────── */
.main-content {
    background: #f8fafc;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
    border-radius: 12px !important;
}

/* ── Table ──────────────────────────────────────────────────── */
.table thead th {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
}

.table-hover tbody tr:hover td {
    background-color: #f1f5f9;
}

/* ── Pagination ─────────────────────────────────────────────── */
.page-link {
    border-radius: 6px !important;
    margin: 0 2px;
    font-size: .85rem;
}

/* ── Badges ─────────────────────────────────────────────────── */
.badge { font-weight: 600; }

/* ── Modal ──────────────────────────────────────────────────── */
.modal-content { border: none; }
.modal-header  { border-bottom: 1px solid #e2e8f0; }
.modal-footer  { border-top: 1px solid #e2e8f0; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── Utilities ──────────────────────────────────────────────── */
.cursor-pointer { cursor: pointer; }
.fw-semibold    { font-weight: 600 !important; }
.font-monospace { font-family: 'DM Mono', monospace !important; }

/* ── Toast ──────────────────────────────────────────────────── */
.toast { min-width: 240px; border-radius: 10px !important; }

/* ── Progress bar ───────────────────────────────────────────── */
.progress { border-radius: 4px; }
