/* Header Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: #401f8e;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
}

.logo {
    font-size: 1.4em;
    font-weight: 700;
    color: white;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

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

nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: white;
}

nav a.button {
    background: white;
    color: #1e3c72;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

nav a.button::after {
    display: none;
}

nav a.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
    color: #1e3c72;
    background: rgba(255, 255, 255, 0.95);
}

/* Login Button - Semi-transparent with white bold stroke */
nav a.login-button {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 2px solid white !important;
    font-weight: 700 !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

nav a.login-button::after {
    display: none !important;
}

nav a.login-button:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.5) !important;
}

/* Language Dropdown Styles */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-button {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: none;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.language-button:hover {
    color: white;
}

.language-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 1001;
    margin-top: 5px;
    overflow: hidden;
}

.language-dropdown:hover .language-dropdown-content {
    display: block;
}

.language-dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease;
    font-weight: 500;
    font-size: 0.9em;
}

.language-dropdown-content a::after {
    display: none;
}

.language-dropdown-content a:hover {
    background-color: #f0f0f0;
    color: #1e3c72;
}

/* User Circle - Authenticated State */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-circle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* User Dropdown Menu */
.user-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 1001;
    margin-top: 8px;
    overflow: hidden;
}

.user-dropdown.active .user-dropdown-content {
    display: block;
}

.user-dropdown-content .dropdown-item {
    width: 100%;
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease;
    font-weight: 500;
    font-size: 0.9em;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.user-dropdown-content .dropdown-item:hover:not(:disabled) {
    background-color: #f0f0f0;
}

.user-dropdown-content .dropdown-item.logout:hover {
    background-color: #fee;
    color: #c33;
}
