/* Pengaturan Styles */
.pengaturan-container {
    padding: 0;
}

.pengaturan-header {
    margin-bottom: 30px;
}

.pengaturan-title-section h1 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.pengaturan-title-section p {
    color: #6c757d;
    margin-bottom: 0;
}

.pengaturan-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .pengaturan-content {
        grid-template-columns: 1fr;
    }
}

/* Profile Card */
.profile-card, .password-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: all 0.3s ease;
}

.profile-card:hover, .password-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px;
    border-bottom: none;
}

.card-header h3 {
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 25px;
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-bottom: 25px;
}

.profile-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.avatar-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--light-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    font-weight: bold;
    border: 4px solid var(--light-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.avatar-upload {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 36px;
    height: 36px;
    background: var(--accent-color);
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-upload:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.profile-info {
    text-align: center;
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.profile-email {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 0;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 14px;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 210, 223, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    font-size: 12px;
    margin-top: 5px;
    color: #dc3545;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.password-input-group {
    position: relative;
}

.password-input-group .form-control {
    padding-right: 45px;
}

/* Button Styles */
.btn-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 116, 123, 0.3);
    width: 100%;
    justify-content: center;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 116, 123, 0.4);
}

.btn-submit:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading State */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* File Input */
.file-input {
    display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .card-body {
        padding: 20px;
    }
    
    .profile-section {
        margin-bottom: 20px;
    }
    
    .avatar-image,
    .avatar-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .profile-name {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .pengaturan-header {
        margin-bottom: 20px;
    }
    
    .pengaturan-title-section h1 {
        font-size: 24px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
}