.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0 40px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 64px;
    width: 100%;
    box-sizing: border-box;
}

.navbar-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.navbar-nav .nav-link {
    text-decoration: none;
    font-size: 14px;
    color: #444;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.navbar-nav .nav-link:hover {
    background-color: #f3f4f6;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}
.logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    text-decoration: none;
}
.logo img {
    height: 36px;
    vertical-align: middle;
    display: block;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-right: 8px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: 160px;
    z-index: 999;
}

.user-dropdown a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
}

.user-dropdown a:hover {
    background-color: #f0f0f0;
}

.user-menu.open .user-dropdown {
    display: block;
}

#languageSelect {
    padding: 4px 8px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #fff;
    min-width: 120px;
    box-sizing: border-box;
}

#user-nickname {
    font-size: 14px;
    white-space: nowrap;
}

.dropdown-parent {
    position: relative;
}

.mobile-dropdown-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 140px;
}

.mobile-dropdown-menu > div {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.mobile-dropdown-menu > div:last-child {
    border-bottom: none;
}

.mobile-dropdown-menu > div:hover {
    background-color: #f5f5f5;
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}