:root {
  /* Colors - Dark theme by default */
  --color-primary: #4caf50;
  --color-primary-dark: #388e3c;
  --color-primary-light: rgba(76, 175, 80, 0.1);
  --color-danger: #f44336;
  --color-warning: #ff9800;
  --color-info: #2196f3;
  --color-error: #f44336;
  --color-error-dark: #d32f2f;
  --color-error-light: rgba(244, 67, 54, 0.1);

  --color-bg: #121212;
  --color-background: #121212;
  --color-surface: #1e1e1e;
  --color-surface-elevated: #2c2c2c;

  --color-text: #e0e0e0;
  --color-text-secondary: #a0a0a0;
  --color-text-disabled: #666666;

  --color-border: #333333;
  --color-divider: #2c2c2c;

  --color-gasto: #f44336;
  --color-ingreso: #4caf50;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-size-xxs: 0.5rem;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-xxl: 1.5rem;
  --font-size-xxxl: 2rem;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Z-index */
  --z-header: 100;
  --z-modal: 1000;
  --z-toast: 2000;
}

/* Light theme override */
[data-theme="light"] {
  --color-bg: #ffffff;
  --color-background: #ffffff;
  --color-surface: #f5f5f5;
  --color-surface-elevated: #ffffff;
  --color-primary-light: rgba(76, 175, 80, 0.15);
  --color-error-light: rgba(244, 67, 54, 0.15);

  --color-text: #212121;
  --color-text-secondary: #666666;
  --color-text-disabled: #9e9e9e;

  --color-border: #e0e0e0;
  --color-divider: #eeeeee;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.2);
}
