.menu {
    margin: 0 6px 2px 2px;
    position: relative;
}

.menu a {
    color: black;
    background-color: white;
    padding: 2px 10px;
    margin-right: 2px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.menu a:hover {
    background-color: lightgray;
}

.menu a.active {
    background-color: lightgray;
}

.menu a.active:hover {
    color: white;
}

.menu .right {
    float: right;
    margin-right: 4px;
}
#menu_title {
    margin-right: 4px;
    background: linear-gradient(to top, #86CB92, #1E91EF);
    background-clip: text;
    color: transparent;
    font-size: small;
}

#statusEmail {
    font-style: italic;
    font-size: smaller;
    margin-top: 2px;
}

/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Hide dropdown content by default */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Dropdown links */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Show the dropdown content on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Highlight active link */
.dropdown-content a.active {
    background-color: lightgray;
}

/* Keep the active item displayed even when dropdown is not open */
.dropdown-toggle.active {
    background-color: lightgray;
}

/* Styling the scrollbar for better appearance (optional) */
.dropdown-content::-webkit-scrollbar {
    width: 8px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: #f1f1f1;  /* Scrollbar background */
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: #888;     /* Scrollbar thumb */
    border-radius: 10px;  /* Rounded corners */
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #555;     /* Darker on hover */
}