/* Основной навбар */
.main-navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 70px;
}

/* Левая часть - логотип */
.navbar-left {
    flex-shrink: 0;
}

.navbar-logo img {
    height: 50px;
    width: auto;
    display: block;
}

/* Центральная часть */
.navbar-center {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: center;
    margin: 0 20px;
}

/* Переключатель языков */
.lang-switcher {
    display: flex;
    gap: 5px;
}

.lang-btn {
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
    background: white;
    color: #667eea;
    font-weight: bold;
}

/* Информация о пользователе */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.username {
    color: white;
    font-size: 14px;
}

.btn-profile,
.btn-logout,
.btn-login {
    padding: 6px 15px;
    border: 1px solid white;
    background: transparent;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-profile:hover,
.btn-logout:hover,
.btn-login:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Правая часть - навигация (ГОРИЗОНТАЛЬНО!) */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: bold;
}

.btn-manual {
    padding: 6px 15px;
    border: 1px solid white;
    background: transparent;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    margin-left: 5px;
}

.btn-manual:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-manual.active {
    background: rgba(255, 255, 255, 0.3);
}

/* Гамбургер */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s;
}

/* Мобильное меню */
.mobile-menu {
    display: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu.show {
    display: block;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 10px 20px;
}

.mobile-nav-link {
    color: white;
    text-decoration: none;
    padding: 12px 15px;
    margin: 5px 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.25);
}

.mobile-nav-link.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: bold;
}

.mobile-nav-link.logout {
    background: rgba(220, 53, 69, 0.3);
}

.mobile-nav-link.logout:hover {
    background: rgba(220, 53, 69, 0.5);
}

/* Адаптивность */
@media (max-width: 992px) {
    .desktop-nav {
        display: none !important;
    }
    
    .hamburger {
        display: flex;
    }
    
    .navbar-center {
        margin: 0 10px;
    }
    
    .username {
        display: none;
    }
    
    body {
        padding-top: 80px;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 10px 15px;
    }
    
    .navbar-logo img {
        height: 40px;
    }
    
    .lang-btn {
        padding: 4px 10px;
        font-size: 12px;
    }
}