/**
 * Profile Settings CSS
 * This file contains the CSS styles for the profile settings page
 */

/* Message Alert Styles */
.message-container {
    position: fixed;
    top: 10px;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.message {
    padding: 16px 24px;
    border-radius: 4px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    animation: messageFadeIn 0.3s ease-out;
    width: auto;
    max-width: 90%;
    font-size: 16px;
}

.message.error {
    background-color: #fef0f0;
    border: 1px solid #fde2e2;
    color: #f56c6c;
}

.message.success {
    background-color: #f0f9eb;
    border: 1px solid #e1f3d8;
    color: #67c23a;
}

.message.info {
    background-color: #ecf5ff;
    border: 1px solid #d9ecff;
    color: #409eff;
}

.message.warning {
    background-color: #fdf6ec;
    border: 1px solid #faecd8;
    color: #e6a23c;
}

.message-icon {
    margin-right: 10px;
    font-size: 16px;
}

.message-content {
    flex: 1;
    font-size: 14px;
}

.message-close {
    margin-left: 10px;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.message-close:hover {
    opacity: 1;
}

@keyframes messageFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes messageFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Profile Settings Section */
.profile-settings-section {
    background-color: #ffffff;
    padding: 100px 20px;
}

@media (min-width: 1024px) {
    .profile-settings-section {
        padding: 100px 60px;
    }
}

.profile-settings-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.profile-settings-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    color: #111827;
}

.profile-settings-form-container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.profile-settings-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Avatar Section */
.avatar-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.avatar-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.avatar-image-container {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #d1d5db;
    transition: border-color 0.2s ease-in-out;
}

.avatar-image-container:hover {
    border-color: #BE930B;
}

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

.avatar-edit-text {
    font-size: 12px;
    color: #BE930B;
}

.avatar-edit-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    display: none;
}

.avatar-upload-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.avatar-upload-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-file-input {
    display: none;
}

.avatar-file-label {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.avatar-file-label:hover {
    background-color: #f9fafb;
}

.avatar-file-name {
    font-size: 14px;
    color: #6b7280;
}

.avatar-select-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    max-height: 160px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.avatar-option {
    cursor: pointer;
}

.avatar-option-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: box-shadow 0.2s ease-in-out;
}

.avatar-option-image:hover {
    box-shadow: 0 0 0 2px #BE930B;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-label {
    font-weight: 500;
    color: #374151;
}

.edit-button {
    color: #BE930B;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease-in-out;
}

.edit-button:hover {
    color: #a67f0a;
}

.form-display {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #f9fafb;
}

.form-control {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-control:focus {
    outline: none;
    border-color: #BE930B;
    box-shadow: 0 0 0 2px #BE930B;
}

.hidden {
    display: none;
}

/* Password Reset Section */
.password-reset-link {
    color: #BE930B;
    transition: color 0.2s ease-in-out;
}

.password-reset-link:hover {
    color: #a67f0a;
}

.password-reset-description {
    font-size: 14px;
    color: #6b7280;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    cursor: pointer;
}

.btn-primary {
    background-color: #BE930B;
    color: #ffffff;
    border: 1px solid #BE930B;
}

.btn-primary:hover {
    background-color: #a67f0a;
    border-color: #a67f0a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-settings-section {
        padding: 60px 20px;
    }
    
    .profile-settings-title {
        font-size: 28px;
    }
    
    .avatar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
