/* Profile Modal Styles */

.profile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-modal.active {
    display: block;
    opacity: 1;
}

.profile-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.profile-modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-radius: 24px 24px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    padding: 1.5rem;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.profile-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    color: #666;
}

.profile-modal-close:hover {
    background-color: #e0e0e0;
    color: #333;
}

/* Profile Header */
.profile-header {
    margin-bottom: 1.5rem;
    padding-top: 0.5rem;
}

.profile-info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #f8f8f8;
    border-radius: 16px;
    position: relative;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    flex: 1;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
}

.profile-edit-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
    flex-shrink: 0;
}

.profile-edit-btn:hover {
    background-color: #f5f5f5;
    border-color: #2D37EE;
    color: #2D37EE;
}

/* Profile Menu */
.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background-color: #f8f8f8;
    border-radius: 12px;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.profile-menu-item:hover:not(.disabled) {
    background-color: #f0f0f0;
    transform: translateX(4px);
}

.profile-menu-item.disabled {
    color: #999;
    cursor: default;
}

.profile-menu-item.disabled:hover {
    transform: none;
    background-color: #f8f8f8;
}

.menu-icon {
    flex-shrink: 0;
    color: #666;
}

.profile-menu-item:hover:not(.disabled) .menu-icon {
    color: #2D37EE;
}

.logout-btn {
    justify-content: center;
    background-color: #f8f8f8;
    color: #1a1a1a;
}

.logout-btn:hover {
    background-color: #ffebee;
    color: #d32f2f;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .profile-modal-content {
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        transform: translateY(0.5rem);
        border-radius: 16px;
        max-width: 360px;
        width: auto;
        min-width: 320px;
        max-height: calc(100vh - 120px);
        animation: fadeInDown 0.3s ease;
        position: fixed;
        margin-top: 0;
    }

    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(0);
        }
        to {
            opacity: 1;
            transform: translateY(0.5rem);
        }
    }

    .profile-modal-close {
        top: 1.25rem;
        right: 1.25rem;
    }
}


