/* Shared light and dark surfaces. Set by assets/js/trinix-theme-boot.js */

:root,
html[data-trinix-theme="light"] {
  --tx-page: #F9F7F2;
  --tx-paper: #F9F7F2;
  --tx-stage: #eceeed;
  --tx-panel: #ffffff;
  --tx-raised: #f3f1eb;
  --tx-text: #0b1220;
  --tx-muted: #1f2937;
  --tx-border: rgba(15, 23, 42, 0.08);
  --tx-btn: #003e89;
  --tx-btn-text: #ffffff;
  --tx-inverse: #0c1222;
  --tx-inverse-text: #ffffff;
  --bg-primary: #F9F7F2;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f3f1eb;
  --text-primary: #0b1220;
  --text-secondary: #1f2937;
  --border-color: rgba(15, 23, 42, 0.08);
  color-scheme: light;

  --tx-brand: #003e89;
  --tx-brand-hover: #002e67;
  --tx-ai: #0f6b4c;
  --tx-success: #0f7a45;
  --tx-warning: #9a6700;
  --tx-danger: #b42318;

  --tx-accent-sky: #1d6bb8;
  --tx-accent-teal: #0f6b4c;
  --tx-accent-amber: #b45309;
  --tx-accent-rose: #b42318;
  --tx-accent-ink: #0c1222;
  --tx-accent-gold: #FFB84D;
  --tx-accent-orange: #F15A24;
  --tx-hero-ink: #0D1117;
  --tx-glow-brand: rgba(0, 62, 137, 0.12);
  --tx-glow-teal: rgba(15, 107, 76, 0.12);
  --tx-glow-gold: rgba(255, 184, 77, 0.28);

  --tx-surface-1: #ffffff;
  --tx-surface-2: #F3F1EB;
  --tx-surface-3: #e8eef6;
  --tx-surface-card: #ffffff;
  --tx-surface-form: #f7f5f0;
  --tx-surface-table: #ffffff;
  --tx-surface-table-head: #efece6;
  --tx-surface-modal: #ffffff;
  --tx-surface-inset: #f3f1eb;

  --tx-border-card: rgba(15, 23, 42, 0.1);
  --tx-border-form: rgba(0, 62, 137, 0.14);
  --tx-border-table: rgba(15, 23, 42, 0.08);
  --tx-border-modal: rgba(15, 23, 42, 0.16);
  --tx-edge: rgba(15, 23, 42, 0.12);
  --tx-edge-accent: var(--tx-brand);

  /* Dashify aliases */
  --bg: var(--tx-page);
  --bg-soft: var(--tx-raised);
  --card: var(--tx-surface-card);
  --ink: var(--tx-text);
  --muted: var(--tx-muted);
  --line: var(--tx-border-card);
  --blue: var(--tx-brand);
  --blue-soft: var(--tx-glow-brand);
  --success: var(--tx-success);
}

html[data-trinix-theme="dark"] {
  --tx-page: #0a101c;
  --tx-paper: #0a101c;
  --tx-stage: #121a2a;
  --tx-panel: #121a2a;
  --tx-raised: #1a2436;
  --tx-text: #f1f5f9;
  --tx-muted: #e2e8f0;
  --tx-border: rgba(255, 255, 255, 0.08);
  --tx-btn: #003e89;
  --tx-btn-text: #ffffff;
  --tx-inverse: #ffffff;
  --tx-inverse-text: #0c1222;
  --bg-primary: #0a101c;
  --bg-secondary: #121a2a;
  --bg-tertiary: #1a2436;
  --text-primary: #f1f5f9;
  --text-secondary: #e2e8f0;
  --border-color: rgba(255, 255, 255, 0.08);
  color-scheme: dark;

  --tx-brand: #7eabde;
  --tx-brand-hover: #a9c7ea;
  --tx-ai: #6dcea8;
  --tx-success: #6dcea8;
  --tx-warning: #e2b657;
  --tx-danger: #f0a3a0;

  --tx-accent-sky: #7eabde;
  --tx-accent-teal: #6dcea8;
  --tx-accent-amber: #e2b657;
  --tx-accent-rose: #f0a3a0;
  --tx-accent-ink: #e7edf5;
  --tx-accent-gold: #FFB84D;
  --tx-accent-orange: #FF8C4A;
  --tx-hero-ink: #0D1117;
  --tx-glow-brand: rgba(126, 171, 222, 0.14);
  --tx-glow-teal: rgba(109, 206, 168, 0.12);
  --tx-glow-gold: rgba(255, 184, 77, 0.22);

  --tx-surface-1: #121a2a;
  --tx-surface-2: #1a2436;
  --tx-surface-3: #243044;
  --tx-surface-card: #141e30;
  --tx-surface-form: #182338;
  --tx-surface-table: #121a2a;
  --tx-surface-table-head: #1c2a40;
  --tx-surface-modal: #1a2640;
  --tx-surface-inset: #0f1726;

  --tx-border-card: rgba(255, 255, 255, 0.1);
  --tx-border-form: rgba(126, 171, 222, 0.22);
  --tx-border-table: rgba(255, 255, 255, 0.08);
  --tx-border-modal: rgba(255, 255, 255, 0.16);
  --tx-edge: rgba(255, 255, 255, 0.12);
  --tx-edge-accent: var(--tx-brand);

  /* Dashify aliases */
  --bg: var(--tx-page);
  --bg-soft: var(--tx-raised);
  --card: var(--tx-surface-card);
  --ink: var(--tx-text);
  --muted: var(--tx-muted);
  --line: var(--tx-border-card);
  --blue: var(--tx-brand);
  --blue-soft: var(--tx-glow-brand);
  --success: var(--tx-success);
}
