/* Avatar Dropdown Styling - Simplified */

/* User avatar container in navbar */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-avatar-link {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    text-decoration: none;
    cursor: pointer;
}

.user-avatar {
    display: flex;
    align-items: center;
}

/* Avatar image styling */
.avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #007bff;
}

/* User name styling - update the color to be more visible */
.user-name {
    margin-left: 10px;
    font-weight: 500;
    color: #ffeb3b; /* Changed from white to yellow for better visibility */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Add text shadow for better contrast */
}

.ml-2 {
    margin-left: 8px;
    color: #ffeb3b; /* Match the caret color with the username */
}

/* User dropdown menu - Hidden by default with !important to override any conflicting styles */
.user-dropdown-menu.avatar-menu {
    display: none !important;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 4px;
    overflow: hidden;
}

/* Show the dropdown menu when dropdown container has "show" class - use !important to ensure it overrides */
.user-dropdown.show .user-dropdown-menu.avatar-menu {
    display: block !important;
}

/* User info section at top of dropdown */
.dropdown-user-info {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.dropdown-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #007bff;
}

.dropdown-user-details {
    margin-left: 12px;
}

.dropdown-user-name {
    font-weight: 600;
    color: #212529;
    display: block;
}

.dropdown-user-role {
    font-size: 0.8rem;
    color: #6c757d;
    display: block;
}

/* Divider line */
.dropdown-divider {
    margin: 0;
    border-top: 1px solid #e9ecef;
    list-style: none;
}

/* Dropdown menu items */
.user-dropdown-menu.avatar-menu li {
    list-style: none;
}

.user-dropdown-menu.avatar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #212529;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.user-dropdown-menu.avatar-menu li a:hover {
    background-color: #f1f3f5;
    color: #007bff;
}

.user-dropdown-menu.avatar-menu li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .user-name {
        display: none;
    }
} 