/* static/css/navigation.css */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(41, 3, 102, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.8rem 2rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-brand a {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-brand a:hover {
    color: #76cdff;
}

.navbar-menu {
    display: flex;
    align-items: center;
}

.navbar-nav {
    display: flex;
    list-style: none;
}

.navbar-nav li {
    margin-left: 1.5rem;
    position: relative;
}

.navbar-nav li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar-nav li a i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.navbar-nav li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #76cdff;
}

.login-btn {
    background: #4CAF50;
    padding: 0.5rem 1rem !important;
}

.login-btn:hover {
    background: #45a049 !important;
    color: #fff !important;
}

.profile-dropdown {
    position: relative;
}

.profile-link {
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(41, 3, 102, 0.95);
    border-radius: 5px;
    padding: 0.5rem 0;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.profile-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    padding: 0.7rem 1rem;
    display: block;
    color: #fff;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: rgba(118, 205, 255, 0.2);
}

.mobile-menu-btn {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Мобильные стили */
@media (max-width: 992px) {
    .navbar-nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(41, 3, 102, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        display: none;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }

    .navbar-nav.show {
        display: flex;
    }

    .navbar-nav li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    .navbar-nav li a {
        justify-content: center;
        padding: 0.8rem 1rem;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .profile-dropdown .dropdown-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        display: none;
        opacity: 1;
        visibility: visible;
        width: 100%;
        padding: 0;
    }

    .profile-dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding: 0.8rem 1rem;
        justify-content: center;
    }

    body.nav-open {
        overflow: hidden;
    }
}