/* ============================================================
   basicFusion IDE — motyw: Visual Basic 6 (Windows classic)
   Ladowany po style.css. Aktywny, gdy <html data-theme="vb6">.
   Tokeny bazowe (--bg/--panel/--ink/--line/--accent...) steruja
   nowszym UI (Projects, titlebar, AI chat, tracker); tokeny legacy
   (--bg-color, --text-color...) — starszymi panelami i edytorem.
   ============================================================ */

html[data-theme="vb6"] {
    /* tokeny bazowe (canonical) */
    --bg: #ffffff;
    --panel: #d4d0c8;
    --panel-2: #e4e1da;
    --gutter: #d4d0c8;
    --ink: #000000;
    --ink-dim: #404040;
    --ink-faint: #707070;
    --line: #808080;
    --line-2: #a0a0a0;
    --accent: #000080;
    --accent-hi: #0a48c0;
    --accent-dim: #c5d5f0;
    --link: #0000ff;
    --ok: #008000;
    --danger: #c00000;
    --on-accent: #ffffff;
    --btn-primary-ink: #ffffff;
}

/* ---------- VISUAL BASIC 6 (Windows classic) ---------- */
html[data-theme="vb6"] {
    --bg-color: #ffffff;            /* okno kodu */
    --bg-darker: #c0c0c0;           /* chrome / menubar */
    --bg-deepest: #a0a0a0;
    --bg-output: #cce0f5;
    --bg-sidebar: #d4d0c8;
    --bg-panel: #d4d0c8;
    --bg-hover: #e8e6df;
    --bg-active: #cce0f5;           /* zaznaczenie – jasny błękit (czytelny czarny tekst) */
    --bg-input: #ffffff;
    --surface-2: #d4d0c8;
    --terminal-bg: #cce0f5;
    --panel-bg: #d4d0c8;

    --border: #808080;
    --border-light: #b8b4ac;
    --border-focus: #000080;

    --text-color: #000000;
    --text-muted: #505050;
    --text-faint: #909090;
    --text-bright: #000000;
    --text-white: #ffffff;
    --text-soft: #303030;
    --grey-55: #707070;
    --grey-66: #606060;
    --grey-77: #505050;
    --grey-88: #404040;
    --caret: #000000;

    --accent: #000080;              /* navy */
    --accent-hover: #1a3aa0;
    --accent-glow: rgba(0,0,128,0.18);
    --accent-deep: #000080;
    --accent-deep-hover: #1a3aa0;
    --accent-classic: #000080;
    --accent-bright: #0a48c0;
    --accent-light: #2a68e0;

    --token-keyword: #0000ff;
    --token-function: #0000ff;
    --token-string: #800000;
    --token-variable: #000000;
    --token-operator: #000000;
    --token-number: #000000;
    --token-comment: #008000;
    --token-label: #800080;
    --token-teal: #008080;
    --token-directive: #ff55ff;

    --overlay-soft: rgba(0,0,0,0.08);
    --overlay-faint: rgba(0,0,0,0.04);
    --overlay-mid: rgba(0,0,0,0.25);
    --green-bg: #dff0df;
    --red-bg: #f5dede;
    --bg-gutter-deep: #d4d0c8;
}

/* jasne zaznaczenie (accent-dim) wymaga ciemnego tekstu */
html[data-theme="vb6"] .ac-item:hover, html[data-theme="vb6"] .ac-item.active,
html[data-theme="vb6"] .goto-sub-item:hover, html[data-theme="vb6"] .goto-sub-item.active { color: var(--ink); }
