/* ==========================================================================
   THEME ENGILO – base style for all tenants except Martina (tenant_settings.base_theme = "engilo").
   Variables only, same names as theme.css. Values like engilo.de.
   The tenant's own colors and font come afterwards from /appearance.css.
   Inter is not bundled as a file: without an installed Inter the system font applies.
   ========================================================================== */

:root {
  /* Brand colors */
  --color-primary: #00119e;          /* ENGILO blue: buttons, links, accents */
  --color-primary-hover: #000b6e;
  --color-primary-text: #ffffff;     /* Text on the primary color */
  --dim-color: rgba(0, 0, 0, 0.4);  /* Backdrop behind the open sidebar (mobile) */
  --color-secondary: #1830a8;        /* Admin header, heading accent */
  --color-soft: #eef0fb;             /* soft blue: surfaces, own messages */
  --color-soft-border: #c0c0d8;

  /* Neutral colors */
  --color-background: #fefefe;
  --color-surface: #f3f3fa;          /* Sidebar, cards */
  --color-text: #101010;
  --color-text-strong: #07081a;
  --color-text-muted: #5c5c6c;
  --color-border: #c0c0d8;

  /* States */
  --color-ok: #1b6e2d;
  --color-ok-surface: #e6f4ea;
  --color-error: #b3261e;
  --color-error-surface: #fbe9e7;
  --color-warning: #8a6100;
  --color-warning-surface: #fdf3d8;

  /* Typography */
  --font: "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-size: 17px;
  --line_height: 1.65;
  --letter_spacing: 0.3px;
  --font-weight-heading: 600;

  /* Shapes */
  --radius-small: 2px;
  --radius: 2px;                    /* Buttons, input fields */
  --radius-large: 4px;              /* Chat bubbles, cards */
  --shadow: 0 2px 14px rgba(7, 8, 26, 0.08);

  /* Spacing and dimensions */
  --spacing: 16px;
  --sidebar-width: 280px;
  --content-max: 820px;
}

/* Dark mode: only active when the device asks for it. */
@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #6b7bff;
    --color-primary-hover: #8c99ff;
    --color-primary-text: #07081a;     /* dark text on light blue (contrast approx. 5.6:1) */
    --color-secondary: #07081a;
    --color-soft: #141633;
    --color-soft-border: #2a2d45;
    --color-background: #07081a;
    --color-surface: #0e1024;
    --color-text: #f4f3f0;
    --color-text-strong: #ffffff;
    --color-text-muted: #a6a8c0;
    --color-border: #2a2d45;
    --color-ok-surface: #17301f;
    --color-error-surface: #3a1820;
    --color-warning-surface: #3a2e12;
    --color-ok: #7fd3a0;
    --color-error: #ff8a9b;
    --color-warning: #f0c060;
  }
}
