/* Modern Navigation Bar Styles */
.modern-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: linear-gradient(135deg, rgba(16, 16, 30, 0.95) 0%, rgba(30, 30, 60, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 0.8s ease-out;
}

.modern-navbar.scrolled {
    height: 60px;
    background: linear-gradient(135deg, rgba(16, 16, 30, 0.98) 0%, rgba(30, 30, 60, 0.98) 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-logo:hover {
    transform: translateY(-2px);
}

.logo-nav {
    height: 48px;
    width: auto;
    transition: all 0.3s ease;
}

.modern-navbar.scrolled .logo-nav {
    height: 44px;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff00c8 0%, #7000ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    position: relative;
    padding: 10px 18px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
    background: none;
    cursor: pointer;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #ff00c8 0%, #7000ff 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50px;
    z-index: -1;
}

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

.nav-link:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 200, 0.3);
}

.nav-link.active {
    background: linear-gradient(135deg, #ff00c8 0%, #7000ff 100%);
    color: white;
}

.nav-link-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: scale(1.1);
}

.register-btn {
    background: linear-gradient(135deg, #ff00c8 0%, #7000ff 100%);
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 0, 200, 0.3);
}

.register-btn::before {
    background: linear-gradient(135deg, #7000ff 0%, #ff00c8 100%);
}

.logout-form {
    display: inline;
}

.logout-btn {
    color: #dc3545;
}

.logout-btn:hover {
    color: white;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.logout-btn::before {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* Separator */
.nav-separator {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 0.5rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 0, 200, 0.1);
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: linear-gradient(135deg, #ff00c8 0%, #7000ff 100%);
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.mobile-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: white;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateX(0);
}

.mobile-menu-header {
    padding: 2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-logo {
    height: 40px;
    width: auto;
}

.close-mobile-menu {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    font-size: 1.5rem;
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-mobile-menu:hover {
    background: rgba(255, 0, 200, 0.1);
    color: #ff00c8;
}

.mobile-menu-links {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    background: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.mobile-nav-link:hover {
    background: linear-gradient(135deg, #ff00c8 0%, #7000ff 100%);
    color: white;
    transform: translateX(5px);
}

.mobile-nav-link.active {
    background: linear-gradient(135deg, #ff00c8 0%, #7000ff 100%);
    color: white;
}

.mobile-nav-link i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.register-mobile {
    background: linear-gradient(135deg, #ff00c8 0%, #7000ff 100%);
    color: white !important;
    margin-top: 10px;
}

.logout-mobile {
    color: #dc3545;
}

.logout-mobile:hover {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* Body padding for fixed navbar */
body {
    padding-top: 68px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .brand-text {
        font-size: 1.2rem;
    }

    .logo-nav {
        height: 38px;
    }

    .mobile-menu {
        width: 100%;
    }

    body {
        padding-top: 60px;
    }

    .modern-navbar {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 100vw;
    }

    .mobile-menu-links {
        padding: 1.5rem;
    }
}

/* Animation for scroll */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ripple effect */
.nav-link {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 600ms linear;
    background-color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}
