/* 
 * Avatar Styles - Simple and robust styles for the user avatar
 * These styles prioritize visibility and reliability in all environments
 */

/* Avatar element - the circular user icon */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #2A5D7A; /* Blue background */
    color: white;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-weight: normal;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
    position: relative;
    margin-left: auto; /* Ensures it stays at the right side */
    z-index: 100;
}

/* Dropdown menu - hidden by default */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 180px;
    min-height: 200px; /* Set a minimum height to make the pane taller */
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    display: none; /* Hidden by default */
    z-index: 200;
    overflow: hidden;
}

/* Dropdown triangle pointer */
.user-dropdown::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 15px;
    width: 10px;
    height: 10px;
    background-color: white;
    transform: rotate(45deg);
    z-index: -1;
}

/* Show dropdown when .show class is added */
.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    display: block;
}

/* Dropdown menu items */
.dropdown-item {
    display: flex;
    align-items: center;
    padding: 24px 15px; /* Double the vertical padding from 12px to 24px */
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item i {
    margin-right: 10px;
    font-size: 18px;
    color: #2A5D7A;
}

/* Responsive styles */
@media (max-width: 768px) {
    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .user-avatar {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* Print styles - hide avatar when printing */
@media print {
    .user-avatar {
        display: none !important;
    }
}
