/* Profile Settings Modal Styles */
.profile-settings-modal {
    z-index: 3000 !important;
}

.profile-settings-content {
    max-width: 420px;
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
    margin: 0.5rem auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.settings-container {
    display: flex;
    gap: 2rem;
    min-height: 500px;
}

/* Simple Settings Container */
.simple-settings-container {
    padding: 0.75rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Account Info */
.account-info {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #495057 !important;
    font-size: 14px;
}

.info-value {
    color: #212529 !important;
    font-size: 14px;
    font-weight: 500;
}

/* Form Help */
.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #6c757d;
}

/* Danger Warning */
.danger-warning {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #dc3545;
    font-weight: 500;
}

.settings-section {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.settings-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.settings-section:last-child {
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0;
}

.settings-section h4 {
    color: #212529 !important;
    margin-bottom: 1rem;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-section h4::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 2px;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #495057;
    font-weight: 500;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Language Options */
.language-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-option:hover {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.05);
}

.language-option input[type="radio"] {
    margin: 0;
}

.language-option input[type="radio"]:checked + .language-flag {
    transform: scale(1.2);
}

.language-flag {
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

.language-name {
    font-weight: 500;
    color: #495057;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem 0;
}

.checkbox-label input[type="checkbox"] {
    position: relative;
    width: 20px;
    height: 20px;
    margin: 0;
}

.checkmark {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #007bff;
    border-color: #007bff;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Danger Zone */
.account-info-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 12px;
}

.danger-zone {
    background: linear-gradient(135deg, #fff5f5, #ffe6e6);
    border: 1px solid #ffcccb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.danger-zone h4 {
    color: #333;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-outline {
    background: transparent;
    border: 2px solid #6c757d;
    color: #6c757d;
}

.btn-outline:hover {
    background: #6c757d;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-settings-content {
        width: 98%;
        max-width: 380px;
        max-height: 95vh;
        margin: 0.25rem auto;
    }
    
    .settings-section {
        padding: 0.6rem;
        margin-bottom: 1rem;
    }
    
    .settings-section h4 {
        font-size: 15px;
        margin-bottom: 0.6rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 13px;
    }
    
    .modal-footer {
        flex-direction: column;
        padding: 0.75rem;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* 작은 모바일 화면 */
@media (max-width: 480px) {
    .profile-settings-content {
        width: 99%;
        max-width: 360px;
        max-height: 98vh;
    }
    
    .settings-section {
        padding: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .settings-section h4 {
        font-size: 14px;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 12px;
    }
    
    .simple-settings-container {
        padding: 0.5rem;
    }
}
