/* =====================================================
   PRIME PRESS LMS - UNIFIED DARK BLUE DESIGN
   Matching Gradients for Navbar & Sidebar
   Perfect Visual Harmony + Fully Responsive
   ===================================================== */

/* ===== SHARED GRADIENT VARIABLES ===== */
:root {
    --primary-dark-navy: #0a2540;
    --primary-deep-blue: #0d3a5f;
    --primary-ocean-blue: #0f4d7d;
    --primary-sky-blue: #1565a0;
}

/* ===== BACKGROUND EFFECTS ===== */
.admin-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

    .admin-particles .particle {
        position: absolute;
        bottom: -10px;
        width: 3px;
        height: 3px;
        background: radial-gradient(circle, rgba(212, 175, 55, 0.4), transparent);
        border-radius: 50%;
        animation: rise linear forwards;
        pointer-events: none;
    }

@keyframes rise {
    to {
        bottom: 110%;
        opacity: 0;
    }
}

.admin-background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.03) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(11, 79, 140, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ===== SIDEBAR OVERLAY (MOBILE) ===== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* ===== WRAPPER & MAIN LAYOUT ===== */
.wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: var(--bg-warm);
    position: relative;
    margin: 0;
    padding: 0;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-warm);
    margin-left: var(--sidebar-width);
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 0;
    padding: 0;
}

.content {
    flex: 1;
    padding: var(--space-xl);
    max-width: 100%;
}

.main.sidebar-collapsed {
    margin-left: 0 !important;
}

/* ===== ENHANCED SIDEBAR - MATCHING NAVBAR GRADIENT ===== */
#sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    /* SAME GRADIENT AS NAVBAR - VERTICAL VERSION */
    background: linear-gradient(180deg, var(--primary-dark-navy) 0%, var(--primary-deep-blue) 15%, var(--primary-ocean-blue) 30%, var(--primary-sky-blue) 50%, var(--primary-ocean-blue) 70%, var(--primary-deep-blue) 85%, var(--primary-dark-navy) 100%);
    background-size: 100% 200%;
    animation: sidebarGradientFlow 20s ease infinite;
    /* ENHANCED SHADOWS - MATCHING NAVBAR */
    box-shadow: 4px 0 20px rgba(10, 37, 64, 0.4), 2px 0 8px rgba(0, 0, 0, 0.2), inset -1px 0 0 rgba(255, 255, 255, 0.1);
    z-index: var(--z-fixed);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* ANIMATED GRADIENT FLOW */
@keyframes sidebarGradientFlow {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 0% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

/* GOLD ACCENT BORDER ON RIGHT */
#sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(212, 175, 55, 0.3) 10%, rgba(212, 175, 55, 0.6) 50%, rgba(212, 175, 55, 0.3) 90%, transparent 100%);
    animation: borderPulse 4s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    }
}

/* FLOATING PARTICLES EFFECT */
#sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 3%), radial-gradient(circle at 70% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 2%), radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 2.5%), radial-gradient(circle at 85% 30%, rgba(212, 175, 55, 0.06) 0%, transparent 2%);
    animation: floatSidebarParticles 25s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes floatSidebarParticles {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Desktop collapsed state */
#sidebar.collapsed {
    transform: translateX(-100%);
}

    #sidebar.collapsed .sidebar-link span,
    #sidebar.collapsed .sidebar-logo span,
    #sidebar.collapsed .sidebar-footer {
        opacity: 0;
        visibility: hidden;
    }

/* Custom Scrollbar for Sidebar */
#sidebar::-webkit-scrollbar {
    width: 8px;
}

#sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

#sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.5) 0%, rgba(212, 175, 55, 0.8) 100%);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

    #sidebar::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, rgba(212, 175, 55, 0.7) 0%, var(--accent-gold) 100%);
        background-clip: padding-box;
    }

/* Fix for h-100 class */
#sidebar .h-100 {
    height: 100% !important;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* ===== SIDEBAR LOGO - ENHANCED ===== */
.sidebar-logo {
    padding: var(--space-lg);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    margin: 0;
}

    .sidebar-logo::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 10%;
        width: 80%;
        height: 1px;
        background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.5) 50%, transparent 100%);
        animation: logoLineGlow 3s ease-in-out infinite;
    }

@keyframes logoLineGlow {
    0%, 100% {
        opacity: 0.5;
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    }
}

.sidebar-logo a {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: white;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    text-decoration: none;
}

.sidebar-logo img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 175, 55, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-logo a:hover img {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--accent-gold);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 30px rgba(212, 175, 55, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ===== SIDEBAR NAVIGATION - ENHANCED ===== */
.sidebar-nav {
    flex: 1;
    padding: var(--space-md) 0;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
    margin: 0;
    list-style: none;
}

.sidebar-header {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: var(--space-lg) var(--space-lg) var(--space-sm);
    position: relative;
}

    .sidebar-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: var(--space-lg);
        width: 30px;
        height: 2px;
        background: linear-gradient(90deg, var(--accent-gold) 0%, transparent 100%);
        border-radius: 2px;
    }

.sidebar-item {
    margin-bottom: 4px;
    position: relative;
    list-style: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 14px var(--space-lg);
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-left: 3px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-decoration: none;
}

    /* HOVER GLOW EFFECT */
    .sidebar-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, rgba(212, 175, 55, 0.1) 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
        opacity: 0;
        transition: opacity 0.3s;
    }

    .sidebar-link i {
        font-size: var(--font-size-lg);
        width: 24px;
        text-align: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        flex-shrink: 0;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    }

    .sidebar-link span {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    /* HOVER STATE */
    .sidebar-link:hover {
        background: linear-gradient(90deg, rgba(212, 175, 55, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
        color: white;
        border-left-color: var(--accent-gold);
        padding-left: calc(var(--space-lg) + 4px);
        box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.1);
    }

        .sidebar-link:hover::before {
            opacity: 1;
        }

        .sidebar-link:hover i {
            color: var(--accent-gold);
            transform: scale(1.15) translateX(3px);
            filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
        }

        .sidebar-link:hover span {
            transform: translateX(2px);
        }

    /* ACTIVE STATE */
    .sidebar-link.active {
        background: linear-gradient(90deg, rgba(212, 175, 55, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
        color: white;
        border-left-color: var(--accent-gold);
        border-left-width: 4px;
        box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.15), 0 2px 8px rgba(0, 0, 0, 0.2);
    }

        .sidebar-link.active::before {
            opacity: 1;
        }

        .sidebar-link.active i {
            color: var(--accent-gold);
            transform: scale(1.1);
            filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.8));
        }

    /* COLLAPSIBLE MENU INDICATOR */
    .sidebar-link[data-bs-toggle="collapse"]::after {
        content: "";
        position: absolute;
        right: var(--space-lg);
        width: 8px;
        height: 8px;
        border: solid rgba(255, 255, 255, 0.7);
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    }

    .sidebar-link[data-bs-toggle="collapse"]:not(.collapsed)::after {
        transform: rotate(-135deg);
        border-color: var(--accent-gold);
        filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.6));
    }

    .sidebar-link[data-bs-toggle="collapse"]:hover::after {
        border-color: var(--accent-gold);
    }

/* ===== SIDEBAR DROPDOWN - ENHANCED ===== */
.sidebar-dropdown {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.15) 100%);
    overflow: hidden;
    border-left: 2px solid rgba(212, 175, 55, 0.2);
    margin-left: var(--space-md);
    border-radius: 0 8px 8px 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    list-style: none;
}

    .sidebar-dropdown .sidebar-link {
        padding-left: calc(var(--space-lg) * 2);
        font-size: var(--font-size-xs);
        padding-top: 10px;
        padding-bottom: 10px;
    }

        .sidebar-dropdown .sidebar-link i {
            font-size: var(--font-size-xs);
            width: 16px;
        }

        .sidebar-dropdown .sidebar-link:hover {
            background: linear-gradient(90deg, rgba(212, 175, 55, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
            padding-left: calc(var(--space-lg) * 2 + 4px);
        }

/* ===== SIDEBAR FOOTER - ENHANCED ===== */
.sidebar-footer {
    padding: var(--space-lg);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-xs);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.25) 100%);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    margin: 0;
    margin-top: auto;
}

    .sidebar-footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 10%;
        width: 80%;
        height: 1px;
        background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.5) 50%, transparent 100%);
    }

    .sidebar-footer p {
        margin-bottom: var(--space-xs);
        color: rgba(255, 255, 255, 0.8);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

        .sidebar-footer p:first-child {
            font-weight: var(--font-weight-semibold);
            color: var(--accent-gold);
            font-size: var(--font-size-sm);
            text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
        }

/* ===== ADMIN NAVBAR - MATCHING GRADIENT ===== */
.admin-navbar {
    position: sticky;
    top: 0;
    /* SAME GRADIENT AS SIDEBAR - HORIZONTAL VERSION */
    background: linear-gradient(135deg, var(--primary-dark-navy) 0%, var(--primary-deep-blue) 25%, var(--primary-ocean-blue) 50%, var(--primary-deep-blue) 75%, var(--primary-dark-navy) 100%);
    background-size: 200% 200%;
    animation: navbarGradientFlow 15s ease infinite;
    /* GLOWING SHADOW - MATCHING SIDEBAR */
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.25), 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: var(--z-sticky);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

/* ANIMATED GRADIENT FLOW */
@keyframes navbarGradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ANIMATED GOLD ACCENT LINE */
.admin-navbar::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.6) 30%, var(--accent-gold) 50%, rgba(212, 175, 55, 0.6) 70%, transparent 100%);
    animation: slideGoldLine 4s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

@keyframes slideGoldLine {
    0%, 100% {
        left: -100%;
        opacity: 0;
    }

    10%, 90% {
        opacity: 1;
    }

    50% {
        left: 100%;
    }
}

/* FLOATING LIGHT PARTICLES EFFECT */
.admin-navbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 3%), radial-gradient(circle at 60% 70%, rgba(212, 175, 55, 0.08) 0%, transparent 3%), radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 2%);
    animation: floatParticles 20s linear infinite;
    pointer-events: none;
}

@keyframes floatParticles {
    0% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-20px) translateX(10px);
    }

    100% {
        transform: translateY(0) translateX(0);
    }
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px var(--space-xl);
    gap: var(--space-lg);
    position: relative;
    z-index: 1;
}

/* ===== NAVBAR LEFT SECTION ===== */
.navbar-left {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex: 1;
    min-width: 0;
}

.sidebar-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(255, 215, 100, 0.1) 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

    /* ANIMATED SHINE EFFECT */
    .sidebar-toggle-btn::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
        transform: rotate(45deg);
        animation: shine 3s ease-in-out infinite;
    }

@keyframes shine {
    0%, 100% {
        left: -150%;
    }

    50% {
        left: 150%;
    }
}

.sidebar-toggle-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(255, 215, 100, 0.25) 100%);
    border-color: var(--accent-gold);
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4), 0 0 20px rgba(212, 175, 55, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.sidebar-toggle-btn:active {
    transform: scale(0.95);
}

.sidebar-toggle-btn .toggle-icon,
.sidebar-toggle-btn i {
    color: white;
    font-size: var(--font-size-lg);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.sidebar-toggle-btn:hover .toggle-icon,
.sidebar-toggle-btn:hover i {
    color: var(--accent-gold);
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.8));
}

.page-breadcrumb {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.page-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: white;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 175, 55, 0.4);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 175, 55, 0.3);
    }

    50% {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 30px rgba(212, 175, 55, 0.6);
    }
}

.page-subtitle {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== NAVBAR RIGHT SECTION ===== */
.navbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    position: relative;
    flex-shrink: 0;
}

.navbar-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(255, 215, 100, 0.1) 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

    /* PULSE ANIMATION FOR ICONS */
    .navbar-icon-btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
        transform: translate(-50%, -50%) scale(0);
        border-radius: 50%;
        animation: iconPulse 2s ease-out infinite;
    }

@keyframes iconPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.5;
    }
}

.navbar-icon-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(255, 215, 100, 0.25) 100%);
    border-color: var(--accent-gold);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4), 0 0 20px rgba(212, 175, 55, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

    .navbar-icon-btn:hover::before {
        animation: none;
    }

.navbar-icon-btn:active {
    transform: scale(0.95);
}

.navbar-icon-btn i {
    color: white;
    font-size: var(--font-size-lg);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.navbar-icon-btn:hover i {
    color: var(--accent-gold);
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.8));
}

/* ===== LOGOUT BUTTON ===== */
.logout-form {
    margin: 0;
    display: flex;
    align-items: center;
}

    .logout-form .navbar-icon-btn {
        background: linear-gradient(135deg, rgba(220, 53, 69, 0.15) 0%, rgba(255, 80, 100, 0.1) 100%);
        border-color: rgba(220, 53, 69, 0.4);
    }

        .logout-form .navbar-icon-btn i {
            color: #ffcccc;
        }

        .logout-form .navbar-icon-btn:hover {
            background: linear-gradient(135deg, rgba(220, 53, 69, 0.3) 0%, rgba(255, 80, 100, 0.25) 100%);
            border-color: var(--error);
            box-shadow: 0 8px 24px rgba(220, 53, 69, 0.4), 0 0 20px rgba(220, 53, 69, 0.3);
        }

            .logout-form .navbar-icon-btn:hover i {
                color: #ffeeee;
            }

/* ===== PROCESSING STATE ===== */
.navbar-icon-btn.processing,
.navbar-icon-btn[disabled] {
    cursor: wait;
    opacity: 0.9;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(255, 215, 100, 0.25) 100%);
}

.navbar-icon-btn .processing-text {
    display: none;
}

.navbar-icon-btn.processing i {
    animation: spin 1s linear infinite;
    color: var(--accent-gold);
}

.navbar-icon-btn.processing::after {
    content: 'Processing...';
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-dark-navy);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 175, 55, 0.2);
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    animation: fadeInBounce 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.navbar-icon-btn.processing::before {
    content: '';
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 7px solid var(--primary-dark-navy);
    z-index: 1001;
    opacity: 0;
    animation: fadeInBounce 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        opacity: 1;
        transform: translateX(-50%) translateY(2px);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===== NOTIFICATION BADGE ===== */
.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
    color: white;
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    padding: 3px 7px;
    border-radius: var(--radius-full);
    min-width: 20px;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 3px 8px rgba(255, 71, 87, 0.5), 0 0 12px rgba(255, 71, 87, 0.4);
    border: 2px solid var(--primary-dark-navy);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 3px 8px rgba(255, 71, 87, 0.5), 0 0 12px rgba(255, 71, 87, 0.4);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(255, 71, 87, 0.7), 0 0 20px rgba(255, 71, 87, 0.6);
    }
}

/* ===== USER PROFILE SECTION ===== */
.user-profile-section {
    position: relative;
    flex-shrink: 0;
}

.user-profile-link,
.user-profile-dropdown {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(255, 215, 100, 0.1) 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

    .user-profile-link::before,
    .user-profile-dropdown::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
        transform: rotate(45deg);
        animation: userShine 4s ease-in-out infinite;
    }

@keyframes userShine {
    0%, 100% {
        left: -150%;
    }

    50% {
        left: 150%;
    }
}

.user-profile-link:hover,
.user-profile-dropdown:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(255, 215, 100, 0.25) 100%);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4), 0 0 20px rgba(212, 175, 55, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.user-profile-link:active,
.user-profile-dropdown:active {
    transform: scale(0.98);
}

.user-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(212, 175, 55, 0.4), 0 0 12px rgba(212, 175, 55, 0.2);
    transition: all 0.3s;
}

.user-profile-link:hover .user-avatar-img,
.user-profile-dropdown:hover .user-avatar-img {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.5), 0 0 16px rgba(212, 175, 55, 0.3);
}

.user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-name {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: white;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.user-role {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-arrow {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-xs);
    transition: all 0.3s;
    flex-shrink: 0;
}

.user-profile-dropdown[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--accent-gold);
}

/* ===== DROPDOWN MENUS ===== */
.dropdown-menu {
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(10, 37, 64, 0.2), 0 0 20px rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    padding: 0;
    margin-top: var(--space-sm);
    min-width: 280px;
    max-width: 90vw;
    background: white;
    overflow: hidden;
    animation: dropdownSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 2px solid var(--border-light);
    background: linear-gradient(135deg, #faf8f3 0%, #f5f0e8 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .dropdown-header h6 {
        font-size: var(--font-size-base);
        font-weight: var(--font-weight-bold);
        color: var(--primary-navy);
        margin: 0;
    }

.dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 0;
}

.dropdown-item {
    padding: var(--space-md) var(--space-lg);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: var(--font-size-sm);
    position: relative;
}

    .dropdown-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 3px;
        height: 100%;
        background: var(--accent-gold);
        transform: scaleY(0);
        transition: transform 0.3s;
    }

    .dropdown-item:hover {
        background: linear-gradient(90deg, var(--bg-light-beige) 0%, rgba(245, 240, 232, 0.5) 100%);
        color: var(--primary-blue);
        padding-left: calc(var(--space-lg) + 6px);
    }

        .dropdown-item:hover::before {
            transform: scaleY(1);
        }

    .dropdown-item i {
        width: 24px;
        text-align: center;
        color: var(--text-muted);
        transition: all 0.3s;
    }

    .dropdown-item:hover i {
        color: var(--accent-gold);
        transform: scale(1.15);
    }

.logout-item {
    color: var(--error) !important;
    font-weight: var(--font-weight-semibold);
}

    .logout-item::before {
        background: var(--error) !important;
    }

    .logout-item:hover {
        background: linear-gradient(90deg, var(--error-light) 0%, rgba(255, 235, 238, 0.5) 100%) !important;
    }

.dropdown-footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 2px solid var(--border-light);
    background: linear-gradient(135deg, #faf8f3 0%, #f5f0e8 100%);
    text-align: center;
}

    .dropdown-footer a {
        font-size: var(--font-size-sm);
        color: var(--primary-blue);
        font-weight: var(--font-weight-semibold);
        transition: all 0.3s;
    }

        .dropdown-footer a:hover {
            color: var(--accent-gold);
        }

/* User Dropdown Specific */
.user-dropdown .dropdown-header {
    flex-direction: row;
    gap: var(--space-md);
}

.dropdown-avatar {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    border: 3px solid var(--accent-gold);
    box-shadow: 0 3px 8px rgba(212, 175, 55, 0.3);
}

/* ===== NOTIFICATIONS DROPDOWN ===== */
.notifications-dropdown {
    min-width: 360px;
    max-width: 420px;
}

.notifications-list {
    max-height: 420px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s;
    position: relative;
}

    .notification-item:last-child {
        border-bottom: none;
    }

    .notification-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 3px;
        height: 100%;
        background: var(--accent-gold);
        transform: scaleY(0);
        transition: transform 0.3s;
    }

    .notification-item:hover {
        background: var(--bg-light-beige);
        padding-left: calc(var(--space-lg) + 6px);
    }

        .notification-item:hover::before {
            transform: scaleY(1);
        }

.notification-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f0eee8 0%, #faf8f3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--border-light);
    transition: all 0.3s;
}

.notification-item:hover .notification-icon {
    background: linear-gradient(135deg, #fffef9 0%, #fffbf5 100%);
    border-color: var(--accent-gold);
    transform: scale(1.05) rotate(-3deg);
}

.notification-icon i {
    color: var(--primary-blue);
    font-size: var(--font-size-lg);
    transition: all 0.3s;
}

.notification-item:hover .notification-icon i {
    color: var(--accent-gold);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-text {
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    margin: 0 0 var(--space-xs);
    line-height: 1.5;
    font-weight: 500;
}

.notification-time {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* ===== CONTENT AREA ===== */
.content-area {
    flex: 1;
    padding: var(--space-xl);
    background: var(--bg-warm);
    position: relative;
    z-index: 1;
}

.content-container {
    max-width: 100%;
}

/* ===== ADMIN FOOTER ===== */
.admin-footer {
    background: linear-gradient(135deg, #faf8f3 0%, #f5f0e8 100%);
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0.6) 50%, rgba(212, 175, 55, 0.3) 100%) 1;
    padding: var(--space-md) var(--space-xl);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    gap: var(--space-md);
    flex-wrap: wrap;
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

    .footer-right .separator {
        color: var(--border-medium);
    }

.footer-link {
    color: var(--text-secondary);
    transition: all 0.3s;
}

    .footer-link:hover {
        color: var(--primary-blue);
    }

/* ===== RESPONSIVE STYLES (mobile-first friendly for kids & teachers) ===== */

/* Safe area for notched phones */
@supports (padding: max(0px)) {
    .navbar-content {
        padding-left: max(var(--space-xl), env(safe-area-inset-left));
        padding-right: max(var(--space-xl), env(safe-area-inset-right));
    }
    .content-container {
        padding-left: max(var(--space-lg), env(safe-area-inset-left));
        padding-right: max(var(--space-lg), env(safe-area-inset-right));
    }
}

/* Tablet (max-width: 968px) */
@media (max-width: 968px) {
    .main {
        margin-left: 0 !important;
    }

    #sidebar {
        transform: translateX(-100%);
        z-index: var(--z-fixed);
        width: min(320px, 85vw);
        max-width: 320px;
    }

        #sidebar.active {
            transform: translateX(0);
            box-shadow: 8px 0 30px rgba(0,0,0,0.25);
        }

        #sidebar.collapsed {
            transform: translateX(-100%);
        }

    .sidebar-overlay {
        display: block;
    }

    .sidebar-overlay.active {
        cursor: pointer;
    }

    .navbar-content {
        padding: 10px var(--space-md);
        flex-wrap: wrap;
    }

    .page-breadcrumb {
        display: flex;
        min-width: 0;
        flex: 1 1 auto;
    }

    .page-title {
        font-size: 1.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .user-info {
        display: none;
    }

    .dropdown-arrow {
        display: none;
    }

    .navbar-right {
        gap: 10px;
        flex-shrink: 0;
    }

    /* Touch-friendly: min 44px tap targets */
    .sidebar-toggle-btn,
    .navbar-icon-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .content-area {
        padding: var(--space-md);
    }

    .content-container {
        padding: var(--space-md);
        max-width: 100%;
    }

    .dropdown-menu {
        min-width: 260px;
    }

    .notifications-dropdown {
        min-width: 300px;
        max-width: calc(100vw - 2rem);
    }

    .admin-footer {
        padding: var(--space-sm) var(--space-md);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
}

/* Mobile (max-width: 640px) */
@media (max-width: 640px) {
    .navbar-content {
        padding: 8px var(--space-md);
        gap: 10px;
    }

    .navbar-left {
        gap: 10px;
        min-width: 0;
    }

    .navbar-right {
        gap: 8px;
    }

    .sidebar-toggle-btn,
    .navbar-icon-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .user-avatar-img {
        width: 36px;
        height: 36px;
    }

    .user-profile-link,
    .user-profile-dropdown {
        padding: 6px;
        min-height: 44px;
    }

    .page-title {
        font-size: 1rem;
    }

    .content-area {
        padding: var(--space-sm);
    }

    .content-container {
        padding: var(--space-sm);
    }

    .dropdown-menu {
        min-width: calc(100vw - 2rem);
        left: 1rem !important;
        right: 1rem !important;
    }

    .notifications-dropdown {
        min-width: calc(100vw - 2rem);
    }

    .sidebar-logo {
        padding: var(--space-md);
    }

        .sidebar-logo img {
            width: 40px;
            height: 40px;
        }

    .sidebar-link {
        padding: 14px var(--space-md);
        font-size: 0.95rem;
        min-height: 48px;
        align-items: center;
    }

        .sidebar-link i {
            font-size: 1.1rem;
        }

    .sidebar-footer {
        padding: var(--space-md);
    }
}

/* Extra Small Mobile (max-width: 375px) */
@media (max-width: 375px) {
    .navbar-content {
        padding: 6px 12px;
    }

    .sidebar-toggle-btn,
    .navbar-icon-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }

    .navbar-right {
        gap: 6px;
    }

    .sidebar-link {
        padding: 12px 12px;
        font-size: 0.9rem;
    }

        .sidebar-link i {
            font-size: 1rem;
            width: 22px;
        }

    .sidebar-dropdown .sidebar-link {
        padding-left: calc(var(--space-lg) * 1.5);
    }
}

/* Landscape Mobile Optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .navbar-content {
        padding: 8px var(--space-md);
    }

    .sidebar-toggle-btn,
    .navbar-icon-btn {
        width: 36px;
        height: 36px;
    }

    .content-area {
        padding: var(--space-sm);
    }

    .sidebar-logo {
        padding: var(--space-sm) var(--space-md);
    }

        .sidebar-logo img {
            width: 36px;
            height: 36px;
        }

    .sidebar-link {
        padding: 10px var(--space-md);
    }

    .sidebar-footer {
        padding: var(--space-sm);
        font-size: 11px;
    }
}

/* High Resolution Displays */
@media (min-width: 1400px) {
    .navbar-content {
        padding: var(--space-lg) var(--space-2xl);
    }

    .sidebar-toggle-btn,
    .navbar-icon-btn {
        width: 48px;
        height: 48px;
    }

    .user-avatar-img {
        width: 44px;
        height: 44px;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .admin-navbar,
    .admin-navbar::before,
    .admin-navbar::after,
    #sidebar,
    #sidebar::before,
    #sidebar::after,
    .sidebar-toggle-btn,
    .navbar-icon-btn,
    .user-profile-link,
    .user-profile-dropdown,
    .dropdown-item,
    .notification-item,
    .sidebar-link,
    .sidebar-link i,
    .sidebar-logo img,
    .sidebar-overlay,
    .notification-badge {
        animation: none !important;
        transition: none !important;
    }

        .navbar-icon-btn.processing i {
            animation: none;
        }

    .page-title {
        animation: none;
    }
}
