/* =============================================================
 * Admin Hub — neutral identity tokens (Phase 1 redesign)
 *
 * Loaded AFTER design-tokens.css so these `--adm-*` names sit
 * alongside the legacy `--brand-*`/`--bg-*` Myra tokens without
 * colliding. Heavy pages still consume the legacy palette while
 * Phase 1 surfaces (dashboard, services, audit_log, login,
 * setup) consume `--adm-*` and feel different — warm gray, not
 * Myra purple-pink.
 *
 * Phase 2 migrates the heavy pages over. Phase 3 deprecates
 * design-tokens.css. Until then the two layers coexist.
 * ============================================================= */

:root {
  /* Surfaces — warm gray (not Myra cream) */
  --adm-bg: #F7F6F4;
  --adm-surface: #FFFFFF;
  --adm-surface-elevated: #FFFFFF;
  --adm-surface-sunken: #F0EEEA;
  --adm-border: #E3E0DA;
  --adm-border-strong: #C9C5BD;

  /* Text */
  --adm-text-primary: #1A1917;
  --adm-text-secondary: #5C5A52;
  --adm-text-muted: #8E8A80;

  /* Restrained brand — for accent only (link, primary CTA).
     Slightly desaturated from Myra primary so it doesn't dominate
     the neutral admin chrome. */
  --adm-accent: #5B4FE8;
  --adm-accent-hover: #4A3FD0;
  --adm-accent-soft: rgba(91, 79, 232, 0.08);

  /* Status — semantic, not product */
  --adm-success: #16A34A;
  --adm-warning: #D97706;
  --adm-error: #DC2626;
  --adm-info: var(--adm-accent);

  /* Product accent colors (badges, sidebar dots only — never as
     dominant surfaces). Each product gets a recognizable hue so
     a glance at the sidebar tells you which product owns a row. */
  --adm-product-myra: #7C3AED;
  --adm-product-partners: #059669;
  --adm-product-partners-tr: #B08555;
  --adm-product-sadakio: #D97706;
  /* Agentios — Demir's media agency brand (automation/websites/services).
     22-partner affiliate program. Deep blue keeps it distinct from
     Partners-TR tan (real-estate platform on partnersturkiye.com)
     and from Myra purple. */
  --adm-product-agentios: #1E3A8A;

  /* Danger zone (Build editor, destructive actions) */
  --adm-danger: #DC2626;
  --adm-danger-bg: #FEF2F2;
  --adm-danger-border: #FCA5A5;

  /* Spacing scale — 4px grid, named separately from --space-*
     so the admin scale can evolve without touching Myra-shared
     legacy variables. */
  --adm-space-1: 4px;
  --adm-space-2: 8px;
  --adm-space-3: 12px;
  --adm-space-4: 16px;
  --adm-space-5: 20px;
  --adm-space-6: 24px;
  --adm-space-8: 32px;
  --adm-space-10: 40px;
  --adm-space-12: 48px;
  --adm-space-16: 64px;

  /* Radius */
  --adm-radius-sm: 6px;
  --adm-radius-md: 10px;
  --adm-radius-lg: 14px;
  --adm-radius-xl: 20px;

  /* Shadows — neutral, not the warm-purple tint of design-tokens */
  --adm-shadow-sm: 0 1px 2px rgba(26, 25, 23, 0.04);
  --adm-shadow-md: 0 2px 8px rgba(26, 25, 23, 0.06);
  --adm-shadow-lg: 0 8px 24px rgba(26, 25, 23, 0.08);

  /* Typography */
  --adm-font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --adm-font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  --adm-fs-xs: 12px;
  --adm-fs-sm: 13px;
  --adm-fs-base: 14px;
  --adm-fs-md: 16px;
  --adm-fs-lg: 18px;
  --adm-fs-xl: 22px;
  --adm-fs-2xl: 28px;
}

/* Dark mode placeholder — deferred to a later phase */
@media (prefers-color-scheme: dark) {
  :root {
    /* keep light for now */
  }
}

/* Body class applied by templates that have migrated to the new
   shell. Sets the warm-gray canvas + neutral text colors so the
   page reads as Admin Hub, not Myra. Pages without this class
   continue rendering against design-tokens.css unchanged. */
body.adm-app {
  background: var(--adm-bg);
  color: var(--adm-text-primary);
  font-family: var(--adm-font-sans);
  font-size: var(--adm-fs-base);
  line-height: 1.5;
}
