/* ============================================
   USER MENU - HEADER
   ============================================ */

.nav__user-menu {
    position: relative;
    display: inline-block;
}

.nav__user-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #0097b2;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.95rem;
}

.nav__user-button:hover {
    background: #EFF6FF;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.nav__user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #0097b2, #007a92);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav__user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav__user-initials {
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

.nav__user-name {
    color: #1F2937;
    font-weight: 600;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav__user-button i.fa-chevron-down {
    color: #6B7280;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.nav__user-button:hover i.fa-chevron-down {
    transform: rotate(180deg);
}

.nav__user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav__user-menu:hover .nav__user-dropdown,
.nav__user-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__user-info {
    padding: 1.25rem;
    border-bottom: 1px solid #E5E7EB;
}

.nav__user-info strong {
    display: block;
    color: #1F2937;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.nav__user-info small {
    color: #6B7280;
    font-size: 0.875rem;
}

.nav__user-links {
    padding: 0.5rem 0;
}

.nav__user-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: #1F2937;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.nav__user-links a:hover {
    background: #F9FAFB;
    color: #0097b2;
}

.nav__user-links a i {
    width: 20px;
    color: #6B7280;
}

.nav__user-links a:hover i {
    color: #0097b2;
}

.nav__user-links a.text-danger {
    color: #EF4444;
}

.nav__user-links a.text-danger:hover {
    background: #FEF2F2;
}

.nav__user-links hr {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid #E5E7EB;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .nav__user-name {
        display: none;
    }
    
    .nav__user-button {
        padding: 0.5rem;
    }
    
    .nav__user-dropdown {
        right: -1rem;
    }
}
