/* ==========================================================================
   OpenPad — Material 3 Expressive × VS Code Light+ / Dark+ Design Tokens
   ========================================================================== */

:root,
[data-theme="light"] {
  color-scheme: light;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Display", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, "Courier New", monospace;

  /* Pure White Material 3 Surfaces */
  --page-bg: #f6f8fc;
  --surface: #ffffff;
  --surface-container: #f1f4f9;
  --surface-container-high: #e8edf5;
  --text: #111827;
  --muted: #525d70;
  --border: rgba(15, 23, 42, 0.11);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 14px 36px -12px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.04);

  --accent: #2563eb;
  --accent-2: #4f46e5;
  --accent-soft: #e0ecff;
  --accent-text: #1d4ed8;
  --success: #059669;
  --danger: #dc2626;

  /* VS Code Light+ Editor Chrome & Syntax Tokens */
  --editor-bg: #ffffff;
  --editor-gutter-bg: #f8fafc;
  --editor-gutter-text: #8b95a5;
  --editor-text: #1f2328;
  --editor-caret: #2563eb;
  --editor-active-line: rgba(37, 99, 235, 0.06);
  --editor-selection: rgba(37, 99, 235, 0.20);
  --status-bg: #f1f4f9;
  --status-text: #475569;

  --tok-comment: #008000;
  --tok-string: #a31515;
  --tok-keyword: #0000ff;
  --tok-control: #af00db;
  --tok-function: #795e26;
  --tok-type: #267f99;
  --tok-number: #098658;
  --tok-property: #001080;
  --tok-tag: #800000;
  --tok-attr: #e50000;
  --tok-heading: #0000ff;
  --tok-bold: #000080;
  --tok-link: #0451a5;
  --tok-code: #a31515;
}

[data-theme="dark"] {
  color-scheme: dark;
  /* Material 3 Dark × VS Code Dark+ */
  --page-bg: #111318;
  --surface: #1e1e1e;
  --surface-container: #252526;
  --surface-container-high: #2d2d30;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: rgba(255, 255, 255, 0.10);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 18px 44px -14px rgba(0, 0, 0, 0.65);

  --accent: #60a5fa;
  --accent-2: #818cf8;
  --accent-soft: rgba(96, 165, 250, 0.18);
  --accent-text: #bfdbfe;
  --success: #34d399;
  --danger: #f87171;

  /* Authentic VS Code Dark+ Syntax Tokens */
  --editor-bg: #1e1e1e;
  --editor-gutter-bg: #1b1b1c;
  --editor-gutter-text: #6e7681;
  --editor-text: #d4d4d4;
  --editor-caret: #aeafad;
  --editor-active-line: rgba(255, 255, 255, 0.05);
  --editor-selection: rgba(38, 79, 120, 0.72);
  --status-bg: #007acc;
  --status-text: #ffffff;

  --tok-comment: #6a9955;
  --tok-string: #ce9178;
  --tok-keyword: #569cd6;
  --tok-control: #c586c0;
  --tok-function: #dcdcaa;
  --tok-type: #4ec9b0;
  --tok-number: #b5cea8;
  --tok-property: #9cdcfe;
  --tok-tag: #569cd6;
  --tok-attr: #9cdcfe;
  --tok-heading: #569cd6;
  --tok-bold: #dcdcaa;
  --tok-link: #4ec9b0;
  --tok-code: #ce9178;
}
