/* ===================================
   SHARED COMPONENTS CSS
   Single source of truth for consistent elements across all pages
   =================================== */

/* ===================================
   CSS VARIABLES - Available to all components
   =================================== */
:root {
    /* Enhanced Color Palette - Opera Gaming Inspired */
    --primary-bg: #0a0a0f;
    --bg-primary: #0a0a0f; /* Added for breadcrumbs compatibility */
    --secondary-bg: #1a1a2e;
    --accent-bg: #16213e;
    --primary-red: #e94560;
    --primary-blue: #0f3460;
    --accent-blue: #00d4ff;
    --accent-purple: #9b59b6;
    --accent-green: #2ecc71;
    --accent-orange: #f39c12;
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-muted: #6c6c6c;
    --border-color: #2a2a3e;
    --success-color: #00ff88;
    --warning-color: #ffaa00;
    
    /* Typography */
    --font-primary: 'Orbitron', monospace;
    --font-secondary: 'Rajdhani', sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 80px 0;
}

/* ===================================
   UTILITY CLASSES - Common patterns
   =================================== */
.hidden-visibility {
    visibility: hidden !important;
}

.position-relative {
    position: relative !important;
}

/* Loading progress styles */
.loading-progress-hidden {
    display: none !important;
}

/* Dynamic progress bar widths */
.loading-progress-bar {
    transition: width 0.3s ease;
}

/* Generate progress classes 0-100 */
.loading-progress-0 { width: 0% !important; }
.loading-progress-10 { width: 10% !important; }
.loading-progress-20 { width: 20% !important; }
.loading-progress-30 { width: 30% !important; }
.loading-progress-40 { width: 40% !important; }
.loading-progress-50 { width: 50% !important; }
.loading-progress-60 { width: 60% !important; }
.loading-progress-70 { width: 70% !important; }
.loading-progress-80 { width: 80% !important; }
.loading-progress-90 { width: 90% !important; }
.loading-progress-100 { width: 100% !important; }

/* ===================================
   NAVBAR STYLES - Consistent across all pages
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
    height: 70px;
    overflow: visible;
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    /* padding: 0 20px; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
    overflow: visible;
}

/* ===================================
   LOGO STYLES - Consistent across all pages
   =================================== */
.nav-logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1001;
}

.logo {
    height: 140px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.7));
    transition: all 0.3s ease;
    position: relative;
    margin-top: 57px;
}

/* ===================================
   USER PROFILE STICKY - Consistent across all pages
   =================================== */
.user-profile-sticky {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1000;
    margin-left: auto;
    width: fit-content;
    margin-bottom: 20px;
}

.user-profile-container {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    border-radius: 25px;
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    min-width: 280px;
    min-height: 74px;
}

.user-profile-container:hover {
    background: rgba(26, 26, 46, 1);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 212, 255, 0.2);
}

/* Navbar Auth Button - Login/Signup */
.navbar-auth-button {
    display: flex;
    align-items: center;
    /* margin-left: auto; */
    /* margin-right: 20px; */
}

.navbar-auth-button .nav-btn {
    background: linear-gradient(135deg, var(--primary-red), var(--accent-purple));
    color: white;
    border: none;
    padding: 8px 7px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.navbar-auth-button .nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 0, 0, 0.5);
    background: linear-gradient(135deg, var(--accent-purple), var(--primary-red));
}

.navbar-auth-button .nav-btn i {
    font-size: 18px;
}

/* User profile avatar */
.user-profile-sticky .user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.user-profile-sticky .user-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-height: 50px;
    overflow: visible !important;
    height: auto !important;
}

.user-profile-sticky .username {
    font-weight: 600;
    font-size: 16px !important;
    color: var(--text-primary);
}

.user-profile-sticky .user-stats {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 30px;
}

.user-profile-sticky .user-profile-progress-bar {
    width: 120px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.user-profile-sticky .user-profile-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
    border-radius: 4px;
    position: relative;
    width: 0%; /* Default width */
    transition: width 0.3s ease;
}

/* Progress bar width based on data-progress attribute */
.user-profile-sticky .user-profile-progress-fill[data-progress="0"] { width: 0%; }
.user-profile-sticky .user-profile-progress-fill[data-progress="10"] { width: 10%; }
.user-profile-sticky .user-profile-progress-fill[data-progress="20"] { width: 20%; }
.user-profile-sticky .user-profile-progress-fill[data-progress="30"] { width: 30%; }
.user-profile-sticky .user-profile-progress-fill[data-progress="40"] { width: 40%; }
.user-profile-sticky .user-profile-progress-fill[data-progress="50"] { width: 50%; }
.user-profile-sticky .user-profile-progress-fill[data-progress="60"] { width: 60%; }
.user-profile-sticky .user-profile-progress-fill[data-progress="70"] { width: 70%; }
.user-profile-sticky .user-profile-progress-fill[data-progress="80"] { width: 80%; }
.user-profile-sticky .user-profile-progress-fill[data-progress="90"] { width: 90%; }
.user-profile-sticky .user-profile-progress-fill[data-progress="100"] { width: 100%; }

.user-profile-sticky .progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.user-profile-sticky .rank {
    font-size: 12px !important;
    color: var(--text-secondary);
    font-weight: 500;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1.2;
}

.user-profile-sticky .dropdown-arrow {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.user-profile-sticky:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
}

.user-profile-sticky .user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 180px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
}

.user-profile-sticky .user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-profile-sticky .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
}

.user-profile-sticky .dropdown-item:hover {
    background: rgba(233, 69, 96, 0.1);
    color: var(--primary-red);
}

.user-profile-sticky .dropdown-item:first-child {
    border-radius: 10px 10px 0 0;
}

.user-profile-sticky .dropdown-item:last-child {
    border-radius: 0 0 10px 10px;
}

.user-profile-sticky .dropdown-item i {
    font-size: 14px;
    width: 16px;
}

/* ===================================
   MOBILE RESPONSIVENESS - Consistent across all pages
   =================================== */
@media (max-width: 768px) {
    /* Hide the original floating user profile sticky on mobile */
    .user-profile-sticky {
        display: none !important;
    }
    
    /* Create a mobile-specific user profile inside navbar */
    .navbar .mobile-user-profile {
        display: flex !important;
        position: relative; /* For dropdown positioning */
    }
    
    .navbar .mobile-user-profile .user-profile-container {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 8px 12px !important;
        border-radius: 8px !important;
        background: rgba(26, 26, 46, 0.85) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        backdrop-filter: blur(10px) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
        margin-right: 10px !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        height: auto !important;
    }
    
    .navbar .mobile-user-profile .user-profile-container:hover {
        background: rgba(26, 26, 46, 0.95) !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 15px rgba(0, 212, 255, 0.1) !important;
    }
    
    /* Mobile avatar */
    .navbar .mobile-user-profile .user-avatar {
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        background: linear-gradient(135deg, #e91e63, #9c27b0) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    
    .navbar .mobile-user-profile .user-avatar span {
        color: white !important;
        font-size: 14px !important;
        font-weight: bold !important;
        text-transform: uppercase !important;
    }
    
    /* Mobile user info */
    .navbar .mobile-user-profile .user-info {
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    .navbar .mobile-user-profile .username {
        font-size: 13px !important;
        color: white !important;
        font-weight: 600 !important;
        margin: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .navbar .mobile-user-profile .rank {
        font-size: 11px !important;
        color: #00d4ff !important;
        font-weight: 400 !important;
        margin: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    }
    

    
    /* Dropdown arrow styling for mobile */
    .navbar .mobile-user-profile .dropdown-arrow {
        color: var(--text-secondary);
        font-size: 10px; /* Smaller arrow */
        transition: transform 0.3s ease;
        margin-left: 4px;
        flex-shrink: 0;
    }
    
    .navbar .mobile-user-profile .user-profile-container.active .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    /* Mobile dropdown menu styling */
    .navbar .mobile-user-profile .user-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(26, 26, 46, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        backdrop-filter: blur(15px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
        min-width: 160px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1000;
        margin-top: 8px;
    }
    
    .navbar .mobile-user-profile .user-dropdown.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .navbar .mobile-user-profile .dropdown-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        color: white;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s ease;
        border-radius: 8px;
        margin: 4px;
    }
    
    .navbar .mobile-user-profile .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--accent-blue);
    }
    
    .navbar .mobile-user-profile .dropdown-item i {
        font-size: 14px;
        width: 16px;
        text-align: center;
    }
    
    /* Ensure navbar container has proper spacing for mobile user profile */
    .nav-container {
        justify-content: space-between;
        align-items: center;
        /* padding: 0 15px; Slightly reduce padding on mobile */
    }
    
    /* Ensure hamburger menu remains visible and properly positioned */
    .hamburger {
        position: relative;
        z-index: 1001;
        margin-left: 5px; /* Small margin from user profile */
    }
    
    /* Hide desktop user profile sticky on mobile */
    .mobile-user-profile {
        display: none; /* Hidden by default, shown only in mobile media query */
    }
}



/* ===================================
   MOBILE RESPONSIVE NAVBAR
   =================================== */
@media (max-width: 768px) {
    .navbar {
        overflow: visible;
    }
    
    .nav-container {
        overflow: visible;
    }
    
    /* Ensure hamburger menu doesn't interfere with badge */
    .hamburger {
        z-index: 1003;
        position: relative;
    }
}


/* ===================================
   NAVIGATION MENU STYLES - Complete navbar functionality
   =================================== */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-item {
    position: relative;
    overflow: visible; /* Allow badge to escape container */
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    font-size: 14px;
    border: 1px solid transparent;
    background: rgba(26, 26, 46, 0.3);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.3);
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
}

/* ===================================
   DROPDOWN MENU STYLES
   =================================== */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 4px;
}

.dropdown-link:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--text-primary);
    transform: translateX(5px);
}

.dropdown-link i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.dropdown-link span {
    font-size: 13px;
    font-weight: 500;
}

/* ===================================
   NOTIFICATION BADGE STYLES
   =================================== */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1003;
    border: 2px solid #0a0a0f;
    /* Glow/bloom effect */
    box-shadow: 
        0 0 10px rgba(220, 53, 69, 0.6),
        0 0 20px rgba(220, 53, 69, 0.4),
        0 0 30px rgba(220, 53, 69, 0.2);
    animation: notificationGlow 2s ease-in-out infinite alternate;
}

@keyframes notificationGlow {
    0% {
        box-shadow: 
            0 0 10px rgba(220, 53, 69, 0.6),
            0 0 20px rgba(220, 53, 69, 0.4),
            0 0 30px rgba(220, 53, 69, 0.2);
    }
    100% {
        box-shadow: 
            0 0 15px rgba(220, 53, 69, 0.8),
            0 0 25px rgba(220, 53, 69, 0.6),
            0 0 35px rgba(220, 53, 69, 0.4);
    }
}

/* ===================================
   HAMBURGER MENU STYLES
   =================================== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Logo Link Styles */
.logo-link {
    display: block;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

/* ===================================
   MOBILE RESPONSIVE NAVBAR STYLES
   =================================== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 200px; /* Position after logo (57px margin + 140px height = ~197px) */
        flex-direction: column;
        background-color: rgba(10, 10, 15, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
        padding: 20px 0; /* Normal padding since we positioned correctly */
        gap: 10px;
        height: calc(100vh - 200px); /* Adjust height to start from new top position */
        overflow-y: auto; /* Make it scrollable */
    }
    
    /* Custom scrollbar for mobile nav menu */
    .nav-menu::-webkit-scrollbar {
        width: 4px;
    }
    
    .nav-menu::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .nav-menu::-webkit-scrollbar-thumb {
        background: rgba(0, 212, 255, 0.5);
        border-radius: 2px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        justify-content: center;
        padding: 15px 20px;
        margin: 0 20px;
        border-radius: 10px;
    }
    
    /* Completely eliminate gap from Services dropdown */
    .nav-item.dropdown {
        display: block !important;
        margin: 0 !important; /* Remove all margins */
        padding: 0 !important; /* Remove all padding */
        margin-top: -5px !important; /* Moderate negative margin for consistent spacing */
        margin-bottom: 0px !important; /* No bottom margin to maintain natural flow */
        text-align: center !important; /* Ensure proper centering */
        width: 100% !important; /* Full width like other nav items */
        justify-content: center !important; /* Center the content like other nav items */
    }
    
    .nav-item.dropdown .nav-link {
        margin: 0 20px !important; /* Only horizontal margins like other nav items */
        padding: 15px 20px !important; /* Standard padding */
        justify-content: center !important; /* Center the content like other nav items */
        text-align: center !important; /* Center text */
        display: flex !important; /* Ensure flexbox layout */
        align-items: center !important; /* Vertical center alignment */
        width: calc(100% - 40px) !important; /* Account for horizontal margins */
        box-sizing: border-box !important; /* Include padding in width calculation */
        margin-bottom: 0 !important; /* Remove any bottom margin from nav-link */
    }
    
    /* Fix Services dropdown-toggle centering on mobile */
    .nav-item.dropdown .nav-link.dropdown-toggle {
        justify-content: center !important; /* Center all content */
        text-align: center !important; /* Center text */
        gap: 6px !important; /* Reduce gap to maintain centering */
        margin-bottom: 0 !important; /* Ensure no bottom margin */
    }
    
    /* Make dropdown arrow clickable and visible on mobile */
    .dropdown-arrow {
        display: inline-block !important;
        font-size: 12px !important;
        transition: transform 0.3s ease !important;
    }
    
    /* Disable hover behavior on mobile, use click instead */
    .dropdown:hover .dropdown-menu {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-10px) !important;
    }
    
    /* Style dropdown menu for mobile inline expansion */
    .dropdown-menu {
        margin: 0 !important; /* Remove any default margins */
        position: static !important; /* Make it part of document flow */
        opacity: 0 !important;
        visibility: hidden !important;
        transform: none !important;
        background: rgba(26, 26, 46, 0.5) !important;
        border: 1px solid rgba(0, 212, 255, 0.2) !important;
        border-radius: 8px !important;
        box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3) !important;
        backdrop-filter: blur(5px) !important;
        min-width: auto !important;
        margin: 0 20px 0 20px !important; /* Only horizontal margins, no vertical */
        padding: 0 !important; /* No padding when collapsed */
        max-height: 0 !important;
        overflow: hidden !important;
        transition: all 0.3s ease !important;
    }
    
    /* When dropdown is active/clicked */
    .dropdown.mobile-active .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        max-height: 300px !important; /* Allow expansion */
        padding: 10px 0 !important; /* Restore padding when active */
    }
    
    /* Rotate arrow when dropdown is active */
    .dropdown.mobile-active .dropdown-arrow {
        transform: rotate(180deg) !important;
    }
    
    .dropdown-menu li {
        display: block !important;
    }
    
    .dropdown-link {
        justify-content: center !important;
        padding: 12px 20px !important;
        margin: 5px 15px !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid transparent !important;
        font-size: 14px !important;
        transform: none !important;
        transition: all 0.3s ease !important;
    }
    
    .dropdown-link:hover {
        background: rgba(0, 212, 255, 0.1) !important;
        border-color: rgba(0, 212, 255, 0.3) !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 3px 10px rgba(0, 212, 255, 0.2) !important;
    }
    
    .dropdown-link span {
        font-size: 14px !important;
        font-weight: 500 !important;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-container {
        overflow: visible;
    }
    
    /* Ensure hamburger menu doesn't interfere with badge */
    .hamburger {
        z-index: 1003;
        position: relative;
    }
}



/* =============================================================================
   UTILITY CLASSES - For replacing inline styles
   ============================================================================= */

/* Text color utilities */
.text-accent-blue {
    color: var(--accent-blue);
}

.text-muted {
    color: var(--text-muted);
}

/* Spacing utilities */
.mb-10 {
    margin-bottom: 10px;
}

/* Layout utilities */
.loading-spinner-size {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

/* Progress bar width utilities */
.progress-25 {
    width: 25%;
}

.progress-20 {
    width: 20%;
}

/* Test page styling */
.test-page-body {
    background: #1a1a2e;
    color: white;
    padding: 20px;
}

/* Display utilities - using existing .hidden class for display: none */

/* =============================================================================
   INLINE STYLE REPLACEMENTS - Moving inline styles to CSS classes
   ============================================================================= */

/* Notification System Styles - COMMENTED OUT to avoid conflicts with notification-system.css
   notification-system.css defines this with top: 20px instead of top: 80px
.notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}
*/

.notification-item {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.notification-item.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.notification-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.notification-progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.notification-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(255,255,255,0.4));
    border-radius: 2px;
    transform-origin: left;
    animation: notificationProgress 3s linear;
}
/* Type-specific progress colors (slightly darker than the toast background) */
.notification .notification-progress .progress-success {
    background: linear-gradient(90deg, rgba(0, 128, 64, 0.8), rgba(0, 128, 64, 0.6));
}
.notification .notification-progress .progress-error {
    background: linear-gradient(90deg, rgba(179, 30, 54, 0.85), rgba(179, 30, 54, 0.65));
}
.notification .notification-progress .progress-info {
    background: linear-gradient(90deg, rgba(0, 86, 178, 0.8), rgba(0, 86, 178, 0.6));
}
.notification .notification-progress .progress-warning {
    background: linear-gradient(90deg, rgba(179, 135, 0, 0.85), rgba(179, 135, 0, 0.65));
}

@keyframes notificationProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* Notification dismiss animation */
.notification-dismissing {
    animation: slideOutNotification 0.3s ease forwards;
}

@keyframes slideOutNotification {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Modal Overflow Control */
.modal-overflow-hidden {
    overflow: hidden !important;
}

/* Admin Panel Styles */
.admin-panel-hidden {
    display: none !important;
}

.admin-panel-visible {
    display: block !important;
}

/* Admin tip positioning */
.admin-tip-top {
    top: 85px;
}

/* Online Users List */
.online-user-item {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.online-user-status {
    font-size: 12px;
    color: #888;
}

/* Search Functionality */
.chevron-rotated {
    transform: rotate(180deg);
}

.search-results-visible {
    display: block !important;
}

.search-results-hidden {
    display: none !important;
}

.no-results-message {
    text-align: center;
    padding: 20px;
    color: #888;
}

/* Button States */
.button-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button-enabled {
    opacity: 1;
    cursor: pointer;
}

/* Progress Bar Animations */
.progress-bar-animated {
    animation: progressPulse 1s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Input Focus State */
.input-error {
    border: 2px solid #ff0066 !important;
    box-shadow: 0 0 10px rgba(255, 0, 102, 0.3) !important;
}

/* Notification Badge Positioning */
.notification-badge-desktop {
    display: flex;
    position: absolute;
    top: -5px;
    right: -5px;
}

.notification-badge-mobile {
    display: none;
}

@media (max-width: 768px) {
    .notification-badge-desktop {
        display: none;
    }
    
    .notification-badge-mobile {
        display: flex;
        position: absolute;
        top: -8px;
        right: -8px;
    }
}

/* Breadcrumb Display States */
.breadcrumb-visible {
    display: block;
}

.breadcrumb-hidden {
    display: none;
}

/* Admin Stats Card */
.admin-stat-card {
    text-align: center;
}

.admin-stat-value {
    font-size: 2em;
    font-weight: bold;
    color: var(--accent-blue);
}

.admin-stat-label {
    color: var(--text-secondary);
    margin-top: 5px;
}





/* ===================================
   BREADCRUMB STYLES - Clean Supabase Implementation
   =================================== */

.breadcrumbs {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    margin-top: 70px; /* Account for fixed navbar */
    position: sticky;
    top: 70px;
    z-index: 900;
    transition: all 0.3s ease;
}

.breadcrumb-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-secondary);
    font-size: 14px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
}

.breadcrumb-item:hover {
    color: var(--accent-blue);
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-blue);
    transform: translateY(-1px);
}

.breadcrumb-item.current {
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary-red), var(--accent-purple));
    border-color: var(--primary-red);
    font-weight: 600;
    cursor: default;
}

.breadcrumb-item.current:hover {
    transform: none;
    background: linear-gradient(135deg, var(--primary-red), var(--accent-purple));
    border-color: var(--primary-red);
}

.breadcrumb-item i {
    font-size: 12px;
    opacity: 0.8;
}

.breadcrumb-separator {
    color: var(--text-muted);
    font-size: 12px;
    margin: 0 4px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .breadcrumbs {
        padding: 8px 0;
    }
    
    .breadcrumb-container {
        padding: 0 15px;
        font-size: 12px;
        gap: 4px;
    }
    
    .breadcrumb-item {
        padding: 4px 8px;
        gap: 4px;
    }
    
    .breadcrumb-item span {
        display: none; /* Hide text on mobile, show only icons */
    }
    
    .breadcrumb-item.current span {
        display: inline; /* Show current page text */
    }
}

/* Animation for breadcrumb updates */
@keyframes breadcrumbFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.breadcrumb-item {
    animation: breadcrumbFadeIn 0.3s ease;
}

/* Breadcrumb visibility states */
.breadcrumb-visible {
    display: block;
}

.breadcrumb-hidden {
    display: none;
}

/* ===== FORM ERROR MESSAGES ===== */
.error-message {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    animation: fadeIn 0.3s ease;
}

.error-message::before {
    content: '\f071'; /* Font Awesome exclamation triangle */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 16px;
}

/* Base success/error message styles */
.success-message {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-message {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Error message in auth modal */
.auth-form .error-message {
    margin-top: 15px;
    margin-bottom: 15px;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.2);
}


/* Success message in auth modal */
.auth-form .success-message {
    margin-top: 15px;
    margin-bottom: 15px;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.2);
}

.success-message::before {
    content: '\f00c'; /* Font Awesome check */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 16px;
}

/* Responsive error messages */
@media (max-width: 480px) {
    .error-message,
    .success-message {
        padding: 12px 15px;
        font-size: 13px;
    }
}

/* ===== BUTTON LOADING STATES ===== */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

