/* =========================================================
   SETTINGS PAGE — Jovan AI Premium (Zenith v3.0)
   ========================================================= */

.settings-page {
    padding: var(--space-xl) var(--space-lg) 5rem;
    max-width: 900px;
    margin: 0 auto;
    animation: slideUpIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page-header {
    margin-bottom: 3.5rem;
    text-align: left;
}

.page-header h2 {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.04em;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.settings-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* ── Premium Glass Sections ── */
.settings-section {
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(32px);
    backdrop-filter: blur(32px);
    padding: 2.5rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-premium);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.settings-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
    opacity: 0.4;
}

.settings-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 1.35rem;
    color: var(--text-header);
    margin-bottom: 2rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 15px;
    letter-spacing: -0.01em;
}

.section-title i {
    color: var(--primary);
    font-size: 1.1rem;
    background: var(--primary-light);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

/* ── Form Controls ── */
.settings-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.input-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-field label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-left: 4px;
}

.input-field input,
.input-field select {
    padding: 16px 20px;
    border-radius: 18px;
    border: 1.5px solid rgba(0, 0, 0, 0.05);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-main);
    font-weight: 600;
    transition: all 0.3s ease;
}

.input-field input:focus,
.input-field select:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 5px var(--primary-light);
    outline: none;
    transform: translateY(-1px);
}

/* ── Modern Switches ── */
.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.02);
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.toggle-item:hover {
    background: rgba(255, 255, 255, 0.6);
}

.toggle-label {
    font-weight: 700;
    color: var(--text-main);
}

.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #e2e8f0;
    transition: .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

input:checked + .slider { background: linear-gradient(135deg, #6366f1, #a855f7); }
input:checked + .slider:before { transform: translateX(24px); }

/* Action Buttons: .btn-save is inherited from buttons.css */

.btn-logout {
    margin-top: 1rem;
    background: #fee2e2;
    color: #ef4444;
    padding: 18px;
    border-radius: 20px;
    font-weight: 800;
    border: 1.5px solid #fecaca;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-logout:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
    transform: scale(0.98);
}

@keyframes slideUpIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
    .settings-group { grid-template-columns: 1fr; }
    .page-header h2 { font-size: 2.25rem; }
    .settings-section { padding: 1.5rem; }
}