/* Profile Modals CSS */

/* Common modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow: auto;
}

.modal-content {
    background-color: #1a1a2e;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #4a4a6a;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: #e6e6e6;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #4a4a6a;
    padding-bottom: 10px;
}

.modal-header h2 {
    margin: 0;
    color: #7f5af0;
    font-size: 1.5rem;
}

.modal-close-button {
    background: none;
    border: none;
    color: #e6e6e6;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

.modal-close-button:hover {
    color: #7f5af0;
}

/* Form styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #94a1b2;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #4a4a6a;
    border-radius: 4px;
    background-color: #2d2d44;
    color: #e6e6e6;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.primary-button,
.secondary-button {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.primary-button {
    background-color: #7f5af0;
    color: white;
    border: none;
}

.primary-button:hover {
    background-color: #6a4cc7;
}

.secondary-button {
    background-color: transparent;
    color: #94a1b2;
    border: 1px solid #4a4a6a;
}

.secondary-button:hover {
    background-color: #2d2d44;
}

/* Profile edit modal specific styles */
.profile-edit-form {
    padding: 10px 0;
}

/* Status change modal specific styles */
.status-options-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.status-option {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #4a4a6a;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.status-option:hover {
    background-color: #2d2d44;
}

.status-option.selected {
    background-color: #2d2d44;
    border-color: #7f5af0;
}

.status-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

.custom-status-container {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #4a4a6a;
}

.custom-status-input-container {
    display: flex;
    gap: 10px;
}

.custom-status-input-container input {
    flex: 1;
    padding: 8px;
    border: 1px solid #4a4a6a;
    border-radius: 4px;
    background-color: #2d2d44;
    color: #e6e6e6;
}

/* Avatar change modal specific styles */
.avatar-options-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.avatar-option {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
    aspect-ratio: 1;
}

.avatar-option:hover {
    transform: scale(1.05);
    border-color: #7f5af0;
}

.avatar-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 15% auto;
    }

    .avatar-options-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .status-options-container {
        grid-template-columns: 1fr;
    }

    .avatar-options-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-buttons {
        flex-direction: column;
    }

    .form-buttons button {
        width: 100%;
    }
}