/* User Dropdown Menu Styles */
/* Force overflow visible on header containers to allow dropdown to show */
.app-header,
header,
.header-actions {
    overflow: visible !important;
}

/* Ensure dropdown container can show its menu */
.user-dropdown {
    position: relative !important;
    overflow: visible !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-dropdown {
    position: relative;
    margin-left: 8px;
}

.dropdown-trigger {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-trigger:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.15);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.dropdown-trigger .fa-chevron-down {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 9999;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 8px 0;
    pointer-events: none;
}

.user-dropdown.active .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    display: block !important;
}

.dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 4px;
}

.dropdown-user-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    display: block;
}

.dropdown-user-email {
    font-size: 0.8rem;
    color: var(--text-gray);
    display: block;
    margin-top: 2px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--primary);
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    color: var(--text-gray);
}

.dropdown-item:hover i {
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 4px 0;
}

.dropdown-item.text-danger {
    color: #ef4444;
}

.dropdown-item.text-danger:hover {
    background: #fef2f2;
}

.dropdown-item.text-danger i {
    color: #ef4444;
}