 /* Enhanced Navigation Styles - Advanced Version */

/* Modern Navigation Bar with Glassmorphism */
.navbar {
    background: linear-gradient(135deg, 
        rgba(79, 172, 254, 0.95) 0%, 
        rgba(0, 242, 254, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(79, 172, 254, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.navbar:hover::before {
    opacity: 1;
    animation: shimmerNav 2s ease-in-out;
}

@keyframes shimmerNav {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Enhanced Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Animated hamburger transformation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: linear-gradient(90deg, #ff6b6b 0%, #feca57 100%);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: linear-gradient(90deg, #ff6b6b 0%, #feca57 100%);
}

/* Enhanced Navigation Center */
.nav-center {
    display: flex;
    gap: 8px;
    align-items: center;
    position: relative;
}

.nav-center::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -15px;
    right: -15px;
    bottom: -10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-center:hover::before {
    opacity: 1;
}

/* Enhanced Navigation Right */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

/* Enhanced User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.user-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.5s ease;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

.user-info:hover::before {
    left: 100%;
}

/* Enhanced User Avatar */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.user-avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.user-avatar:hover::before {
    opacity: 1;
    animation: avatarShine 0.6s ease-in-out;
}

@keyframes avatarShine {
    0% { transform: rotate(45deg) translateX(-100%); }
    100% { transform: rotate(45deg) translateX(100%); }
}

.user-name-text {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Enhanced Navigation Buttons */
.nav-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn.active {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    color: #4facfe;
    font-weight: 700;
    border-color: #fff;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.nav-btn.active::before {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(79, 172, 254, 0.1), 
        transparent);
}

/* Enhanced Logout Button */
.logout-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border: 2px solid rgba(255, 107, 107, 0.5);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logout-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #f44336 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.logout-btn:active {
    transform: translateY(0);
}

/* Enhanced Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Enhanced Mobile Responsive Styles */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 16px;
        justify-content: space-between;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: static;
    }
    
    .nav-center {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 320px;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, 
            rgba(79, 172, 254, 0.98) 0%, 
            rgba(0, 242, 254, 0.98) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 40px 0;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .nav-center::before {
        display: none;
    }
    
    .nav-center.active {
        left: 0;
    }
    
    .nav-center .nav-btn {
        width: 250px;
        margin: 10px auto;
        padding: 18px 30px;
        border-radius: 30px;
        font-size: 16px;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.3);
        text-align: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(-20px);
        opacity: 0;
        animation: slideInLeft 0.4s ease forwards;
    }
    
    .nav-center .nav-btn:nth-child(1) { animation-delay: 0.1s; }
    .nav-center .nav-btn:nth-child(2) { animation-delay: 0.2s; }
    .nav-center .nav-btn:nth-child(3) { animation-delay: 0.3s; }
    
    @keyframes slideInLeft {
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
    
    .nav-center .nav-btn:hover,
    .nav-center .nav-btn.active {
        background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
        color: #4facfe;
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    }
    
    .nav-right {
        gap: 8px;
    }
    
    .user-info {
        padding: 6px 12px;
        gap: 8px;
    }
    
    .user-name-text {
        display: none;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .logout-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 12px;
    }
    
    .nav-center {
        width: 100%;
        left: -100%;
    }
    
    .nav-center.active {
        left: 0;
    }
    
    .nav-center .nav-btn {
        width: 280px;
    }
    
    .user-info {
        padding: 4px 8px;
        gap: 6px;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .logout-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Enhanced focus styles for accessibility */
.nav-btn:focus,
.mobile-menu-toggle:focus,
.user-info:focus {
    outline: 3px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .navbar {
        background: #000;
        border-bottom: 3px solid #fff;
    }
    
    .nav-btn {
        border: 3px solid #fff;
        background: transparent;
    }
    
    .nav-btn.active {
        background: #fff;
        color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .navbar,
    .nav-btn,
    .user-avatar,
    .mobile-menu-toggle,
    .hamburger-line,
    .nav-center {
        transition: none;
        animation: none;
    }
}