/* Kabera design tokens.
   One place for the brand's colours, type, shapes and motion, taken from the logo
   (user/images/logo.png: silver #c3c3c3 lettering, amber #f9ae0c bar).
   Only custom properties live here, no element styles, so any page can load it.
   Used today by the sign-in pages (css/auth.css) and the lock screen
   (css/lock_screen.css); inner CRM pages can adopt it when they are redesigned.

   Light scheme on :root. Put class="k-dark" on any element (e.g. <body>) to switch
   that part of the page to the dark scheme. */

:root {
  /* Brand */
  --k-amber: #f9ae0c;
  --k-amber-hover: #ffbb33;
  --k-amber-pressed: #e59e05;
  --k-on-amber: #1d1600;          /* text and icons on amber */
  --k-silver: #c3c3c3;

  /* Type: SF Pro on Apple devices, Inter elsewhere */
  --k-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --k-font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --k-text-xs: 12px;
  --k-text-sm: 13px;
  --k-text-md: 15px;
  --k-text-body: 17px;
  --k-text-title: 32px;
  --k-tracking-tight: -0.022em;

  /* Shape */
  --k-radius-sm: 8px;
  --k-radius: 12px;
  --k-radius-lg: 18px;
  --k-radius-xl: 24px;
  --k-radius-pill: 980px;

  /* Motion */
  --k-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --k-fast: 0.15s;
  --k-normal: 0.25s;

  /* Light scheme */
  --k-bg: #f5f5f7;
  --k-surface: #ffffff;
  --k-surface-2: #fbfbfd;
  --k-text: #1d1d1f;
  --k-text-2: #6e6e73;
  --k-text-3: #86868b;
  --k-hairline: rgba(0, 0, 0, 0.1);
  --k-hairline-strong: rgba(0, 0, 0, 0.18);
  --k-fill: rgba(118, 118, 128, 0.12);
  --k-fill-strong: rgba(118, 118, 128, 0.2);
  --k-accent-text: #9a6400;       /* amber-toned text that reads on light */
  --k-accent-fill: rgba(249, 174, 12, 0.14);
  --k-focus: rgba(249, 174, 12, 0.55);
  --k-danger: #d70015;
  --k-danger-fill: rgba(215, 0, 21, 0.08);
  --k-success: #248a3d;
  --k-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
  --k-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.k-dark {
  --k-bg: #000000;
  --k-surface: #1c1c1e;
  --k-surface-2: #2c2c2e;
  --k-text: #f5f5f7;
  --k-text-2: #a1a1a6;
  --k-text-3: #8e8e93;
  --k-hairline: rgba(255, 255, 255, 0.12);
  --k-hairline-strong: rgba(255, 255, 255, 0.22);
  --k-fill: rgba(118, 118, 128, 0.24);
  --k-fill-strong: rgba(118, 118, 128, 0.36);
  --k-accent-text: #ffc240;
  --k-accent-fill: rgba(249, 174, 12, 0.16);
  --k-focus: rgba(249, 174, 12, 0.6);
  --k-danger: #ff6961;
  --k-danger-fill: rgba(255, 69, 58, 0.14);
  --k-success: #30d158;
  --k-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  --k-shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}
