:root {
    --primary: #0d6efd;
    --sidebar-bg: #14213d;
    --sidebar-hover: #1f2f52;
    --topbar-bg: #ffffff;
}

body {
    background: #f4f6fb;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

/* ---------- Auth pages ---------- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #14213d 0%, #0d6efd 100%);
}
.auth-card {
    width: 100%;
    max-width: 400px;
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0,0,0,.25);
}
.auth-card .brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: #14213d;
}

/* ---------- Layout ---------- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 240px;
    background: var(--sidebar-bg);
    color: #fff;
    overflow-y: auto;
    z-index: 1030;
    transition: transform .2s ease;
}
.sidebar .brand {
    padding: 18px 20px;
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: block;
    color: #fff;
    text-decoration: none;
}
.sidebar .nav-link {
    color: rgba(255,255,255,.75);
    padding: 11px 20px;
    font-size: .92rem;
    border-left: 3px solid transparent;
}
.sidebar .nav-link i { width: 20px; display: inline-block; }
.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background: var(--sidebar-hover);
    color: #fff;
    border-left-color: var(--primary);
}
.sidebar .nav-section {
    padding: 14px 20px 4px;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: rgba(255,255,255,.4);
}

.main-content {
    margin-left: 240px;
    min-height: 100vh;
}
.topbar {
    background: var(--topbar-bg);
    padding: 12px 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1020;
}
.page-wrap { padding: 24px; }

@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; }
}

/* ---------- Cards ---------- */
.stat-card {
    border: none;
    border-radius: 14px;
    color: #fff;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.stat-card .stat-num { font-size: 1.8rem; font-weight: 700; }
.stat-card .stat-label { font-size: .85rem; opacity: .9; }
.stat-card i { font-size: 2rem; opacity: .5; }

.bg-grad-blue { background: linear-gradient(135deg,#4e73df,#224abe); }
.bg-grad-green { background: linear-gradient(135deg,#1cc88a,#13855c); }
.bg-grad-orange { background: linear-gradient(135deg,#f6c23e,#dda20a); }
.bg-grad-red { background: linear-gradient(135deg,#e74a3b,#a52a1a); }
.bg-grad-purple { background: linear-gradient(135deg,#8540f5,#5a189a); }
.bg-grad-teal { background: linear-gradient(135deg,#20c997,#0ca678); }

.card { border: none; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.table thead th { font-size: .78rem; text-transform: uppercase; color: #6c757d; border-top: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); }

.avatar-sm { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.notif-dot {
    position: absolute; top: 6px; right: 6px; width: 8px; height: 8px;
    border-radius: 50%; background: #e74a3b;
}
