/* Styles for the main user menu container */
.user-menu-container {
    position: relative;
    display: inline-block;
}

/* Styles for the main toggle button (avatar + name) */
.user-menu-toggle {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #f7f7f7;
    color: #06668C;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Styles for the user avatar */
.user-avatar {
    margin-right: 10px;
    border-radius: 50%;
    overflow: hidden;
}

/* Styles for the username */
.user-name {
    text-transform: uppercase;
}

/* Styles for the dropdown sub-menu */
.user-menu-dropdown {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none; /* Hidden by default */
}

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

/* Add a separator line to each item except the last one */
.user-menu-dropdown li:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
}

/* Styles for the dropdown menu links */
.user-menu-dropdown li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #06668C;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent; /* Adds a transparent border to all items */
}

/* Hover style for the dropdown links */
.user-menu-dropdown li a:hover {
    background-color: #fff;
    color: #a4bd01;
    border: 1px solid #a4bd01; /* Changes the border color on hover */
    font-weight: bold; /* Makes the text bold on hover */
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Active style for the currently selected menu item (if applicable) */
.user-menu-dropdown li a.active {
    background-color: #a4bd01;
    color: #fff;
    font-weight: bold;
    border-color: #a4bd01;
}

/* Responsive styles for mobile devices */
@media (max-width: 768px) {
    .user-menu-toggle .user-name {
        display: none;
    }
    
    .user-menu-toggle .user-avatar {
        margin-right: 0;
    }
}