/* eCQare design system tokens (Figma "Design System: eCQare" · Colors / Fonts). Shared by chat and admin. */

@font-face {
  font-family: "Cabin";
  src: url("fonts/cabin-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cabin";
  src: url("fonts/cabin-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Neutral */
  --n00-white: #ffffff;
  --n01-titles: #262626;
  --n02-text: #53585c;
  --n03-subtle: #8a9094;
  --n04-inactive: #adadad;
  --n06-stroke: #d1d1d1;
  --n08-subtle-stroke: #e6e6e6;
  --n09-bg-header: #ebeced;
  --n10-bg-frame: #f2f2f2;
  --n11-hover: #f7f7f7;
  --n12-even-row: #fcfcfc;
  --t-lightbox: rgba(0, 0, 0, .25);

  /* Main color */
  --blue-d1: #0078a0;
  --blue: #0095c8;
  --blue-l1: #41b2d9;
  --blue-l2: #8dc8e9;
  --blue-l3-hover: #deeff7;
  --blue-l4-select: #ebf5fa;
  --blue-l5-page: #f4f6f8;

  /* Accents */
  --green-d1: #4c7f33;
  --green: #68a248;
  --green-l2-select: #edf9db;
  --red: #c73718;
  --red-l1: #faebe8;
  --yellow-d2: #865900;
  --yellow: #ebba3b;
  --yellow-l1: #fbf1d8;

  /* Roles */
  --font: "Cabin", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --text: var(--n02-text);
  --title: var(--n01-titles);
  --muted: var(--n03-subtle);
  --border: var(--n06-stroke);
  --border-subtle: var(--n08-subtle-stroke);
  --bg: var(--n00-white);
  --bg-soft: var(--n10-bg-frame);
  --bg-page: var(--blue-l5-page);
  --header-bg: var(--n09-bg-header);
  --hover: var(--n11-hover);
  --accent: var(--blue);           /* buttons, icons */
  --accent-text: var(--blue-d1);   /* links and blue subtitles on white (contrast) */
  --accent-hover: var(--blue-d1);
  --accent-soft: var(--blue-l3-hover);
  --accent-select: var(--blue-l4-select);
  --warn-bg: var(--yellow-l1);
  --warn-border: var(--yellow);
  --warn-text: var(--yellow-d2);
  --error: var(--red);
  --error-bg: var(--red-l1);
  --ok: var(--green-d1);
  --ok-bg: var(--green-l2-select);
  /* Chat surfaces (§5.1). A product theme (themes/<product>.css, §2.3) overrides these and the accent roles above. */
  --header-from: var(--blue-d1);
  --header-to: #00668a;
  --header-subtitle: var(--blue-l3-hover);
  --glow-strong: var(--blue-l3-hover);
  --glow-soft: var(--blue-l4-select);
  --messages-bg: #f8fbfd;
  --shadow-tint: 0, 72, 100;  /* r, g, b for rgba(var(--shadow-tint), .1) */
  --radius: 4px;         /* eCQare: small, subtle rounding */
  --radius-button: 3px;
  --shadow-popup: 0 1px 4px rgba(0, 0, 0, .12);
  color-scheme: light;
}
