/* ==========================================================
   El Pony Pisador — Design tokens (Notion-inspired)
   Variables unificadas para app principal, admin y login.
   ========================================================== */

:root {
  color-scheme: light;

  /* Backgrounds */
  --bg: #fbfbfa;
  --surface: #ffffff;
  --surface-hover: #f7f6f3;
  --surface-pressed: #f1f1ef;
  --sidebar-bg: #f7f6f3;

  /* Text */
  --text: #37352f;
  --text-strong: #000000;
  --muted: #6b6b6b;
  --muted-light: #9ca3af;

  /* Borders */
  --border: rgba(55, 53, 47, 0.16);
  --border-strong: rgba(55, 53, 47, 0.25);
  --border-hover: rgba(55, 53, 47, 0.32);
  --divider: rgba(55, 53, 47, 0.08);

  /* Accent */
  --accent: #2eaadc;
  --accent-hover: #2584a8;
  --accent-soft: rgba(46, 170, 220, 0.12);
  --accent-contrast: #ffffff;

  /* Semantics */
  --danger: #e16259;
  --danger-soft: rgba(225, 98, 89, 0.12);
  --success: #4dab8a;
  --success-soft: rgba(77, 171, 138, 0.12);
  --warning: #fdcb6e;
  --warning-soft: rgba(253, 203, 110, 0.15);

  /* Shadows (muy sutiles) */
  --shadow: 0 1px 2px rgba(55, 53, 47, 0.04), 0 2px 6px rgba(55, 53, 47, 0.04);
  --shadow-md: 0 4px 12px rgba(55, 53, 47, 0.06);
  --shadow-lg: 0 12px 28px rgba(55, 53, 47, 0.10);

  /* Radius */
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  /* Focus */
  --focus: 0 0 0 2px rgba(46, 170, 220, 0.35);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;

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

  /* Layout */
  --sidebar-width: 320px;
  --header-height: 56px;
}

html[data-theme='dark'] {
  color-scheme: dark;

  --bg: #191919;
  --surface: #202020;
  --surface-hover: #252525;
  --surface-pressed: #2a2a2a;
  --sidebar-bg: #202020;

  --text: #d4d4d4;
  --text-strong: #ffffff;
  --muted: #999999;
  --muted-light: #6b6b6b;

  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-hover: rgba(255, 255, 255, 0.28);
  --divider: rgba(255, 255, 255, 0.06);

  --accent: #2eaadc;
  --accent-hover: #5fc5e8;
  --accent-soft: rgba(46, 170, 220, 0.16);
  --accent-contrast: #ffffff;

  --danger: #ff6b6b;
  --danger-soft: rgba(255, 107, 107, 0.14);
  --success: #5ee2b7;
  --success-soft: rgba(94, 226, 183, 0.14);
  --warning: #fdcb6e;
  --warning-soft: rgba(253, 203, 110, 0.18);

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.20), 0 2px 6px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.35);

  --focus: 0 0 0 2px rgba(46, 170, 220, 0.40);
}
