/*
    The Mitra side's colours (owner decision 2026-10-30, docs/mitra-and-pelanggan-sides.md).

    An account on the Mitra side carries <html data-side="mitra">: the boot scripts set it from
    local storage before the first paint (js/boot-state.js, run by both hosts) and
    AppSide corrects it once the account is read. Here the brand tokens of theme.css, which the
    whole app paints with, are pointed at a green instead of the blue. Nothing else changes.

    The green leans to teal on purpose: --green-badge and the success button (#16A34A, #22C55E)
    still mean "done" on both sides, and a Mitra must be able to tell the two apart
    (docs/design-discipline.md, "Green is only real completion"). The owner will judge the shade
    once the Mitra pages are redesigned.

    :root plus the attribute outranks theme.css's [data-theme='dark'], so the dark block below
    is needed and the light one cannot leak into dark. One dark block: "ikuti sistem" arrives
    here already resolved to dark or light (theme-init.js).
*/

:root[data-side='mitra'] {
    --blue-primary: #0b7a5c;
    --blue-primary-rgb: 11, 122, 92;
    --blue-light: #3fae8a;
    --blue-accent: #14a37f;
    --blue-pale: #e5f4ee;
    --blue-pale-top: #f0faf6;
    --blue-pale-bottom: #d6ece3;
    --chat-bubble-start: #0b7a5c;
    --chat-bubble-end: #14a37f;
    --sug-bg: rgba(229, 244, 238, 0.95);
    --sug-border: rgba(11, 122, 92, 0.12);
    --sug-icon: #0b7a5c;
    --sug-hover: rgba(11, 122, 92, 0.08);
    --sug-active: rgba(11, 122, 92, 0.14);
    --header-grad-start: #072b21;
    --header-grad-mid: #0b7a5c;
    --header-grad-end: #3fae8a;
    --btn-primary-start: #0b7a5c;
    --btn-primary-end: #14a37f;
    --btn-primary-shadow: rgba(11, 122, 92, 0.3);
    --tab-active-shadow: rgba(11, 122, 92, 0.25);
    --header-tabs-fill: linear-gradient(180deg, #ffffff 0%, #e7f5ef 100%);
    --header-tabs-ink: #2f6a56;
    --ctx-tile-fill: linear-gradient(180deg, #ffffff 0%, #eaf6f1 100%);
    --field-focus-shadow: 0 0 0 3px rgba(11, 122, 92, 0.1);
}

:root[data-side='mitra'][data-theme='dark'] {
    --blue-primary: #4cc79d;
    --blue-primary-rgb: 76, 199, 157;
    --blue-light: #5fcfa7;
    --blue-accent: #4cc79d;
    --blue-pale: #15302a;
    --blue-pale-top: #1f4a3c;
    --blue-pale-bottom: #132a23;
    --chat-bubble-start: #0a3a2c;
    --chat-bubble-end: #11553f;
    --sug-bg: rgba(30, 58, 48, 0.9);
    --sug-border: rgba(76, 199, 157, 0.18);
    --sug-icon: rgba(76, 199, 157, 0.7);
    --sug-hover: rgba(76, 199, 157, 0.1);
    --sug-active: rgba(76, 199, 157, 0.18);
    --header-grad-start: #08130f;
    --header-grad-mid: #0f3528;
    --header-grad-end: #17503c;
    --btn-primary-start: #14523f;
    --btn-primary-end: #1d6e54;
    --btn-primary-shadow: rgba(30, 110, 84, 0.35);
    --btn-active-bg: #1d5e48;
    --tab-active-bg: #1d5e48;
    --tab-active-shadow: rgba(29, 94, 72, 0.35);
    --header-tabs-fill: linear-gradient(180deg, #27332f 0%, #1c2824 100%);
    --header-tabs-ink: #9fdcc4;
    --ctx-tile-fill: linear-gradient(180deg, #2c3833 0%, #212b27 100%);
    --field-focus-shadow: 0 0 0 3px rgba(76, 199, 157, 0.15);
}
