:root {
    --brand-navy: #0b1f3a;
    --brand-blue: #0d6efd;
    --brand-gold: #f9b233;
    --soft-bg: #f4f7fb;
}
body {
    background: var(--soft-bg);
    min-height: 100vh;
}
.app-shell {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--brand-navy), #061425);
    color: #fff;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 1rem;
}
.sidebar-mobile {
    background: linear-gradient(180deg, var(--brand-navy), #061425);
}
.brand-wrap {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem .5rem 1.5rem;
}
.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--brand-navy);
    font-weight: 900;
    letter-spacing: -.06em;
    box-shadow: 0 10px 25px rgba(0,0,0,.18);
}
.sidebar-nav {
    display: grid;
    gap: .35rem;
}
.sidebar-link {
    color: rgba(255,255,255,.78);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem .8rem;
    border-radius: 14px;
    transition: .2s ease;
}
.sidebar-link:hover,
.sidebar-link.active {
    color: #fff;
    background: rgba(255,255,255,.12);
}
.sidebar-link.active {
    border-left: 4px solid var(--brand-gold);
}
.app-main {
    flex: 1;
    min-width: 0;
}
.card {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(11,31,58,.08);
}
.stat-card {
    position: relative;
    overflow: hidden;
}
.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(13,110,253,.1);
    color: var(--brand-blue);
    font-size: 1.4rem;
}
.table thead th {
    font-size: .78rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.btn-primary {
    background: var(--brand-navy);
    border-color: var(--brand-navy);
}
.btn-primary:hover {
    background: #12345f;
    border-color: #12345f;
}
.badge-soft {
    background: rgba(13,110,253,.1);
    color: var(--brand-blue);
}
.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at top left, rgba(249,178,51,.25), transparent 35%), linear-gradient(135deg, var(--brand-navy), #061425);
}
.login-card {
    width: min(460px, 92vw);
}
[data-bs-theme="dark"] body,
body.dark-mode {
    background: #111827;
    color: #e5e7eb;
}
body.dark-mode .navbar,
body.dark-mode .card,
body.dark-mode .modal-content {
    background-color: #1f2937 !important;
    color: #e5e7eb;
}
body.dark-mode .table,
body.dark-mode .form-control,
body.dark-mode .form-select {
    color: #e5e7eb;
    background-color: #111827;
    border-color: #374151;
}
body.dark-mode .text-muted { color: #9ca3af !important; }
@media print {
    .sidebar, .navbar, .btn, .offcanvas { display: none !important; }
    .app-main { width: 100%; }
    .card { box-shadow: none; border: 1px solid #ddd; }
    body { background: #fff; }
}
