/* ============================================================
   Local Settings Screen
   ============================================================ */

.ls-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

.ls-header {
    margin-bottom: 28px;
}
.ls-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary, #f1f5f9);
    margin: 0 0 4px;
}
.ls-header p {
    font-size: 13px;
    color: var(--text-muted, #94a3b8);
    margin: 0;
}

/* ── Section card ── */
.ls-section {
    background: var(--surface, #1e2130);
    border: 1px solid var(--border, rgba(255,255,255,0.07));
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
}
.ls-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted, #94a3b8);
    margin: 0 0 16px;
}

/* ── Row ── */
.ls-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.ls-row:last-child { margin-bottom: 0; }

.ls-label {
    flex: 0 0 160px;
    font-size: 14px;
    color: var(--text-secondary, #cbd5e1);
}
.ls-control { flex: 1; display: flex; align-items: center; gap: 8px; }

/* ── Select / Input ── */
.ls-select, .ls-input {
    flex: 1;
    background: var(--input-bg, rgba(0,0,0,0.3));
    border: 1px solid var(--border, rgba(255,255,255,0.1));
    border-radius: 8px;
    color: var(--text-primary, #f1f5f9);
    font-size: 14px;
    padding: 8px 12px;
    outline: none;
    transition: border-color 0.15s;
}
.ls-select:focus, .ls-input:focus {
    border-color: var(--accent, #6366f1);
}

/* ── Status badge ── */
.ls-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}
.ls-status.online  { background: rgba(34,197,94,0.15); color: #22c55e; }
.ls-status.offline { background: rgba(148,163,184,0.1); color: #94a3b8; }
.ls-status.error   { background: rgba(239,68,68,0.15); color: #ef4444; }
.ls-status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ── Buttons ── */
.ls-btn {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: opacity 0.15s, background 0.15s;
}
.ls-btn:hover { opacity: 0.85; }
.ls-btn-primary {
    background: var(--accent, #6366f1);
    color: #fff;
}
.ls-btn-save {
    background: #22c55e;
    color: #fff;
    min-width: 90px;
}
.ls-btn-danger {
    background: transparent;
    border-color: rgba(239,68,68,0.4);
    color: #ef4444;
}
.ls-btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* ── Toggle ── */
.ls-toggle-wrap { display: flex; align-items: center; gap: 10px; }
.ls-toggle {
    position: relative;
    width: 44px; height: 24px;
    cursor: pointer;
    display: inline-block;
}
.ls-toggle input { opacity: 0; width: 0; height: 0; }
.ls-toggle-slider {
    position: absolute; inset: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 24px;
    transition: background 0.2s;
}
.ls-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.ls-toggle input:checked + .ls-toggle-slider { background: var(--accent, #6366f1); }
.ls-toggle input:checked + .ls-toggle-slider::before { transform: translateX(20px); }
.ls-toggle-label { font-size: 14px; color: var(--text-secondary, #cbd5e1); }

/* ── Info box ── */
.ls-info {
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-secondary, #cbd5e1);
    line-height: 1.5;
}
.ls-info strong { color: var(--text-primary, #f1f5f9); }

/* ── Hint text ── */
.ls-hint {
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
    margin-top: 4px;
}

/* ── No-electron notice ── */
.ls-no-electron {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted, #94a3b8);
}
.ls-no-electron h3 { color: var(--text-primary, #f1f5f9); margin-bottom: 8px; }

/* ── Saved toast ── */
.ls-saved-banner {
    position: fixed;
    bottom: 24px; left: 50%;
    transform: translateX(-50%);
    background: #22c55e;
    color: #fff;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    animation: ls-pop 0.2s ease;
    z-index: 9999;
}
@keyframes ls-pop {
    from { transform: translateX(-50%) scale(0.8); opacity: 0; }
    to   { transform: translateX(-50%) scale(1);   opacity: 1; }
}

/* ── File path display ── */
.ls-file-path {
    font-family: monospace;
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
    background: rgba(0,0,0,0.3);
    padding: 4px 8px;
    border-radius: 4px;
    word-break: break-all;
}
