/* =================================
    RESET
    ================================= */
*, *::before, *::after {
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
}

/* =================================
    CSS VARIABLES (Light & Dark Mode)
    ================================= */
:root {
    /* Light Mode */
    --header-background: #f8f8f8;
    --header-text-color: #000;
    --search-container-background: white;
    --search-container-border: black;
    --search-dropdown-background: white;
    --search-dropdown-border: #ddd;
    --search-item-hover-background: #f0f0f0;
    --search-item-hover-text: #000;
    --nav-button-background: #f8f8f8;
    --nav-button-text: black;
    --nav-button-border: #3d435c;
    --nav-button-hover-background: #62707D;
    --nav-button-hover-text: white;
    --search-button-background: #f8f8f8;
    --search-button-icon-color: #000;
    --search-button-hover-background: #62707D;
    --search-button-hover-icon-color: white;
    --select-border-right: 1px solid #ccc;
    --theme-toggle-icon-color: #000;
    --theme-toggle-icon-hover: #62707D;
    
    /* Menu-specific variables */
    --menu-link-color: #3d435c;
    --menu-link-hover-background: #62707D;
    --menu-link-hover-color: white;
    --menu-dropdown-background: white;
    --menu-dropdown-border: #ddd;
    --menu-dropdown-shadow: rgba(0,0,0,0.1);
    --menu-dropdown-item-color: #333;
    --menu-dropdown-item-hover-background: #f0f0f0;
    --menu-dropdown-item-hover-color: #62707D;
    --menu-dropdown-separator: #e0e0e0;
    --menu-dropdown-header-color: #3d435c;
}

/* Dark Mode - Activated by System Preference or Manual Toggle */
@media (prefers-color-scheme: dark) {
    :root {
        --header-background: #1a1a1a;
        --header-text-color: #e0e0e0;
        --search-container-background: #2a2a2a;
        --search-container-border: #555;
        --search-dropdown-background: #2a2a2a;
        --search-dropdown-border: #444;
        --search-item-hover-background: #3a3a3a;
        --search-item-hover-text: #e0e0e0;
        --nav-button-background: #1a1a1a;
        --nav-button-text: #e0e0e0;
        --nav-button-border: #62707d;
        --nav-button-hover-background: #444;
        --nav-button-hover-text: #e0e0e0;
        --search-button-background: #1a1a1a;
        --search-button-icon-color: #e0e0e0;
        --search-button-hover-background: #444;
        --search-button-hover-icon-color: #e0e0e0;
        --select-border-right: 1px solid #555;
        --theme-toggle-icon-color: #e0e0e0;
        --theme-toggle-icon-hover: #6a9ce0;
        
        /* Menu-specific variables - Dark Mode */
        --menu-link-color: #e0e0e0;
        --menu-link-hover-background: #444;
        --menu-link-hover-color: #6a9ce0;
        --menu-dropdown-background: #2a2a2a;
        --menu-dropdown-border: #444;
        --menu-dropdown-shadow: rgba(0,0,0,0.4);
        --menu-dropdown-item-color: #cccccc;
        --menu-dropdown-item-hover-background: #3a3a3a;
        --menu-dropdown-item-hover-color: #6a9ce0;
        --menu-dropdown-separator: #444;
        --menu-dropdown-header-color: #6a9ce0;
    }
}

body[data-theme='dark'] {
    --header-background: #1a1a1a;
    --header-text-color: #e0e0e0;
    --search-container-background: #2a2a2a;
    --search-container-border: #555;
    --search-dropdown-background: #2a2a2a;
    --search-dropdown-border: #444;
    --search-item-hover-background: #3a3a3a;
    --search-item-hover-text: #e0e0e0;
    --nav-button-background: #1a1a1a;
    --nav-button-text: #e0e0e0;
    --nav-button-border: #62707d;
    --nav-button-hover-background: #444;
    --nav-button-hover-text: #e0e0e0;
    --search-button-background: #1a1a1a;
    --search-button-icon-color: #e0e0e0;
    --search-button-hover-background: #444;
    --search-button-hover-icon-color: #e0e0e0;
    --select-border-right: 1px solid #555;
    --theme-toggle-icon-color: #e0e0e0;
    --theme-toggle-icon-hover: #6a9ce0;
    
    /* Menu-specific variables - Dark Mode */
    --menu-link-color: #e0e0e0;
    --menu-link-hover-background: #444;
    --menu-link-hover-color: #6a9ce0;
    --menu-dropdown-background: #2a2a2a;
    --menu-dropdown-border: #444;
    --menu-dropdown-shadow: rgba(0,0,0,0.4);
    --menu-dropdown-item-color: #cccccc;
    --menu-dropdown-item-hover-background: #3a3a3a;
    --menu-dropdown-item-hover-color: #6a9ce0;
    --menu-dropdown-separator: #444;
    --menu-dropdown-header-color: #6a9ce0;
}

/* =================================
    General Header Styling
    ================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px; /* Ensures the header has a fixed height on desktop */
    background-color: var(--header-background);
    color: var(--header-text-color);
    z-index: 10000;
    transition: background-color 0.3s ease, color 0.3s ease;

    /* Desktop Styles (Default) */
    display: flex;
    justify-content: center; /* Centers items on desktop */
    align-items: center;
    padding: 0 30px;
    border-bottom: 1px solid var(--header-border-color);
}
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--header-background);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    border-bottom: 1px solid var(--header-border-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    flex-wrap: wrap; /* Add this line */
}
.header-center {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1000px;
    gap: 10px; /* Adjusted value */
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
}
.main-menu {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Add this line */
    justify-content: flex-end;
}
/* Search Container */
.search-container {
    display: flex;
    align-items: center;
    background-color: var(--search-container-background);
    padding: 5px;
    border-radius: 5px;
    flex: 1;
    max-width: 500px;
    min-width: 200px;
    position: relative;
    border: 1px solid var(--search-container-border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.search-container input[type="text"] {
    flex-grow: 1;
    padding: 8px;
    font-size: 14px;
    border: none;
    outline: none;
    background-color: transparent;
    color: var(--header-text-color);
}

.search-container select {
    background-color: var(--search-container-background);
    color: var(--header-text-color);
    border: none;
    padding: 8px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    margin-right: 5px;
    border-right: var(--select-border-right);
    border-radius: 0;
}

.search-container button {
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-left: 5px;
    border-radius: 5px;
    background-color: var(--search-button-background);
    color: var(--search-button-icon-color);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.search-container button svg {
    fill: var(--search-button-icon-color);
    width: 1em;
    height: 1em;
    vertical-align: middle;
    transition: fill 0.2s ease;
}

.search-container button:hover {
    background-color: var(--search-button-hover-background);
    color: var(--search-button-hover-icon-color);
}

.search-container button:hover svg {
    fill: var(--search-button-hover-icon-color);
}

/* Search Dropdown Results */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--search-dropdown-background);
    border: 1px solid var(--search-dropdown-border);
    border-top: none;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.home-logo {
    height: 40px;
    width: auto;
}

.search-item {
    padding: 10px;
    cursor: pointer;
    color: var(--header-text-color);
    transition: background-color 0.3s ease;
}

.search-item:hover {
    background-color: var(--search-item-hover-background);
    color: var(--search-item-hover-text);
}

#search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--search-dropdown-background);
    border: 1px solid var(--search-dropdown-border);
    max-height: 200px;
    overflow-y: auto;
    z-index: 999;
    display: none;
}

#search-results .search-item:hover {
    background-color: var(--search-item-hover-background);
    color: var(--search-item-hover-text);
}

/* =================================
    TOP DROPDOWN MENU STYLES
    ================================= */

/* Hamburger Button */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background-color: var(--header-text-color);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
    transform-origin: 1px;
    margin: 0 auto;
}

/* Menu Overlay - covers entire screen */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.overlay-visible {
    opacity: 1;
    visibility: visible;
}

/* Top Dropdown Menu */
.dropdown-menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100vw;
    background-color: var(--header-background);
    border-bottom: 2px solid var(--nav-button-border);
    z-index: 9999;
    transition: top 0.4s cubic-bezier(0.645, 0.045, 0.355, 1.000);
    box-shadow: 0 4px 20px var(--menu-dropdown-shadow);
    padding-top: 80px; /* Account for fixed header height */
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.dropdown-menu.menu-open {
    top: 0;
}

/* Menu Content Container */
.menu-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    /* Reduced min-width from 250px to 180px and gap from 40px to 20px */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

/* Menu Sections */
.menu-section {
    margin-bottom: 0;
}

.menu-section-title {
    padding: 0 0 16px 0;
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--menu-dropdown-header-color);
    border-bottom: 2px solid var(--nav-button-hover-background);
    position: relative;
}

.menu-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--nav-button-hover-background);
}

.menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Menu Links */
.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px; /* Vertical spacing is now 10px */
    color: var(--menu-dropdown-item-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    background-color: transparent;
}

.menu-link:hover {
    background-color: var(--menu-dropdown-item-hover-background);
    color: var(--menu-dropdown-item-hover-color);
    border-left-color: var(--nav-button-hover-background);
    transform: translateX(4px);
}

.menu-link svg {
    fill: currentColor;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.menu-link:hover svg {
    opacity: 1;
}

/* Menu separator and subheading */
.menu-separator {
    height: 1px;
    background-color: var(--menu-dropdown-separator);
    margin: 15px 0;
    list-style: none;
}

.menu-subheading {
    padding: 12px 16px 8px 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--menu-dropdown-header-color);
    list-style: none;
    opacity: 0.8;
}

/* Close Button */
.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--header-text-color);
    transition: all 0.2s ease;
    border-radius: 50%;
    z-index: 10002;
}

.menu-close:hover {
    background-color: var(--nav-button-hover-background);
    color: var(--nav-button-hover-text);
}

.menu-close svg {
    fill: currentColor;
}

/* Prevent body scroll when menu is open */
body.menu-active {
    overflow: hidden;
}

/* --- Old Navigation Buttons (Hidden) --- */
.nav-buttons {
    display: flex;
    gap: 10px; /* or whatever spacing you desire */
    align-items: center;
}

.nav-buttons button {
    padding: 8px 15px;
    background-color: var(--nav-button-background);
    color: var(--nav-button-text);
    border: 1px solid var(--nav-button-border);
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    font-weight: bold;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    position: relative;
}

.nav-buttons button:hover {
    background-color: var(--nav-button-hover-background);
    border-color: var(--nav-button-hover-background);
    color: var(--nav-button-hover-text);
}

/* --- Theme Toggle Button --- */
.theme-toggle-container {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

#theme-toggle {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

#theme-toggle svg {
    width: 24px;
    height: 24px;
    fill: var(--theme-toggle-icon-color);
    transition: fill 0.3s ease;
}

#theme-toggle:hover svg {
    fill: var(--theme-toggle-icon-hover);
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.social-icon-link svg {
    width: 22px;
    height: 22px;
    fill: var(--theme-toggle-icon-color);
    transition: fill 0.3s ease;
}

.social-icon-link:hover svg {
    fill: var(--theme-toggle-icon-hover);
}

/* =================================
    MOBILE RESPONSIVE
    ================================= */

@media (max-width: 1024px) {
    .header-center {
        flex-wrap: nowrap;
        gap: 15px;
    }
    
    .search-container {
        flex: 1;
        max-width: none;
        min-width: 150px;
    }
    
    .menu-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
   header {
        /* Mobile Styles (Override Desktop) */
        flex-direction: column; /* Stacks items vertically on mobile */
        justify-content: space-between; /* Spreads out items on mobile */
        height: auto; /* Allows the header to grow to fit content on mobile */
        padding: 15px 10px;
        gap: 15px; /* Adds space between stacked items */
        align-items: center;
    }
    
    .header-center {
        gap: 10px;
    }
    
    .search-container {
        min-width: 120px;
    }
    
    .search-container input[type="text"] {
        padding: 6px;
        font-size: 13px;
    }
    
    .search-container select {
        padding: 6px;
        font-size: 13px;
    }
    
    .dropdown-menu {
        padding-top: 70px;
        max-height: calc(100vh - 70px);
    }
    
    .menu-content {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 25px 15px;
    }
    
    .menu-section-title {
        font-size: 14px;
        padding: 0 0 12px 0;
        margin: 0 0 15px 0;
    }
    
    .menu-link {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .menu-close {
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    header {
        height: 65px;
        padding: 0 10px;
    }
    
    .header-center {
        gap: 8px;
    }
    
    .hamburger-menu {
        width: 28px;
        height: 28px;
    }
    
    .hamburger-line {
        width: 20px;
        height: 2px;
    }
    
    .home-logo {
        height: 32px;
    }
    
    .search-container {
        min-width: 100px;
    }
    
    .search-container input[type="text"] {
        padding: 5px;
        font-size: 12px;
    }
    
    .search-container select {
        padding: 5px;
        font-size: 12px;
    }
    
    .dropdown-menu {
        padding-top: 65px;
        max-height: calc(100vh - 65px);
    }
    
    .menu-content {
        padding: 20px 12px;
        gap: 20px;
    }
    
    .menu-section-title {
        font-size: 13px;
        padding: 0 0 10px 0;
        margin: 0 0 12px 0;
    }
    
    .menu-link {
        padding: 12px 14px;
        font-size: 13px;
        gap: 10px;
    }
    
    .menu-link svg {
        width: 16px;
        height: 16px;
    }
    
    .menu-close {
        top: 12px;
        right: 12px;
        padding: 6px;
    }
    
    .menu-close svg {
        width: 20px;
        height: 20px;
    }
    
    #theme-toggle svg {
        width: 20px;
        height: 20px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .menu-content {
        padding: 15px 10px;
    }
    
    .search-container {
        min-width: 80px;
    }
}
@media (max-width: 768px) {
    .main-header {
        flex-direction: column; /* Stacks the header items vertically */
        align-items: center;
        gap: 15px; /* Adds space between stacked items */
        padding: 15px 10px;
    }
}
/* Modal Overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

/* Modal Content Box */
.modal-content {
    background-color: var(--header-background);
    color: var(--header-text-color);
    padding: 2rem;
    border: 1px solid var(--nav-button-border);
    border-radius: 8px;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px var(--menu-dropdown-shadow);
    animation: slideIn 0.4s ease-out;
}

/* Close Button - matches your existing button style */
.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-color: var(--nav-button-background);
    color: var(--nav-button-text);
    border: 1px solid var(--nav-button-border);
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.close-button:hover {
    background-color: var(--nav-button-hover-background);
    color: var(--nav-button-hover-text);
    border-color: var(--nav-button-hover-background);
}

/* Form Styling within Modal */
.modal .register-container {
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    border: none;
}

.modal .register-container h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--header-text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal .form-group {
    margin-bottom: 1.25rem;
}

.modal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--header-text-color);
    font-size: 0.9rem;
}

.modal .form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--nav-button-border);
    border-radius: 4px;
    font-size: 14px;
    background-color: var(--search-container-background);
    color: var(--header-text-color);
    transition: border-color 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}

.modal .form-group input:focus {
    outline: none;
    border-color: var(--nav-button-hover-background);
    background-color: var(--search-container-background);
}

/* Login Button - matches your nav button style */
.modal button[type="submit"] {
    width: 100%;
    padding: 10px 15px;
    background-color: var(--nav-button-background);
    color: var(--nav-button-text);
    border: 1px solid var(--nav-button-border);
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.modal button[type="submit"]:hover {
    background-color: var(--nav-button-hover-background);
    color: var(--nav-button-hover-text);
    border-color: var(--nav-button-hover-background);
}

/* Error Messages */
.modal .error-messages {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 4px;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.modal .error-messages ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.modal .error-messages li {
    color: #cc0000;
    font-size: 0.9rem;
}

/* Links - match your existing link style */
.modal .forgot-password-link,
.modal .login-link {
    text-align: center;
    margin-top: 1rem;
}

.modal .forgot-password-link a,
.modal .login-link a {
    color: var(--menu-dropdown-item-hover-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.modal .forgot-password-link a:hover,
.modal .login-link a:hover {
    color: var(--nav-button-hover-background);
    text-decoration: underline;
}

/* Animations - subtle like your existing ones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive - matches your existing breakpoints */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
        border-radius: 6px;
    }
    
    .modal .register-container h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1.25rem;
        margin: 0.5rem;
    }
    
    .modal .register-container h2 {
        font-size: 1.125rem;
    }
    
    .modal .form-group input {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .modal button[type="submit"] {
        padding: 8px 12px;
        font-size: 13px;
    }
}/* =================================
   USER DROPDOWN MENU STYLES 
   ================================= */
.user-dropdown-container {
    position: relative;
    display: inline-block;
    height: 100%; /* Ensure it aligns with navbar height */
}

/* Toggle Button/Link Appearance (Matching existing nav button style) */
.user-dropdown-toggle {
    background-color: var(--nav-button-background);
    color: var(--nav-button-text);
    border: 1px solid var(--nav-button-border);
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
    height: 100%;
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    
    /* ADD OR UPDATE THIS LINE: */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.user-dropdown-toggle:hover,
.user-dropdown-container:focus-within .user-dropdown-toggle {
    background-color: var(--nav-button-hover-background);
    color: var(--nav-button-hover-text);
}

/* The actual menu */
.user-dropdown-menu {
    display: none; /* Initially hidden */
    position: absolute;
    right: 0; /* Aligns the menu to the right edge of the button */
    top: 100%;
    
    /* Use existing variables for a cohesive look */
    background-color: var(--search-dropdown-background); 
    border: 1px solid var(--search-dropdown-border);
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    padding: 5px 0;
    border-radius: 4px;
    margin-top: 5px; 
	/* ADD OR UPDATE THIS LINE: */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Links inside the menu */
.user-dropdown-menu a {
    color: var(--header-text-color);
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    font-weight: normal;
    white-space: nowrap;
}

.user-dropdown-menu a:hover {
    background-color: var(--search-item-hover-background);
    color: var(--search-item-hover-text);
}

/* Show the dropdown menu on hover */
.user-dropdown-container:hover .user-dropdown-menu,
.user-dropdown-container:focus-within .user-dropdown-menu {
    display: block;
}

/* Style for the hr separator */
.dropdown-separator {
    margin: 5px 0;
    border: 0;
    border-top: 1px solid var(--search-dropdown-border);
}