/* Modern Profile Dropdown Styles */
.profile-dropdown-trigger:hover {
    background: rgba(255,255,255,0.15) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.profile-dropdown-menu {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-dropdown-item {
    transition: all 0.2s ease;
    border-radius: 10px;
    margin: 2px 8px;
}

.profile-dropdown-item:hover {
    background: rgba(106, 124, 234, 0.1) !important;
    transform: translateX(5px);
}

.profile-dropdown-item:hover .profile-icon-bg {
    background: rgba(106, 124, 234, 0.2) !important;
    transform: scale(1.1);
}

.profile-dropdown-item:hover .profile-icon {
    color: #667eea !important;
}

.profile-dropdown-item.logout-item:hover {
    background: rgba(220, 38, 38, 0.1) !important;
}

.profile-dropdown-item.logout-item:hover .profile-icon-bg {
    background: rgba(220, 38, 38, 0.2) !important;
}

.profile-dropdown-item.logout-item:hover .profile-icon {
    color: #dc2626 !important;
}

.profile-header-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.profile-header-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.profile-badge {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-icon-bg {
    transition: all 0.2s ease;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-dropdown-menu {
        min-width: 260px !important;
        margin-top: 5px;
    }
    
    .profile-header-info {
        display: none;
    }
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
    .profile-dropdown-menu {
        background: rgba(30, 41, 59, 0.95);
        border: 1px solid rgba(255,255,255,0.1);
    }
    
    .profile-dropdown-item {
        color: #e2e8f0;
    }
    
    .profile-dropdown-item:hover {
        background: rgba(100, 116, 139, 0.2) !important;
    }
}

/* Notification styles */
.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Profile image styles */
.profile-image {
    position: relative;
    overflow: hidden;
}

.profile-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-image:hover::after {
    opacity: 1;
}

/* Smooth transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}