/* User Dropdown Styles */
.user-menu {
    position: relative;
    margin-left: 1rem;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
}

.user-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-toggle i {
    font-size: 10px;
    transition: transform 0.2s;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 280px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 999;
    display: none;
}

.dropdown-overlay.show {
    display: block;
}

.dropdown-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.user-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-details .name {
    font-size: 16px;
    font-weight: 600;
    color: #0f1111;
}

.user-details .email {
    font-size: 13px;
    color: #565959;
}

.user-details .points {
    font-size: 14px;
    color: #ff9900;
    font-weight: 500;
    margin-top: 0.25rem;
}

.dropdown-menu-items {
    padding: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: #0f1111;
    font-size: 14px;
    transition: all 0.2s;
    position: relative;
}

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

.dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: #565959;
}

.dropdown-item:hover i {
    color: #ff9900;
}

.dropdown-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 0.5rem 0;
}

.dropdown-item.admin {
    color: #6f42c1;
}

.dropdown-item.admin:hover {
    background: #f8f5ff;
    color: #5a2d91;
}

.dropdown-item.admin i {
    color: #6f42c1;
}

.dropdown-item.logout {
    color: #dc3545;
}

.dropdown-item.logout i {
    color: #dc3545;
}

/* Points Display */
.points-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: white;
}

.points-icon {
    font-size: 16px;
}

.points-value {
    color: #ffd700;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .user-name {
        display: none;
    }
    
    .user-dropdown {
        right: -10px;
        min-width: 260px;
    }
    
    .points-display {
        display: none;
    }
}