:root {
    --sidebar-width: 260px;
    --primary: #1565c0;
    --sidebar-bg: #0f172a;
}

body { background: #f4f7fb; font-family: 'Segoe UI', Tahoma, sans-serif; }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1565c0, #0f172a); padding: 1rem; }
.login-card { width: 100%; max-width: 420px; background: #fff; border-radius: 16px; padding: 2rem; }

.admin-shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-width); background: var(--sidebar-bg); color: #fff; position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto; z-index: 1030; transition: transform .25s ease; }
.sidebar .brand { padding: 1.25rem; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar a { color: rgba(255,255,255,.85); text-decoration: none; display: block; padding: .75rem 1.25rem; border-left: 3px solid transparent; }
.sidebar a:hover, .sidebar a.active { background: rgba(255,255,255,.08); color: #fff; border-left-color: #60a5fa; }
.main-content { margin-left: var(--sidebar-width); flex: 1; width: calc(100% - var(--sidebar-width)); }
.topbar { background: #fff; border-bottom: 1px solid #e5e7eb; padding: .85rem 1.25rem; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1020; }
.content-area { padding: 1.25rem; }
.stat-card { background: #fff; border-radius: 14px; padding: 1.25rem; box-shadow: 0 8px 24px rgba(15,23,42,.06); height: 100%; }
.table-card { background: #fff; border-radius: 14px; padding: 1rem; box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.sidebar-toggle { display: none; }
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1025; }

@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; width: 100%; }
    .sidebar-toggle { display: inline-flex; }
    .overlay.show { display: block; }
}

.badge-status { font-size: .75rem; }
