/* ---------------------------------------------------------------
   TraderPro colour palette - the single place every theme colour is set.
   head.php and the screens only ever use var(--tp-*) / var(--bs-*).

   White label: copy this file, change the values, and load the copy
   instead (or after it). Keep the *-rgb triplets in step with the hex
   they mirror - Bootstrap needs both forms.

   Light values sit on :root, dark-mode overrides on [data-bs-theme=dark].
   The topbar and logo strip are always in the dark scope.
--------------------------------------------------------------- */

:root,
[data-bs-theme=light]{
  --tp-orange:#FD6900;
  --tp-orange-hover:#E05D00;
  --tp-orange-rgb:253,105,0;
  --tp-teal:#007C85;
  --tp-teal-hover:#00636A;
  --tp-teal-rgb:0,124,133;

  /* Accent text: brand colours tuned per theme for legibility */
  --tp-accent-text:#007C85;
  --tp-accent-text-hover:#00555B;
  --tp-icon-tint:#FFF0E5;          /* orange-tinted icon circle bg */
  --tp-icon-fg:#D95800;

  --tp-paper:#F3F5F6;
  --tp-card:#FFFFFF;
  --tp-line:#E3E7E9;
  --tp-ink:#172226;
  --tp-muted:#5F6B70;
  --tp-track:#DCE2E4;              /* unfilled chart track */

  --tp-sidebar:#0A3337;
  --tp-sidebar-line:rgba(255,255,255,.10);

  /* Dashboard hero banner */
  --tp-hero-gradient:linear-gradient(100deg, rgba(0,62,67,.97) 0%, rgba(0,124,133,.92) 60%, rgba(0,124,133,.80) 100%);

  /* Functional colours (same in both modes) */
  --tp-plate-bg:#FFD307;           /* UK number plate */
  --tp-plate-ink:#111111;
  --tp-now:#DC3545;                /* diary "now" line */
  --tp-channel-sms:#6C757D;        /* communications channel dots */
  --tp-channel-email:#0D6EFD;
  --tp-channel-whatsapp:#198754;
  --tp-channel-print:#343A40;      /* Print button beside the channels */

  --bs-body-bg:var(--tp-paper);
  --bs-body-color:var(--tp-ink);
  --bs-secondary-color:var(--tp-muted);
  --bs-border-color:var(--tp-line);
  --bs-primary:var(--tp-orange);
  --bs-primary-rgb:253,105,0;
  --bs-link-color:var(--tp-accent-text);
  --bs-link-color-rgb:var(--tp-teal-rgb);
  --bs-link-hover-color:var(--tp-accent-text-hover);
  --bs-link-hover-color-rgb:0,85,91;
  --bs-focus-ring-color:rgba(var(--tp-orange-rgb),.25);
  --bs-primary-bg-subtle:#FFE8D6;
  --bs-primary-border-subtle:#FFC79E;
  --bs-primary-text-emphasis:#8F3B00;
}

[data-bs-theme=dark]{
  --tp-accent-text:#4CC3CC;
  --tp-accent-text-hover:#7DD6DC;
  --tp-icon-tint:rgba(253,105,0,.14);
  --tp-icon-fg:#FF8A3D;

  --tp-paper:#0C1113;
  --tp-card:#141B1E;
  --tp-line:#243034;
  --tp-ink:#E4EAEC;
  --tp-muted:#94A3A8;
  --tp-track:#2A363A;

  --tp-sidebar:#0A1A1C;
  --tp-sidebar-line:rgba(255,255,255,.08);
  --tp-topbar:#0B1C1F;            /* topbar + logo strip always sit in this dark scope */

  --tp-hero-gradient:linear-gradient(100deg, rgba(4,40,44,.98) 0%, rgba(0,92,99,.92) 100%);

  --bs-body-bg:var(--tp-paper);
  --bs-body-color:var(--tp-ink);
  --bs-secondary-color:var(--tp-muted);
  --bs-border-color:var(--tp-line);
  --bs-tertiary-bg:#1A2327;
  --bs-secondary-bg:#1F2A2E;
  --bs-link-color:var(--tp-accent-text);
  --bs-link-color-rgb:76,195,204;
  --bs-link-hover-color:var(--tp-accent-text-hover);
  --bs-link-hover-color-rgb:125,214,220;
  --bs-primary-bg-subtle:#3A1C06;
  --bs-primary-border-subtle:#7A3500;
  --bs-primary-text-emphasis:#FFA466;
}
