:root {
    --kgbv-primary: #7a1f3d;
    --kgbv-primary-dark: #5c1730;
    --kgbv-accent: #d4a017;
    --kgbv-bg: #f4f5f7;
}

body {
    background-color: var(--kgbv-bg);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.kgbv-sidebar {
    width: 250px;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--kgbv-primary) 0%, var(--kgbv-primary-dark) 100%);
    color: #fff;
    position: sticky;
    top: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.kgbv-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    padding: 0.55rem 0.8rem;
    font-size: 0.94rem;
}

.kgbv-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.kgbv-sidebar .nav-link.active {
    background: var(--kgbv-accent);
    color: #2b2b2b;
    font-weight: 600;
}

.kgbv-topbar {
    background: var(--kgbv-primary);
    height: 56px;
}

.kgbv-main {
    min-height: 100vh;
    min-width: 0;
}

.kgbv-sidebar-overlay {
    display: none;
}

@media (max-width: 767.98px) {
    .kgbv-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 250px;
        z-index: 1045;
        transform: translateX(-100%);
        transition: transform .25s ease;
        overflow-y: auto;
    }
    .kgbv-sidebar.show {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, .35);
    }
    .kgbv-sidebar-overlay.show {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .5);
        z-index: 1044;
    }
}

.kgbv-actionbar {
    padding-top: 0.85rem;
}

.notification-dropdown {
    width: 320px;
    max-width: calc(100vw - 2rem);
    max-height: 380px;
    overflow-y: auto;
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.stat-card {
    border-radius: 12px;
    padding: 1.25rem;
    color: #fff;
}

.stat-card .stat-value {
    font-size: 1.9rem;
    font-weight: 700;
}

.stat-card.bg-maroon { background: linear-gradient(135deg, var(--kgbv-primary), var(--kgbv-primary-dark)); }
.stat-card.bg-teal { background: linear-gradient(135deg, #0d7377, #14a19a); }
.stat-card.bg-amber { background: linear-gradient(135deg, #b8860b, var(--kgbv-accent)); }
.stat-card.bg-slate { background: linear-gradient(135deg, #334155, #1e293b); }

.table thead th {
    background-color: #f1f2f5;
    border-bottom: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #555;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--kgbv-primary) 0%, var(--kgbv-primary-dark) 60%, #2b0f18 100%);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.badge-role {
    background: var(--kgbv-primary);
}

/* Public landing page */

.public-navbar {
    background: var(--kgbv-primary-dark);
    padding: 0.8rem 0;
}

.public-navbar .nav-link:hover {
    color: #fff !important;
}

.hero-section {
    background: radial-gradient(circle at 20% 20%, var(--kgbv-primary) 0%, var(--kgbv-primary-dark) 55%, #2b0f18 100%);
    padding-top: 2rem;
}

.hero-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-icon-cluster {
    position: relative;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-icon-main {
    font-size: 9rem;
    color: rgba(255, 255, 255, 0.14);
}

.hero-icon-float {
    position: absolute;
    font-size: 2.4rem;
    color: var(--kgbv-accent);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    padding: 0.9rem;
}

.hero-icon-1 { top: 10%; left: 8%; }
.hero-icon-2 { top: 8%; right: 6%; }
.hero-icon-3 { bottom: 10%; left: 12%; }
.hero-icon-4 { bottom: 6%; right: 10%; }

.section-title {
    color: #2b2b2b;
}

.bg-light-section {
    background-color: #f4f0eb;
}

.feature-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.6rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--kgbv-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.role-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.role-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--kgbv-accent);
    color: #2b2b2b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(122, 31, 61, 0.1);
    color: var(--kgbv-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.credits-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

.public-footer {
    background: var(--kgbv-primary-dark);
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.footer-link:hover {
    color: #fff;
}

/* Print (Utilization Certificate etc.) */

@media print {
    .kgbv-sidebar, .kgbv-topbar, .kgbv-actionbar, .no-print {
        display: none !important;
    }
    .kgbv-main {
        min-height: 0;
    }
    .uc-document {
        box-shadow: none !important;
        border: none !important;
    }
    body {
        background: #fff !important;
    }
}