/* Settings Page Styles */

/* Page Header with Gradient */
.page-header {
    position: relative;
    padding: 48px 48px 32px;
    background: linear-gradient(180deg, rgba(191, 90, 242, 0.15) 0%, transparent 100%);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: radial-gradient(ellipse at top center, rgba(191, 90, 242, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.page-header .header-content {
    position: relative;
    z-index: 1;
}

.page-header .page-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

/* Settings Content */
.settings-content {
    padding: 0 48px 48px;
    max-width: 900px;
}

/* Settings Section */
.settings-section {
    margin-bottom: 32px;
}

.settings-section .section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-quaternary);
    margin-bottom: 12px;
    padding-left: 4px;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    overflow: hidden;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.settings-item:hover {
    background: var(--bg-elevated);
}

.settings-item:not(:last-child) {
    border-bottom: 1px solid var(--border-primary);
}

.settings-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings-icon svg {
    width: 20px;
    height: 20px;
}

.settings-icon.blue { background: rgba(10, 132, 255, 0.15); color: #0A84FF; }
.settings-icon.orange { background: rgba(255, 159, 10, 0.15); color: #E8A54A; }
.settings-icon.green { background: rgba(50, 215, 75, 0.15); color: #5ABF6A; }
.settings-icon.purple { background: rgba(191, 90, 242, 0.15); color: #9B7EC8; }
.settings-icon.red { background: rgba(255, 69, 58, 0.15); color: #E85A5A; }
.settings-icon.yellow { background: rgba(255, 214, 10, 0.15); color: #FFD60A; }
.settings-icon.cyan { background: rgba(90, 200, 250, 0.15); color: #5AC8FA; }
.settings-icon.gray { background: rgba(142, 142, 147, 0.15); color: var(--chart-text-muted); }

.settings-text {
    flex: 1;
}

.settings-label {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-sublabel {
    font-size: 13px;
    color: var(--text-secondary);
}

.badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    background: var(--rise-primary);
    color: #000;
}

.settings-chevron {
    color: var(--text-quaternary);
}

.settings-chevron svg {
    width: 16px;
    height: 16px;
}

/* Sign Out Button */
.sign-out-section {
    margin-top: 32px;
}

.sign-out-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    color: #E85A5A;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sign-out-btn:hover {
    background: rgba(255, 69, 58, 0.1);
    border-color: rgba(255, 69, 58, 0.3);
}

.sign-out-btn svg {
    width: 20px;
    height: 20px;
}

/* Version */
.version-info {
    text-align: center;
    padding: 24px;
    color: var(--text-quaternary);
    font-size: 12px;
}

/* Toggle Switch */
.toggle-container {
    display: flex;
    align-items: center;
}

.toggle {
    position: relative;
    width: 44px;
    height: 26px;
    background: var(--bg-elevated);
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle.active {
    background: #5ABF6A;
}

.toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle.active::after {
    transform: translateX(18px);
}

/* Status Badge */
.status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.status-badge.connected {
    background: rgba(50, 215, 75, 0.15);
    color: #5ABF6A;
}

.status-badge.disconnected {
    background: rgba(142, 142, 147, 0.15);
    color: var(--chart-text-muted);
}

/* ── Light Theme ── */
[data-theme="light"] .page-header {
    background: linear-gradient(180deg, rgba(191, 90, 242, 0.08) 0%, transparent 100%);
}

[data-theme="light"] .page-header::before {
    background: radial-gradient(ellipse at top center, rgba(191, 90, 242, 0.1) 0%, transparent 70%);
}

[data-theme="light"] .settings-card {
    box-shadow: var(--shadow-card);
}

[data-theme="light"] .sign-out-btn {
    box-shadow: var(--shadow-card);
}

[data-theme="light"] .toggle {
    background: rgba(0, 0, 0, 0.08);
}

/* Responsive */
@media (max-width: 1024px) {
    .page-header,
    .settings-content {
        padding-left: 24px;
        padding-right: 24px;
    }
}
