/* ════════════════════════════════════════════════════════════════════════════
   RECATOOLS — Whitespace Remover & Text Cleaner — style.css
   Tool-specific overrides only.
   Base styles live in /assets/css/tool-page.css.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Tool textareas ──────────────────────────────────────────────────────────── */
.ws-textarea {
    width:         100%;
    min-height:    160px;
    padding:       0.875rem 1rem;
    font-family:   'SFMono-Regular', 'Consolas', 'IBM Plex Sans', monospace;
    font-size:     0.9rem;
    line-height:   1.6;
    color:         var(--text);
    background:    var(--bg);
    border:        1.5px solid var(--border);
    border-radius: 10px;
    resize:        vertical;
    box-sizing:    border-box;
    transition:    border-color 0.15s;
}
.ws-textarea:focus {
    outline:      none;
    border-color: var(--accent);
}
.ws-textarea[readonly] {
    background: #f9f9f8;
    color:      var(--text);
    cursor:     default;
}
.ws-textarea::placeholder {
    color:       var(--muted);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size:   0.875rem;
}

/* ── Mode buttons grid ───────────────────────────────────────────────────────── */
.ws-modes {
    display:   flex;
    flex-wrap: wrap;
    gap:       0.5rem;
    margin:    1rem 0;
}

.ws-mode-btn {
    padding:       0.45rem 0.875rem;
    border:        1.5px solid var(--border);
    border-radius: 999px;
    background:    #fff;
    color:         var(--text);
    font-size:     0.8125rem;
    font-weight:   600;
    cursor:        pointer;
    transition:    background 0.15s, border-color 0.15s, color 0.15s;
    white-space:   nowrap;
    user-select:   none;
}
.ws-mode-btn:hover {
    border-color: var(--accent);
    color:        var(--accent);
}
.ws-mode-btn.active {
    background:   var(--accent);
    border-color: var(--accent);
    color:        #fff;
}

/* ── Stats bar ───────────────────────────────────────────────────────────────── */
.ws-stats {
    text-align:  center;
    font-size:   0.875rem;
    font-weight: 700;
    color:       var(--accent);
    padding:     0.5rem 0;
}
.ws-stats[hidden] { display: none; }

/* ── Auto-process toggle row ─────────────────────────────────────────────────── */
.ws-auto-row {
    display:     flex;
    align-items: center;
    gap:         0.625rem;
    margin:      0.75rem 0;
    font-size:   0.875rem;
    color:       var(--muted);
    font-weight: 600;
}

/* Native checkbox styled as a toggle switch */
.ws-toggle {
    appearance:    none;
    -webkit-appearance: none;
    width:         38px;
    height:        22px;
    background:    var(--border);
    border-radius: 999px;
    cursor:        pointer;
    position:      relative;
    transition:    background 0.2s;
    flex-shrink:   0;
}
.ws-toggle::after {
    content:       '';
    position:      absolute;
    top:           3px;
    left:          3px;
    width:         16px;
    height:        16px;
    background:    #fff;
    border-radius: 50%;
    transition:    left 0.2s;
    box-shadow:    0 1px 3px rgba(0,0,0,0.2);
}
.ws-toggle:checked {
    background: var(--accent);
}
.ws-toggle:checked::after {
    left: 19px;
}

/* ── Output section label ────────────────────────────────────────────────────── */
.ws-label {
    display:       block;
    font-size:     0.8125rem;
    font-weight:   700;
    color:         var(--muted);
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Action button row ───────────────────────────────────────────────────────── */
.ws-action-row {
    display:   flex;
    gap:       0.625rem;
    flex-wrap: wrap;
    margin:    0.875rem 0 0;
}

/* cache-buster: 2026-05-24T05:06:05Z */
