/* Modern Styles for Olympia Data Centre */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #2563eb;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-bg: #0f172a;
    --sidebar-bg: #0f172a;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --card-bg: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    font-family: 'Poppins', 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ══════════════════════════════════════════
   SIDEBAR – Glassmorphism Futuristic (Gold)
   ══════════════════════════════════════════ */

/* Gold colour tokens used throughout sidebar:
   --gold-bright : #fbbf24  (amber-400)
   --gold-mid    : #d97706  (amber-600)
   --gold-deep   : #92400e  (amber-900)
   --gold-glow   : rgba(251,191,36,…)
   --gold-soft   : rgba(217,119,6,…)
*/

/* Animated gold scan-line keyframe */
@keyframes scanline {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    90% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(3000%);
        opacity: 0;
    }
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(251, 191, 36, 0.55), 0 0 20px rgba(217, 119, 6, 0.25);
    }

    50% {
        box-shadow: 0 0 16px rgba(251, 191, 36, 0.95), 0 0 36px rgba(245, 158, 11, 0.45);
    }
}

@keyframes borderGlow {

    0%,
    100% {
        border-color: rgba(251, 191, 36, 0.35);
    }

    50% {
        border-color: rgba(253, 211, 77, 0.75);
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-4px);
    }
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: linear-gradient(180deg,
            rgba(12, 9, 4, 0.95) 0%,
            rgba(24, 14, 3, 0.92) 40%,
            rgba(12, 10, 4, 0.95) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-right: 1px solid rgba(251, 191, 36, 0.22);
    box-shadow:
        4px 0 40px rgba(0, 0, 0, 0.6),
        inset -1px 0 0 rgba(251, 191, 36, 0.10),
        inset 1px 0 0 rgba(255, 255, 255, 0.02);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Gold scan-line sweep */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(251, 191, 36, 0.0) 10%,
            rgba(253, 211, 77, 0.85) 40%,
            rgba(245, 158, 11, 0.98) 60%,
            rgba(251, 191, 36, 0.0) 90%,
            transparent 100%);
    animation: scanline 6s linear infinite;
    pointer-events: none;
    z-index: 10;
}

/* Right-edge persistent gold glow */
.sidebar::after {
    content: '';
    position: absolute;
    top: 5%;
    right: 0;
    width: 1px;
    height: 90%;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(217, 119, 6, 0.45) 20%,
            rgba(251, 191, 36, 0.75) 50%,
            rgba(217, 119, 6, 0.45) 80%,
            transparent 100%);
    filter: blur(1px);
    pointer-events: none;
    z-index: 10;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    padding: 1.75rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(251, 191, 36, 0.15);
    text-align: center;
    position: relative;
    background: linear-gradient(180deg,
            rgba(251, 191, 36, 0.07) 0%,
            transparent 100%);
}

.sidebar-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(253, 211, 77, 0.7) 30%,
            rgba(245, 158, 11, 0.95) 50%,
            rgba(253, 211, 77, 0.7) 70%,
            transparent);
    filter: blur(0.5px);
}

/* Logo image gold glow + float */
.sidebar-header img {
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.65)) drop-shadow(0 0 22px rgba(217, 119, 6, 0.35));
    border: 1px solid rgba(251, 191, 36, 0.4) !important;
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.35), inset 0 0 10px rgba(255, 255, 255, 0.05) !important;
    background: rgba(251, 191, 36, 0.08);
}

.sidebar.collapsed .sidebar-header {
    padding: 1rem 0.5rem;
}

.sidebar-header h3 {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.55));
}

.sidebar-subtitle {
    color: rgba(251, 191, 36, 0.5);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0.4rem 0 0 0;
}

.sidebar.collapsed .sidebar-subtitle,
.sidebar.collapsed .logo-text {
    display: none;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.85rem;
}

/* ── Section label ─────────────────────────── */
.sidebar-section-label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(251, 191, 36, 0.4);
    padding: 0.85rem 0.85rem 0.45rem;
    display: block;
    position: relative;
}

.sidebar-section-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.85rem;
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.65), transparent);
}

/* ── Nav Item ─────────────────────────────── */
.nav-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.65rem 0.9rem;
    color: rgba(220, 210, 190, 0.6);
    text-decoration: none;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 14px;
    margin: 0.2rem 0;
    position: relative;
    font-size: 0.865rem;
    font-weight: 500;
    border: 1px solid transparent;
    overflow: hidden;
    letter-spacing: 0.01em;
}

/* Shimmer hover fill – gold tint */
.nav-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(251, 191, 36, 0.0) 0%,
            rgba(251, 191, 36, 0.06) 50%,
            rgba(217, 119, 6, 0.0) 100%);
    opacity: 0;
    transition: opacity 0.28s ease;
    border-radius: inherit;
    pointer-events: none;
}

/* Icon wrapper */
.nav-item i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    color: rgba(251, 191, 36, 0.65);
    position: relative;
    z-index: 1;
}

.nav-item span {
    position: relative;
    z-index: 1;
}

/* Hover state */
.nav-item:hover {
    color: #fef3c7;
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.22);
    transform: translateX(4px);
    box-shadow: 0 2px 20px rgba(251, 191, 36, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-item:hover::after {
    opacity: 1;
}

.nav-item:hover i {
    background: rgba(251, 191, 36, 0.18);
    border-color: rgba(251, 191, 36, 0.42);
    color: #fbbf24;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.32);
    transform: scale(1.08);
}

/* Active state – gold glassmorphism pill */
.nav-item.active {
    color: #fef9ee;
    background: linear-gradient(135deg,
            rgba(251, 191, 36, 0.2) 0%,
            rgba(217, 119, 6, 0.13) 100%);
    border-color: rgba(251, 191, 36, 0.35);
    font-weight: 600;
    box-shadow:
        0 4px 20px rgba(251, 191, 36, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.07) inset,
        0 -1px 0 rgba(0, 0, 0, 0.2) inset;
    backdrop-filter: blur(8px);
    animation: borderGlow 3s ease-in-out infinite;
}

.nav-item.active i {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    border-color: rgba(251, 191, 36, 0.6);
    color: #ffffff;
    box-shadow:
        0 0 14px rgba(251, 191, 36, 0.6),
        0 0 28px rgba(217, 119, 6, 0.25);
    animation: glowPulse 2.5s ease-in-out infinite;
}

/* Active gold left bar */
.nav-item.active::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 15%;
    bottom: 15%;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, #fde68a 0%, #fbbf24 50%, #d97706 100%);
    box-shadow:
        0 0 6px rgba(253, 230, 138, 0.85),
        0 0 16px rgba(251, 191, 36, 0.65),
        0 0 30px rgba(217, 119, 6, 0.35);
    z-index: 2;
}

/* Collapsed sidebar – icon only */
.sidebar.collapsed .nav-item span {
    display: none;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 0.65rem;
    gap: 0;
}

.sidebar.collapsed .nav-item i {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

/* ══ Sidebar Footer ══════════════════════════════ */
.sidebar-footer {
    padding: 1.1rem 0.85rem 1.4rem;
    border-top: 1px solid rgba(251, 191, 36, 0.12);
    position: relative;
    background: linear-gradient(0deg,
            rgba(251, 191, 36, 0.05) 0%,
            transparent 100%);
}

.sidebar-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(251, 191, 36, 0.6) 30%,
            rgba(245, 158, 11, 0.85) 50%,
            rgba(251, 191, 36, 0.6) 70%,
            transparent);
    filter: blur(0.5px);
}

/* User info gold glass pill */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: rgba(254, 243, 199, 0.8);
    margin-bottom: 0.8rem;
    padding: 0.7rem 0.9rem;
    background: rgba(251, 191, 36, 0.07);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.user-info:hover {
    background: rgba(251, 191, 36, 0.13);
    border-color: rgba(253, 211, 77, 0.38);
    box-shadow: 0 0 14px rgba(251, 191, 36, 0.15);
}

.user-info i {
    font-size: 1.2rem;
    color: #fbbf24;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.55));
}

.user-info .user-name {
    font-weight: 600;
    background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar.collapsed .user-info span,
.sidebar.collapsed .user-info .user-name {
    display: none;
}

.sidebar.collapsed .user-info {
    justify-content: center;
    padding: 0.65rem;
    gap: 0;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Refresh button – glass gold */
.sidebar-actions .btn-outline-light {
    border: 1px solid rgba(251, 191, 36, 0.30) !important;
    background: rgba(251, 191, 36, 0.08) !important;
    color: rgba(254, 243, 199, 0.9) !important;
    border-radius: 12px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    padding: 0.55rem 1rem !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(8px);
    letter-spacing: 0.02em;
}

.sidebar-actions .btn-outline-light:hover {
    background: rgba(251, 191, 36, 0.2) !important;
    border-color: rgba(253, 211, 77, 0.55) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.28),
        0 0 8px rgba(217, 119, 6, 0.18) !important;
}

/* Logout button – glass danger (unchanged) */
.sidebar-actions .btn-outline-danger {
    border: 1px solid rgba(239, 68, 68, 0.28) !important;
    background: rgba(239, 68, 68, 0.06) !important;
    color: rgba(252, 165, 165, 0.8) !important;
    border-radius: 12px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    padding: 0.55rem 1rem !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(8px);
    letter-spacing: 0.02em;
}

.sidebar-actions .btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.18) !important;
    border-color: rgba(248, 113, 113, 0.55) !important;
    color: #fca5a5 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.22),
        0 0 8px rgba(239, 68, 68, 0.12) !important;
}

.sidebar.collapsed .sidebar-actions {
    align-items: center;
}

.sidebar.collapsed .sidebar-actions .btn {
    width: 42px;
    height: 42px;
    padding: 0 !important;
    border-radius: 12px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar.collapsed .sidebar-actions .btn span {
    display: none;
}

/* ── Enroll Submenu ────────────────────────── */
.enroll-submenu {
    padding: 0.3rem 0 0.3rem 0.6rem;
    margin-left: 0.55rem;
    border-left: 1px solid rgba(251, 191, 36, 0.22);
    position: relative;
}

.enroll-submenu::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(251, 191, 36, 0.5) 20%,
            rgba(253, 211, 77, 0.65) 50%,
            rgba(251, 191, 36, 0.5) 80%,
            transparent 100%);
}

.nav-subitem {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.85rem;
    color: rgba(253, 211, 77, 0.5);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 10px;
    margin: 0.12rem 0;
    transition: all 0.22s ease;
    position: relative;
    letter-spacing: 0.01em;
}

.nav-subitem:hover {
    color: rgba(254, 243, 199, 0.95);
    background: rgba(251, 191, 36, 0.08);
    padding-left: 1rem;
}

.nav-subitem.active {
    color: #fbbf24;
    font-weight: 600;
    background: rgba(251, 191, 36, 0.11);
    border: 1px solid rgba(251, 191, 36, 0.22);
    padding-left: 1rem;
}

.subnav-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.3);
    flex-shrink: 0;
    transition: all 0.22s ease;
    box-shadow: none;
}

.nav-subitem:hover .subnav-dot {
    background: #fbbf24;
    box-shadow: 0 0 6px rgba(251, 191, 36, 0.75),
        0 0 12px rgba(217, 119, 6, 0.45);
    width: 6px;
    height: 6px;
}

.nav-subitem.active .subnav-dot {
    background: #d97706;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.9),
        0 0 16px rgba(217, 119, 6, 0.55);
    width: 7px;
    height: 7px;
}

/* Hide submenu in collapsed mode */
.sidebar.collapsed .enroll-submenu {
    display: none;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
}

.main-content.expanded {
    margin-left: var(--sidebar-collapsed-width);
}

.topbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.sidebar-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-text {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.content-wrapper {
    padding: 2rem;
}

/* Modern Navbar */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand i {
    margin-right: 8px;
    font-size: 1.3rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
}

/* Main Container */
.container-fluid {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Page Header */
h1 {
    color: #ffffff;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 i {
    margin-right: 12px;
    color: #fbbf24;
}

.text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.1rem;
}

/* Modern Cards */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: var(--card-bg);
    margin-bottom: 1.5rem;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    border-radius: 16px 16px 0 0 !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.card-body {
    padding: 1.5rem;
}

/* Metric Cards */
.card.text-white {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

.card.text-white::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.card.bg-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
}

.card.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.card.bg-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
}

.card.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.card.bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.card.bg-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
}

/* Chart Cards with Colored Backgrounds */
.card[style*="background-color: #e3f2fd"] {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    border: 2px solid #3b82f6 !important;
}

.card[style*="background-color: #e8f5e9"] {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
    border: 2px solid #10b981 !important;
}

.card[style*="background-color: #fff3e0"] {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%) !important;
    border: 2px solid #f59e0b !important;
}

.card[style*="background-color: #f3e5f5"] {
    background: linear-gradient(135deg, #e9d5ff 0%, #d8b4fe 100%) !important;
    border: 2px solid #a855f7 !important;
}

.card[style*="background-color: #fce4ec"] {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%) !important;
    border: 2px solid #ec4899 !important;
}

.card[style*="background-color: #eceff1"] {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    border: 2px solid #64748b !important;
}

.card[style*="background-color: #fffde7"] {
    background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%) !important;
    border: 2px solid #eab308 !important;
}

.card[style*="background-color: #e1f5fe"] {
    background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%) !important;
    border: 2px solid #06b6d4 !important;
}

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: var(--shadow-md);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Tabs */
.nav-tabs {
    border-bottom: 3px solid var(--border-color);
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px 12px 0 0;
    padding: 0.5rem;
}

.nav-tabs .nav-link {
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 1rem 1.5rem;
    margin: 0 0.25rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: transparent;
}

.nav-tabs .nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-bottom: 3px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

/* Form Controls */
.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid var(--border-color);
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
    box-shadow: var(--shadow-md);
    padding: 1rem 1.5rem;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
    padding: 2rem 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Chart Containers */
#channel-chart,
#prospect-chart,
#source-chart,
#today-chart,
#packages-chart,
#top-source-chart,
#monthly-analytics-chart,
#monthly-status-chart,
#monthly-trend-chart,
#channel-degree-chart,
#uni-chart,
#cat-chart,
#status-chart,
#programme-chart,
#pic-chart,
#intake-chart,
#timeline-chart,
#fees-chart,
#uni-collected-chart,
#prog-collected-chart,
#balance-uni-chart,
#collected-balance-chart,
#monthly-collected-chart {
    background-color: transparent;
    border-radius: 12px;
}

/* Loading Animation */
.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Card Title Styling */
.card-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-title i {
    margin-right: 8px;
}

/* Metric Numbers */
h2.mb-0 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container-fluid {
        padding: 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .card {
        margin-bottom: 1rem;
    }

    .navbar-nav {
        margin-top: 1rem;
    }

    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .kpi-cards-row>.col-md-3 {
        padding: 0.25rem !important;
        margin-bottom: 1rem !important;
    }

    .kpi-cards-row .kpi-card {
        min-height: 160px !important;
    }

    .kpi-cards-row .kpi-card h2.mb-0 {
        font-size: 1.5rem !important;
    }

    .kpi-cards-row .kpi-card .metric-icon i {
        font-size: 2rem !important;
    }

    /* Fallback for row.mb-4 */
    .row.mb-4>.col-md-3 {
        padding: 0.25rem;
        margin-bottom: 1rem;
    }

    .row.mb-4>.col-md-3>.card {
        min-height: 140px;
    }

    .row.mb-4>.col-md-3>.card h2.mb-0 {
        font-size: 1.5rem;
    }

    .row.mb-4>.col-md-3>.card .metric-icon i {
        font-size: 2rem !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.5s ease-out;
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Glass morphism effect for cards */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Better spacing */
.mb-4 {
    margin-bottom: 2rem !important;
}

.mt-4 {
    margin-top: 2rem !important;
}

/* Icon styling */
i {
    transition: transform 0.3s ease;
}

.card:hover i {
    transform: scale(1.1);
}

/* Metric Icons */
.metric-icon {
    opacity: 0.3;
}

.opacity-50 {
    opacity: 0.5;
}

/* KPI Cards Alignment and Sizing - Finance Page */
.kpi-cards-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    margin-left: -0.5rem !important;
    margin-right: -0.5rem !important;
}

.kpi-cards-row>.col-md-3 {
    display: flex !important;
    flex-direction: column !important;
    padding: 0.5rem !important;
    margin-bottom: 0 !important;
}

.kpi-cards-row .kpi-card {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: 100% !important;
    min-height: 180px !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

.kpi-cards-row .kpi-card>.card-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    padding: 1.5rem !important;
    height: 100% !important;
    justify-content: space-between !important;
}

.kpi-cards-row .kpi-card>.card-body>.d-flex {
    height: 100% !important;
    align-items: flex-start !important;
    width: 100% !important;
    justify-content: space-between !important;
}

.kpi-cards-row .kpi-card>.card-body>.d-flex>div:first-child {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.kpi-cards-row .kpi-card .metric-icon {
    flex-shrink: 0 !important;
    margin-left: 1rem !important;
    align-self: flex-end !important;
}

.kpi-cards-row .kpi-card h5.card-title {
    margin-bottom: 0.75rem !important;
    font-size: 1rem !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
}

.kpi-cards-row .kpi-card h2.mb-0 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
    margin: 0 !important;
}

/* Fallback for any row.mb-4 that might not have the class */
.row.mb-4:has(.kpi-card) {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
}

.row.mb-4:has(.kpi-card)>.col-md-3 {
    display: flex !important;
    flex-direction: column !important;
}

.row.mb-4:has(.kpi-card) .kpi-card {
    height: 100% !important;
    margin-bottom: 0 !important;
}

/* Responsive Sidebar */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.collapsed {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .main-content.expanded {
        margin-left: 0;
    }
}

/* Page-Specific Background Colors */

/* Enroll Page - Sky Blue */
body.page-enroll {
    background: linear-gradient(160deg, #b8e4f9 0%, #87ceeb 45%, #5db8e0 100%) !important;
    background-attachment: fixed !important;
}

/* Finance Page - Softer Pink */
body.page-finance {
    /* Soft pastel pink gradient */
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%) !important;
    background-attachment: fixed !important;
}

/* Dashboard (Leads) Page - Light Grey → Silver */
body.page-dashboard {
    background: linear-gradient(135deg, #e8e8ec 0%, #d4d4dc 40%, #b8b8c4 100%) !important;
    background-attachment: fixed !important;
}

/* Sales Track Page */
body.page-sales-track {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
    background-attachment: fixed !important;
}