#blue_bar {
    width: 1600px;
    min-width: 1600px;
    position: relative;
    margin: auto;
    height: 60px;
    z-index: 1000;
    background-color: #405d9b;
    color: #d9dfeb;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    will-change: transform;
}

#blue_bar > div {
    width: 100%;
    width: 1600px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-size: 20px;
    gap: 15px; /* Added gap for spacing */
}

/* Logo Link */
#blue_bar a.logo {
    font-size: 24px;
    color: #d0d8e4;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
}

.menu_button {
    padding: 10px 15px;
    display: inline-block;
    white-space: nowrap;
    text-decoration: none;
    font-size: 1rem;
    background-color: #506db8;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-align: center;
}

.menu_button:hover {
    background-color: #6c85d3;
    color: #f0f4ff;
}

/* Navigation Menu */
#menu_container {
    display: flex;
    justify-content: center;
    flex-grow: 1;
    gap: 40px;
    overflow-x: auto;
}

/* Logout Styling */
#blue_bar a.logout {
    font-size: 14px;
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid white;
    border-radius: 5px;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap; /* Prevent logout wrapping */
}

#blue_bar a.logout:hover {
    background-color: white;
    color: #405d9b;
}
    
.dropbtn {
    background-color: #506db8;
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    display: inline-block;
    white-space: nowrap;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-align: center;
    min-width: 135px;
}

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

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 135px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    font-size: 1rem;
}

/* target both links and buttons */
.dropdown-content button {
    display: block;           /* full‐width clickable area */
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    text-decoration: none;    /* remove underline from links */
    background: none;         /* remove default button bg */
    border: none;             /* remove default button border */
    color: black;
    cursor: pointer;
    font: inherit;            /* inherit font settings */
}

/* hover state */
.dropdown-content button:hover {
    background-color: #f1f1f1;
}

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

.dropdown:hover .dropbtn {
    background-color: #6c85d3;
}
