/* Profile Dropdown Styles - Desktop & Mobile */

/* Desktop Profile Dropdown */
.profile-dropdown-menu {
    min-width: 280px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 0;
    margin-top: 10px;
    animation: slideDown 0.3s ease;
    z-index: 99999 !important;
    position: absolute !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #667eea;
}

.profile-info {
    display: flex;
    flex-direction: column;
    color: white;
}

.profile-info strong {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 3px;
}

.profile-info small {
    font-size: 12px;
    opacity: 0.9;
}

.profile-dropdown-menu .dropdown-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    border-radius: 8px;
    margin: 4px 8px;
}

.profile-dropdown-menu .dropdown-item i {
    width: 20px;
    font-size: 16px;
    color: #667eea;
}

.profile-dropdown-menu .dropdown-item span {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.profile-dropdown-menu .dropdown-item:hover {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
    transform: translateX(-3px);
}

.profile-dropdown-menu .dropdown-item.text-danger {
    color: #dc3545 !important;
}

.profile-dropdown-menu .dropdown-item.text-danger i {
    color: #dc3545;
}

.profile-dropdown-menu .dropdown-item.text-danger span {
    color: #dc3545;
}

.profile-dropdown-menu .dropdown-item.text-danger:hover {
    background: linear-gradient(135deg, #fff0f0 0%, #ffe8e8 100%);
}

.profile-dropdown-menu .dropdown-divider {
    margin: 8px 0;
    opacity: 0.1;
}

/* Mobile Profile Dropdown */
.mobile-profile-dropdown {
    min-width: 260px;
    max-width: 90vw;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 0;
    margin-top: 10px;
    animation: slideDown 0.3s ease;
    z-index: 99999 !important;
    position: absolute !important;
}

.mobile-profile-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    border-radius: 12px 12px 0 0;
}

.mobile-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #14b8a6;
}

.mobile-user-info {
    display: flex;
    flex-direction: column;
    color: white;
}

.mobile-user-info strong {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.mobile-user-info small {
    font-size: 11px;
    opacity: 0.9;
}

.mobile-profile-dropdown .dropdown-item {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    border-radius: 8px;
    margin: 3px 6px;
}

.mobile-profile-dropdown .dropdown-item i {
    width: 18px;
    font-size: 14px;
    color: #14b8a6;
}

.mobile-profile-dropdown .dropdown-item span {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.mobile-profile-dropdown .dropdown-item:hover {
    background: linear-gradient(135deg, #f0fdfa 0%, #e6f7f5 100%);
    transform: translateX(-2px);
}

.mobile-profile-dropdown .dropdown-item.text-danger {
    color: #dc3545 !important;
}

.mobile-profile-dropdown .dropdown-item.text-danger i {
    color: #dc3545;
}

.mobile-profile-dropdown .dropdown-item.text-danger span {
    color: #dc3545;
}

.mobile-profile-dropdown .dropdown-item.text-danger:hover {
    background: linear-gradient(135deg, #fff0f0 0%, #ffe8e8 100%);
}

.mobile-profile-dropdown .dropdown-divider {
    margin: 6px 0;
    opacity: 0.1;
}

/* Remove default dropdown arrow */
.dropdown-toggle::after {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .mobile-profile-dropdown {
        min-width: 240px;
    }
    
    .mobile-profile-header {
        padding: 10px;
    }
    
    .mobile-avatar {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .mobile-user-info strong {
        font-size: 13px;
    }
    
    .mobile-user-info small {
        font-size: 10px;
    }
    
    .mobile-profile-dropdown .dropdown-item {
        padding: 8px 12px;
    }
    
    .mobile-profile-dropdown .dropdown-item span {
        font-size: 12px;
    }
}

/* Smooth transitions */
.dropdown-menu {
    transition: all 0.3s ease;
}

.dropdown-item {
    transition: all 0.3s ease;
}

/* Fix for RTL */
[dir="rtl"] .profile-dropdown-menu .dropdown-item:hover,
[dir="rtl"] .mobile-profile-dropdown .dropdown-item:hover {
    transform: translateX(3px);
}
