/* ==========================================================================
   BUSIFY — DESIGN TOKENS
   Controlled claymorphism: soft dual-shadow + generous radius is reserved
   for a small set of "hero" surfaces (stat cards, primary buttons, quick
   actions, avatars, logo mark). Tables, lists and dense data stay flat.
   ========================================================================== */

:root {
  /* ---- Color: brand ---- */
  --color-primary: #2f6f5e;
  --color-primary-hover: #255a4c;
  --color-primary-active: #1e4a3f;
  --color-primary-subtle: #e6f2ee;
  --color-primary-subtle-strong: #cfe6dd;

  /* ---- Color: neutrals ---- */
  --color-bg: #f5f6f2;
  --color-surface: #ffffff;
  --color-surface-elevated: #ffffff;
  --color-border: #e4e2d8;
  --color-border-subtle: #edece4;

  --color-text-primary: #1f2420;
  --color-text-secondary: #5b6560;
  --color-text-muted: #8b948e;
  --color-text-on-primary: #f7faf8;

  /* ---- Color: status ---- */
  --color-success: #2f8f5b;
  --color-success-subtle: #e6f5ec;
  --color-warning: #b8791a;
  --color-warning-subtle: #fbf0dd;
  --color-danger: #c4483a;
  --color-danger-subtle: #fbe9e6;
  --color-info: #2f6fa3;
  --color-info-subtle: #e7f0f7;

  /* ---- Claymorphism shadow system (used sparingly, see components) ---- */
  --clay-shadow-raised:
    -6px -6px 14px rgba(255, 255, 255, 0.75),
    8px 10px 20px rgba(31, 36, 32, 0.10),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  --clay-shadow-pressed:
    inset 3px 3px 8px rgba(31, 36, 32, 0.08),
    inset -3px -3px 8px rgba(255, 255, 255, 0.6);
  --clay-shadow-button:
    -3px -3px 8px rgba(255, 255, 255, 0.18),
    5px 6px 14px rgba(19, 46, 38, 0.28);
  --clay-shadow-button-hover:
    -3px -3px 8px rgba(255, 255, 255, 0.2),
    3px 4px 10px rgba(19, 46, 38, 0.32);

  /* ---- Flat shadows for ordinary surfaces (cards, menus, modals) ---- */
  --shadow-xs: 0 1px 2px rgba(31, 36, 32, 0.06);
  --shadow-sm: 0 2px 6px rgba(31, 36, 32, 0.07);
  --shadow-md: 0 8px 24px rgba(31, 36, 32, 0.10);
  --shadow-lg: 0 16px 40px rgba(31, 36, 32, 0.14);

  /* ---- Radius ---- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-clay: 20px;
  --radius-full: 999px;

  /* ---- Spacing scale ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;

  /* ---- Typography ---- */
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;

  --text-display: 40px;
  --text-page-title: 26px;
  --text-section-title: 18px;
  --text-card-title: 15px;
  --text-body: 14px;
  --text-small: 13px;
  --text-caption: 12px;

  --line-tight: 1.2;
  --line-normal: 1.5;

  /* ---- Motion ---- */
  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 200ms;
  --duration-slow: 250ms;

  /* ---- Layout ---- */
  --sidebar-width: 248px;
  --sidebar-width-collapsed: 76px;
  --header-height: 64px;
  --content-max-width: 1360px;

  --z-header: 100;
  --z-sidebar: 90;
  --z-dropdown: 200;
  --z-modal-backdrop: 300;
  --z-modal: 310;
  --z-toast: 400;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-base: 0ms;
    --duration-slow: 0ms;
  }
}
