/*!
 * ============================================================================
 * Copyright (c) 2025 ATH SOLUTIONS (PTY) LTD. All rights reserved.
 * KwaZulu-Natal, Republic of South Africa.
 * ============================================================================
 *
 * @BEGIN Developer Log Header Block
 * @FILENAME: design-tokens.css
 * @TITLE: waATHon - Design Tokens
 * @DESCRIPTION: CSS custom properties defining the full design system token set. All component stylesheets must reference these tokens exclusively - no hardcoded hex values, magic numbers, or bare pixel values.
 * @AUTHOR: Ary van der Pijl
 * @COMPANY: ATH SOLUTIONS (PTY) LTD
 * @WEBSITE: https://www.ath.solutions/
 * @EMAIL: info@ath.solutions
 * @COPYRIGHT: All Rights Reserved
 * @LICENSE: ATH SOLUTIONS - PROPRIETARY SOFTWARE LICENCE AGREEMENT (https://www.ath.solutions/documents/ath_solutions_software_licence_agreement.pdf)
 *
 * BEGIN CHANGELOG
 * @IMPORTANT NOTICE: Developers working on these files MUST update and maintain the Developers Change Log, failure to do is not an option:
 * !==================================================================================================================================================================
 * VERSION 1.0.8
 * - File Modified | Ary van der Pijl | 2026-09-06 | waATHon-033 | Repointed --color-primary/-primary-hover/-primary-dark/-primary-light and
 *   --color-accent/-accent-hover/-accent-light back onto --color-teal-* /--color-coral-* - the 2026-07-30 Dashtreme reskin (v1.0.7 below) had
 *   moved these to stock Bootstrap blue/cyan (#0d6efd/#0dcaf0), which silently undid the waATHon rebrand across every .btn-primary, link,
 *   active nav state, and the sidebar/auth brand wordmark's own accent letter. Also repointed --module-tile-bg-blue (dashboard "Contacts"
 *   shortcut tile) from raw Bootstrap blue to a teal tint, matching its --module-tile-bg-coral/-green siblings - found during a full
 *   UX/design-system audit |
 * VERSION 1.0.7
 * - File Modified | Ary van der Pijl | 2026-07-30 | waATHon-024 | Dashtreme wholesale reskin: repointed --color-* /--sidebar-* /--header-* /--auth-* values to Dashtreme's translucent-glass-over-gradient system (--color-bg is now the fixed teal gradient, --color-primary/-accent moved to stock Bootstrap blue/cyan); removed the [data-theme=dark] and all seven [data-skin=...] blocks entirely - waATHon no longer offers independent theme switching. --stat-hero-grad-* /module-tile-* /--color-teal-* //--color-coral-* names and values kept untouched as a deliberate brand accent on dashboard KPI tiles and the auth crest |
 * VERSION 1.0.6
 * - File Modified | Ary van der Pijl | 2026-07-29 | waATHon-022 | Dashtreme template migration: added --stat-hero-grad-* tokens for the dashboard's
 *   gradient KPI hero cards |
 * VERSION 1.0.5
 * - File Modified | Ary van der Pijl | 2026-07-29 | waATHon-015 | Rebrand: repointed --color-teal-* / --color-coral-* scale values to the waATHon
 *   green (#25D366) / cyan (#00C2FF) hues on midnight/panel (#0D1B2A/#162232) surfaces; swapped --font-sans/--font-display to Inter/Rajdhani.
 *   Variable and CSS class names (teal/coral) retained unchanged to avoid a codebase-wide rename - only the colour values moved |
 * VERSION 1.0.4
 * - File Modified | Ary van der Pijl | 2026-07-20 | waATHon-009 | Rebrand: replaced --color-navy-* / --color-gold-* scales with --color-teal-* /--color-coral-* * (oklch), renamed [data-skin="navy"] to [data-skin="teal"], added --color-primary-gradient and --font-display (Space Grotesk), switched --font-sans to * Plus Jakarta Sans, warmed --color-bg, rounded --radius-md/lg/xl, renamed --shadow-glow-gold to --shadow-glow-primary | 
 * VERSION 1.0.3 * - File Modified | Ary van der Pijl | 2026-07-13 | waATHon-006 | Renamed --auth-lodge-color to --auth-brand-color and the [data-skin="lodge"] skin to * [data-skin="navy"] (matches the ocean/forest/rose/etc. colour-named skin convention) | * VERSION 1.0.2 * - File Modified | Ary van der Pijl | 2026-06-16 | waATHon-COMPLIANCE-001 | Applied ATH Solutions 2026 standards: updated header to use
/*! format per G-17 |
 * VERSION 1.0.1
 * - File Modified | Ary van der Pijl | 2026-06-16 | DS-001 | Replace generic indigo primary with ATH WAMP navy/gold brand palette; add extended brand colour scale; add auth layout tokens |
 * - File Created | Ary van der Pijl | 2026-05-01 | waATHon-001 | Initial file |
 * ==================================================================================================================================================================!
 * END CHANGELOG
 */

:root {
  /* ── Brand Colours (waATHon green/cyan, hues repointed onto the teal/coral scale) ─ */
  --color-teal-900: oklch(20% 0.05 152);
  --color-teal-800: oklch(28% 0.08 152);
  --color-teal-700: oklch(48% 0.15 152);
  /* Primary brand - waATHon Green */
  --color-teal-600: oklch(58% 0.18 150);
  --color-teal-500: oklch(68% 0.17 148);
  --color-teal-400: oklch(76% 0.14 148);
  --color-teal-300: oklch(83% 0.10 148);
  --color-teal-200: oklch(90% 0.06 148);
  --color-teal-100: oklch(95% 0.03 148);
  --color-teal-50: oklch(98% 0.015 148);

  --color-coral-900: oklch(26% 0.08 226);
  --color-coral-800: oklch(36% 0.11 226);
  --color-coral-700: oklch(52% 0.14 228);
  /* Primary accent - waATHon Cyan */
  --color-coral-600: oklch(62% 0.15 228);
  --color-coral-500: oklch(72% 0.15 226);
  --color-coral-400: oklch(78% 0.13 224);
  --color-coral-300: oklch(85% 0.10 222);
  --color-coral-200: oklch(91% 0.06 220);
  --color-coral-100: oklch(95% 0.03 220);
  --color-coral-50: oklch(98% 0.015 220);

  /* ── Primary Brand Aliases (repointed back onto the waATHon teal/coral scale -
     the 2026-07-30 Dashtreme reskin had moved these to stock Bootstrap blue/cyan,
     undoing the rebrand across every button/link/active-nav-state/logo-accent in
     the app; restored so --color-primary/-accent match --color-teal-600/coral-500) */
  --color-primary: var(--color-teal-600);
  --color-primary-hover: var(--color-teal-700);
  --color-primary-dark: var(--color-teal-800);
  --color-primary-light: oklch(58% 0.18 150 / 0.15);
  --color-primary-text: #ffffff;
  --color-primary-gradient: linear-gradient(135deg, var(--color-teal-600), var(--color-coral-500));

  --color-accent: var(--color-coral-500);
  --color-accent-hover: var(--color-coral-600);
  --color-accent-light: oklch(72% 0.15 226 / 0.15);
  --color-accent-text: #052c33;

  /* ── Neutral Scale ────────────────────────────────────────────────────────── */
  --color-neutral-900: #0f172a;
  --color-neutral-800: #1e293b;
  --color-neutral-700: #334155;
  --color-neutral-600: #475569;
  --color-neutral-500: #64748b;
  --color-neutral-400: #94a3b8;
  --color-neutral-300: #cbd5e1;
  --color-neutral-200: #e2e8f0;
  --color-neutral-100: #f1f5f9;
  --color-neutral-50: #f8fafc;

  /* ── Backgrounds (Dashtreme glass-over-gradient: no fixed solid page bg -
     --color-bg IS the fixed viewport gradient, glass surfaces float on top) ── */
  --color-bg: linear-gradient(45deg, #0c675e, #069e90);
  --color-surface: rgb(0 0 0 / 0.20);
  --color-surface-2: rgb(0 0 0 / 0.15);

  /* ── Glass Surface Blur (applied to structural panels only - header, sidebar,
     cards, auth card, table wrapper, toasts - not hover/active micro-states,
     since backdrop-filter is expensive to repaint on every interaction) ───── */
  --glass-blur: blur(14px);
  --glass-border: 1px solid rgb(255 255 255 / 0.12);

  /* ── Borders ──────────────────────────────────────────────────────────────── */
  --color-border: rgb(255 255 255 / 0.15);
  --color-border-light: rgb(255 255 255 / 0.10);

  /* ── Text ─────────────────────────────────────────────────────────────────── */
  --color-text: rgb(255 255 255 / 0.92);
  --color-text-muted: rgb(255 255 255 / 0.70);
  --color-text-subtle: rgb(255 255 255 / 0.50);

  /* ── Semantic Status ─────────────────────────────────────────────────────── */
  --color-success: #198754;
  --color-success-bg: rgb(25 135 84 / 0.15);
  --color-warning: #ffc107;
  --color-warning-bg: rgb(255 193 7 / 0.15);
  --color-danger: #dc3545;
  --color-danger-bg: rgb(220 53 69 / 0.15);
  --color-info: #0dcaf0;
  --color-info-bg: rgb(13 202 240 / 0.15);

  /* ── Sidebar (Dashtreme glass shell - flat primary highlight, not the brand
     gradient; the gradient stays reserved for KPI hero tiles / auth crest) ─── */
  --sidebar-bg: rgb(0 0 0 / 0.20);
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
  --sidebar-text: rgb(255 255 255 / 0.70);
  --sidebar-text-hover: #ffffff;
  --sidebar-hover-bg: rgb(255 255 255 / 0.08);
  --sidebar-active-bg: var(--color-primary);
  --sidebar-active-text: #ffffff;
  --sidebar-active-border: var(--color-primary);
  --sidebar-border: rgb(255 255 255 / 0.15);

  /* ── Header ───────────────────────────────────────────────────────────────── */
  --header-height: 64px;
  --header-bg: rgb(0 0 0 / 0.20);
  --header-border: var(--color-border);

  /* ── Auth Layout (glass card on the same fixed gradient; crest keeps the
     brand gradient as a deliberate logo-mark accent) ──────────────────────── */
  --auth-page-bg: transparent;
  --auth-card-bg: rgb(0 0 0 / 0.20);
  --auth-card-radius: 20px;
  --auth-card-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  --auth-crest-size: 80px;
  --auth-crest-bg: var(--color-primary-gradient);
  --auth-crest-border: transparent;
  --auth-brand-color: #ffffff;
  --auth-sub-color: rgb(255 255 255 / 0.55);
  --auth-footer-color: rgb(255 255 255 / 0.60);
  --auth-footer-link: var(--color-primary-hover);

  /* ── Dashboard Stat Cards ─────────────────────────────────────────────────── */
  --stat-teal-bg: oklch(68% 0.17 148 / 0.14);
  --stat-teal-color: var(--color-teal-700);
  --stat-coral-bg: oklch(72% 0.15 226 / 0.16);
  --stat-coral-color: var(--color-coral-700);
  --stat-red-bg: rgba(220, 38, 38, 0.08);
  --stat-red-color: var(--color-danger);
  --stat-green-bg: rgba(22, 163, 74, 0.08);
  --stat-green-color: var(--color-success);
  --stat-blue-bg: rgba(2, 132, 199, 0.08);
  --stat-blue-color: var(--color-info);
  --stat-amber-bg: rgba(217, 119, 6, 0.08);
  --stat-amber-color: var(--color-warning);

  /* ── Dashboard Hero Stat Cards (Dashtreme-style gradient KPI tiles) ──────── */
  --stat-hero-grad-teal: linear-gradient(135deg, var(--color-teal-700), var(--color-teal-500));
  --stat-hero-grad-coral: linear-gradient(135deg, var(--color-coral-700), var(--color-coral-500));
  --stat-hero-grad-navy: linear-gradient(135deg, #0D1B2A, var(--color-teal-800));
  --stat-hero-grad-green: linear-gradient(135deg, #15803d, var(--color-success));

  /* ── Module Shortcut Tiles ────────────────────────────────────────────────── */
  --module-tile-bg: oklch(48% 0.15 152 / 0.08);
  --module-tile-bg-coral: oklch(52% 0.14 228 / 0.09);
  --module-tile-bg-green: rgba(25, 135, 84, 0.05);
  --module-tile-bg-blue: oklch(68% 0.17 148 / 0.08);
  --module-tile-disabled-opacity: 0.45;

  /* ── Shadows (dark-glass appropriate - stronger than a light-theme shadow
     scale so cards still read as elevated against the fixed gradient) ─────── */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.20);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.40);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.50);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.55);
  --shadow-glow-primary: 0 0 0 3px rgb(13 110 253 / 0.35);

  /* ── Radii ────────────────────────────────────────────────────────────────── */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* ── Spacing (4px base grid) ─────────────────────────────────────────────── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* ── Typography ──────────────────────────────────────────────────────────── */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Rajdhani', var(--font-sans);
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 15px;
  --text-lg: 16px;
  --text-xl: 18px;
  --text-2xl: 20px;
  --text-3xl: 24px;
  --text-4xl: 30px;

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --lh-tight: 1.25;
  --lh-normal: 1.5;
  --lh-loose: 1.75;

  /* ── Transitions ─────────────────────────────────────────────────────────── */
  --transition-fast: 100ms ease;
  --transition-base: 150ms ease;
  --transition-slow: 250ms ease;

  /* ── Z-index Scale ───────────────────────────────────────────────────────── */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1050;
  --z-toast: 1080;
  --z-tooltip: 1090;

  /* ── Breakpoints (reference - use in media queries, not var()) ───────────── */
  --bp-sm: 576px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  --bp-2xl: 1536px;
}

/* ── Reduced Motion ──────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}