/* ===== MODERN PROFILE DROPDOWN DESIGN ===== */
.as_profile_dropdown {
    position: relative !important;
    display: inline-block !important;
}

.as_profile_dropdown_box {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    width: 320px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) scale(0.95) !important;
    transition: all 0.3s ease !important;
    margin-top: 12px !important;
    z-index: 1000 !important;
    backdrop-filter: none !important;
}

.as_profile_dropdown.dropdown_open .as_profile_dropdown_box {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

.as_profile_dropdown_box::before {
    content: '' !important;
    position: absolute !important;
    top: -8px !important;
    right: 24px !important;
    width: 16px !important;
    height: 16px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-bottom: none !important;
    border-right: none !important;
    transform: rotate(45deg) !important;
    z-index: -1 !important;
}

.profile_header {
    padding: 20px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%) !important;
    border-radius: 12px 12px 0 0 !important;
}

.profile_avatar {
    flex-shrink: 0 !important;
    position: relative !important;
}

.profile_avatar img {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
}

.profile_avatar img:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

.profile_info {
    flex: 1 !important;
    min-width: 0 !important;
}

.profile_info h4 {
    margin: 0 0 6px 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    letter-spacing: -0.025em !important;
}

.profile_info p {
    margin: 0 !important;
    font-size: 14px !important;
    color: #64748b !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-weight: 500 !important;
}

.profile_menu {
    padding: 8px 0 !important;
    /* background: #ffffff !important; */
}

.profile_menu_item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 20px !important;
    color: #374151 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border: none !important;
    background: none !important;
    width: 100% !important;
    cursor: pointer !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    position: relative !important;
}

.profile_menu_item:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    color: #1e293b !important;
    text-decoration: none !important;
    transform: translateX(4px) !important;
}

.profile_menu_item:active {
    transform: translateX(2px) !important;
    background: #e2e8f0 !important;
}

.profile_menu_item i {
    width: 20px !important;
    color: #6b7280 !important;
    font-size: 16px !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
}

.profile_menu_item:hover i {
    color: #3b82f6 !important;
    transform: scale(1.1) !important;
}

.profile_menu_item span {
    font-size: 15px !important;
    font-weight: 500 !important;
    flex: 1 !important;
}

.profile_menu_item:last-child {
    border-top: 1px solid #f1f5f9 !important;
    margin-top: 8px !important;
    padding-top: 14px !important;
    color: #dc2626 !important;
}

.profile_menu_item:last-child:hover {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
    color: #b91c1c !important;
}

.profile_menu_item:last-child i {
    color: #dc2626 !important;
}

.profile_menu_item:last-child:hover i {
    color: #b91c1c !important;
}

/* Profile Avatar Button */
.profile_img_logo {
    cursor: pointer !important;
    padding: 6px !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
}

.profile_img_logo:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.profile-logo {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
}

.profile-logo:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {    
    .as_profile_dropdown_box {
        width: 280px !important;
        right: -10px !important;
        margin-top: 8px !important;
    }
    
    .as_profile_dropdown_box::before {
        right: 20px !important;
    }
    
    .profile_header {
        padding: 16px !important;
        gap: 12px !important;
    }
    
    .profile_avatar img {
        width: 48px !important;
        height: 48px !important;
    }
    
    .profile_info h4 {
        font-size: 16px !important;
    }
    
    .profile_info p {
        font-size: 13px !important;
    }
    
    .profile_menu_item {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
    
    .profile_menu_item i {
        font-size: 14px !important;
        width: 18px !important;
    }
    
    .profile-logo {
        width: 36px !important;
        height: 36px !important;
    }
}

/* Animation for dropdown opening */
@keyframes dropdownFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.as_profile_dropdown.dropdown_open .as_profile_dropdown_box {
    animation: dropdownFadeIn 0.3s ease !important;
}

/* Prevent text selection in dropdown */
.as_profile_dropdown_box {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Focus styles for accessibility */
.profile_menu_item:focus {
    outline: 2px solid #3b82f6 !important;
    outline-offset: -2px !important;
    background: #eff6ff !important;
}

/* Scrollbar styling for long menus */
.profile_menu {
    max-height: 400px !important;
    overflow-y: auto !important;
}

.profile_menu::-webkit-scrollbar {
    width: 4px !important;
}

.profile_menu::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
}

.profile_menu::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 2px !important;
}

.profile_menu::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
} 