/*
 * Tomatesoft Design — tokens base (v0.1.0)
 * Source of truth: design/tokens/ in the monorepo. The apps import it; never
 * copy it.
 * Shared by every product. Load it first, then the platform file:
 *   tokens-pos.css (touch, full screen) or tokens-web.css (panels, mouse).
 * Components use these variables, never raw values.
 * Font: Archivo Variable (@fontsource-variable/archivo).
 */
:root {
  /* Brand */
  /* Brand colour of the interface. The tomato dot of the logo keeps its own
     red (#E20D18), inside the SVG */
  --ts-brand-red: #99000f;

  /* Backgrounds: dark graphite, from the page up to the cards */
  --ts-page-bg: #17181a;
  --ts-bg: #1d1e21;
  --ts-bar-bg: #222326;
  --ts-surface: #26272a;
  --ts-surface-hover: #2d2e31;
  --ts-card-from: #3a3b3f;
  --ts-card-to: #2a2b2e;
  --ts-card-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  --ts-dialog-bg: #1f2023;
  --ts-overlay: rgba(0, 0, 0, 0.62);

  /* Lines */
  --ts-line: #3a3b3f;
  --ts-border: #5c5d62;

  /* Actions */
  --ts-primary: #3d7a37;
  --ts-primary-hover: #468a40;
  --ts-secondary: #55565b;
  --ts-secondary-hover: #606166;
  /* Red actions: destructive or irreversible (borrar, cancelar mesa) */
  --ts-accent: #a00f16;
  --ts-accent-hover: #b8141c;
  --ts-disabled-bg: #4a4b50;
  --ts-disabled-text: #8e8f94;
  --ts-focus: #6aa863;

  /* States */
  --ts-success: #3d7a37;
  --ts-success-bg: #243a22;
  --ts-success-soft: #9fd497;
  --ts-warning-bg: rgba(242, 201, 125, 0.1);
  --ts-warning-line: rgba(242, 201, 125, 0.35);
  --ts-warning-soft: #f2c97d;
  --ts-danger: #ff6a55;
  --ts-danger-bg: #4a2a28;
  --ts-danger-soft: #f2a19c;
  /* Informative highlight (not an action): selection, the live map */
  --ts-accent-violet: #8b80d8;

  /* Text */
  --ts-text-strong: #f4f4f5;
  --ts-text: #ececee;
  --ts-text-soft: #c9c9cc;
  --ts-placeholder: #9c9da2;

  /* Type: one family, four weights (Archivo is variable, 100–900) */
  --ts-font: 'Archivo Variable', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ts-font-mono: Consolas, 'Cascadia Mono', monospace;
  --ts-weight-light: 300;
  --ts-weight-regular: 380;
  --ts-weight-medium: 480;
  --ts-weight-bold: 600;

  /* Shape */
  --ts-radius-pill: 999px;

  /* Motion: fast, never in the way */
  --ts-motion-hover: 120ms;
  --ts-motion-enter: 180ms;
  --ts-motion-dialog: 200ms;
  --ts-ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}
