/* Mobile Profile Menu Overlay */
.profile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.profile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.profile-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100vh;
    overflow-y: auto;
}

.profile-overlay.active .profile-menu-content {
    transform: translateY(0);
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px 20px 20px;
    border-bottom: 1px solid #4a5568;
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    z-index: 10;
}

.profile-header h3 {
    color: white;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.profile-menu-items {
    padding: 10px 0 30px 0;
}

.profile-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 60px;
    margin: 0 10px;
    border-radius: 5px;
}

.profile-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-left: 3px solid #f59e0b;
    color: white;
    text-decoration: none;
    transform: translateX(2px);
}

.profile-menu-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-menu-item i {
    font-size: 18px;
    color: #f59e0b;
    margin-bottom: 4px;
    display: block;
}

.profile-menu-item span {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    display: block;
}

.profile-menu-item.logout {
    background-color: #ef4444;
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    border: 1px solid #ef4444;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    min-height: auto;
    gap: 8px;
}

.profile-menu-item.logout:hover {
    background-color: #dc2626;
    color: white;
}

.profile-menu-item.logout i {
    color: white;
    margin-bottom: 0;
    font-size: 16px;
}

.profile-menu-item.logout span {
    color: white;
    font-size: 15px;
    font-weight: 600;
}



/* Prevent body scroll when overlay is active */
body.profile-menu-open {
    overflow: hidden;
}

/* Mobile specific adjustments */
@media (max-width: 767px) {
    .profile-menu-content {
        max-height: 90vh;
    }
    
    .profile-header {
        padding: 15px 15px 10px 15px;
    }
    
    
    

}
