/* User Profile Styles */
.user-profile {
    position: relative;
    display: inline-block;
}

.user-profile-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.user-profile-trigger:hover {
    /* background-color: #f9fafb;
    border-color: #d1d5db; */
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #eee;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-width: 0;
}

.user-initials {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin: 0;
}

.user-email {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* max-width: 150px; */
}

.user-profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    min-width: 256px;
    z-index: 1000;
    display: none;
}

.user-profile-dropdown.show {
    display: block;
}

.dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.dropdown-header .user-name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin: 0 0 4px 0;
}

.dropdown-header .user-email-full {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
}

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

.dropdown-item.sign-out {
    color: #dc2626;
}

.dropdown-item.sign-out:hover {
    background-color: #fef2f2;
    color: #b91c1c;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .user-email {
        /* max-width: 100px; */
    }
    
    .user-profile-dropdown {
        min-width: 200px;
    }
}