/* ═══════════════════════════════════════════════════════════
   NAVBAR STYLES - Shared across all pages
   ═══════════════════════════════════════════════════════════ */

/* Navbar Container */
.navbar {
    background: var(--primary);
    color: white;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px var(--shadow);
}

.navbar h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Navigation Links */
.nav-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Old account switcher - no longer used */
.account-switcher {
    display: none;
}

.username {
    font-size: 14px;
    opacity: 0.9;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s, opacity 0.2s;
}

.username.user-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--background);
    min-width: 280px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 1000;
}

.dropdown-content.show {
    display: block;
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s;
    font-size: 14px;
}

.dropdown-content a:hover {
    background: var(--surface);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.dropdown-account-section {
    padding: 12px 20px;
}

.dropdown-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-account-switcher {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    background: var(--background);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.2s;
}

.dropdown-account-switcher:hover {
    border-color: var(--primary);
}

.dropdown-account-switcher:focus {
    outline: none;
    border-color: var(--primary);
}

/* Logout Button */
.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}
