/* Enhanced Mobile Navigation Visibility - Apply to all pages */

/* Enhanced Mobile Navigation Visibility */
.main-navbar {
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mobile-menu-overlay {
    z-index: 1100;
}

.mobile-menu-panel {
    z-index: 1200;
}

/* Enhanced Mobile Menu Button Visibility */
#mobile-menu-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dark #mobile-menu-btn {
    background: rgba(31, 41, 55, 0.95);
    border: 2px solid rgba(0, 212, 255, 0.3);
}

#mobile-menu-btn:hover {
    background: #00d4ff;
    border-color: #00d4ff;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

/* Enhanced Hamburger Lines */
.hamburger-line {
    background: currentColor;
    height: 3px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu Enhanced Visibility */
#mobile-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 3px solid #00d4ff;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
}

.dark #mobile-menu {
    background: rgba(17, 24, 39, 0.98);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

/* Enhanced Mobile Menu Overlay */
#mobile-menu-overlay {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Mobile Navigation Links Enhancement */
.mobile-nav-link {
    border-radius: 12px;
    margin-bottom: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

/* Active Mobile Nav Link */
.mobile-nav-link.active {
    background: linear-gradient(135deg, #00d4ff, #0099cc) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
    transform: translateX(0px);
}

.mobile-nav-link.active i {
    color: white !important;
}

.mobile-nav-link.active:hover {
    background: linear-gradient(135deg, #0099cc, #007399) !important;
    transform: translateX(4px);
}

/* Responsive Navigation Improvements */
@media (max-width: 768px) {
    .main-navbar {
        background: rgba(255, 255, 255, 0.95);
        border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    }
    
    .dark .main-navbar {
        background: rgba(17, 24, 39, 0.95);
    }
    
    #mobile-menu-btn {
        min-width: 48px;
        min-height: 48px;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .hamburger-line,
    .mobile-nav-link,
    #mobile-menu {
        transition: none !important;
    }
}
/* Desktop
 Navigation Active State Consistency */
.nav-link.active {
    background: linear-gradient(135deg, #00d4ff, #0099cc) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.nav-link.active span {
    color: white !important;
}

/* Ensure consistent spacing and alignment */
.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 40px;
}

/* Mobile menu consistent width and positioning */
@media (max-width: 768px) {
    #mobile-menu {
        width: 320px;
        max-width: 85vw;
    }
    
    .mobile-nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .mobile-nav-link i {
        width: 20px;
        text-align: center;
        flex-shrink: 0;
    }
}

/* Fix for badge positioning in active states */
.nav-link span.ml-2,
.mobile-nav-link span.ml-auto {
    margin-left: auto;
    flex-shrink: 0;
}

/* Ensure proper text color inheritance */
.mobile-nav-link.active * {
    color: white !important;
}