/* ---- Settings Page ---- */
.settings-page {
    max-width: 800px;
}

.settings-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.settings-section__title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-subtle);
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.settings-row:last-child {
    border-bottom: none;
}

.settings-row__label {
    font-size: var(--text-sm);
    font-weight: 500;
}

.settings-row__desc {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-top: 2px;
}

/* ---- Canned Responses List ---- */
.canned-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.canned-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.canned-item__info {
    flex: 1;
    min-width: 0;
}

.canned-item__title {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 2px;
}

.canned-item__preview {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 500px;
}

.canned-item__actions {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

/* ---- Toggle Switch ---- */
.toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

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

.toggle__slider {
    position: absolute;
    inset: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.toggle__slider::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--text-tertiary);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.toggle input:checked + .toggle__slider {
    background: var(--brand-purple);
    border-color: var(--brand-purple);
}

.toggle input:checked + .toggle__slider::before {
    left: calc(100% - 19px);
    background: white;
}
