/* ============================================================
   THEMES - CSS Custom Properties for Light/Dark Mode
   ============================================================ */

:root {
  /* --- Colors: Light Theme (default) --- */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  --bg-hover: #f1f3f5;
  --bg-active: #e2e6ea;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --bg-modal-overlay: rgba(0, 0, 0, 0.4);

  --text-primary: #212529;
  --text-secondary: #495057;
  --text-muted: #868e96;
  --text-inverse: #ffffff;

  --border-color: #dee2e6;
  --border-light: #e9ecef;
  --border-focus: #4c6ef5;

  --accent: #4c6ef5;
  --accent-hover: #3b5bdb;
  --accent-light: #dbe4ff;
  --accent-text: #ffffff;

  --success: #37b24d;
  --success-light: #d3f9d8;
  --warning: #f59f00;
  --warning-light: #fff3bf;
  --danger: #f03e3e;
  --danger-light: #ffe3e3;
  --info: #1c7ed6;
  --info-light: #d0ebff;

  /* Status colors */
  --status-draft: #868e96;
  --status-draft-bg: #f1f3f5;
  --status-sent: #1c7ed6;
  --status-sent-bg: #d0ebff;
  --status-approved: #37b24d;
  --status-approved-bg: #d3f9d8;
  --status-declined: #f03e3e;
  --status-declined-bg: #ffe3e3;

  /* --- Typography --- */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.8125rem;
  --font-size-base: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --line-height: 1.5;

  /* --- Spacing --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* --- Borders & Radius --- */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --border-width: 1px;

  /* --- Shadows --- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.16);

  /* --- Transitions --- */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* --- Layout --- */
  --sidebar-width: 240px;
  --header-height: 56px;
  --footer-height: 72px;
  --max-content-width: 1280px;
}

/* --- Dark Theme --- */
[data-theme="dark"] {
  --bg-primary: #1a1b1e;
  --bg-secondary: #25262b;
  --bg-tertiary: #2c2e33;
  --bg-hover: #2c2e33;
  --bg-active: #373A40;
  --bg-card: #25262b;
  --bg-input: #2c2e33;
  --bg-modal-overlay: rgba(0, 0, 0, 0.6);

  --text-primary: #e9ecef;
  --text-secondary: #adb5bd;
  --text-muted: #868e96;
  --text-inverse: #1a1b1e;

  --border-color: #373A40;
  --border-light: #2c2e33;
  --border-focus: #5c7cfa;

  --accent: #5c7cfa;
  --accent-hover: #748ffc;
  --accent-light: #25262b;
  --accent-text: #ffffff;

  --success: #40c057;
  --success-light: #2b3a2e;
  --warning: #fab005;
  --warning-light: #3a3524;
  --danger: #fa5252;
  --danger-light: #3a2525;
  --info: #339af0;
  --info-light: #253040;

  --status-draft: #868e96;
  --status-draft-bg: #2c2e33;
  --status-sent: #339af0;
  --status-sent-bg: #253040;
  --status-approved: #40c057;
  --status-approved-bg: #2b3a2e;
  --status-declined: #fa5252;
  --status-declined-bg: #3a2525;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.5);
}
