/* Base Variables CSS - Foundation for standardized design system */
:root {
  /* Color System */
  --color-primary: #38568a;    /* Steel Blue */
  --color-secondary: #b8a3ca;  /* Wisteria */
  --color-background: #ffffff; /* Pure White */
  --color-text: #1A365D;      /* Navy Blue */
  --color-border: #4A5568;    /* Slate Gray */

  /* Semantic Colors */
  --color-success: #2F855A;   /* Forest Green */
  --color-warning: #C05621;   /* Burnt Orange */
  --color-error: #C53030;     /* Ruby Red */

  /* UI Colors */
  --color-table-header: #E0F8FF;  /* Ice Blue */
  --color-table-stripe-even: #F7FAFC;  /* Ghost White */
  --color-table-stripe-odd: #E8EEF4; /* Light blue-gray */
  --color-selector-header: #CBD5E0; /* Cool Gray */
  --color-hover-light: #FEEBC8;    /* Peach */
  --color-disabled: #F3F4F6;       /* Light Gray */
  /* --color-disabled-text: #9CA3AF;  /* Medium Gray */
  --color-disabled-text: #A3B3C9;  /* Warmer blue-gray */

/* Colors related to forms.css */

  --color-accordion-hover: #8D9CB3;  /* Medium slate blue-gray */
  --color-choice-odd: #E2E8F0;  /* Soft blue-gray */
  --color-clicker: #808080;  /* Medium gray */

/* Warning Colors */
  --color-warning-light: #FEF2F2;  /* Pale pink-red */
  --color-warning-hover: #FEE2E2;  /* Darker pale pink-red */
  --content-warning-width: 648px; /* Lines up with non-unit sale button */
  --button-hover-go: #9B84B4;     /* Darker wisteria for contrast */

/* Sheet/Form Specific Sizes */
  --sheet-width: 800px;

/* Payments component Specific Sizes */
  --content-payment-width: 700px;

/* Sidebar Colors */
  --sidebar-bg: #ffffff;
  --sidebar-border: #CBD5E0;
  --sidebar-hover: #E2E8F0;
  --sidebar-active: #DBEAFE;
  --sidebar-input-bg: #EDF2F7;
  --sidebar-divider: #E2E8F0;

/* Alpha Colors */
  --color-overlay: rgba(0, 0, 0, 0.1);
  --color-hover-overlay: rgba(255, 255, 255, 0.5);

  /* Spacing Scale */
  --spacing-xxs: 0.15rem;    /* 2.4px */
  --spacing-xs: 0.25rem;     /* 4px */
  --spacing-sm: 0.5rem;      /* 8px */
  --spacing-md: 0.75rem;     /* 12px */
  --spacing-base: 1rem;      /* 16px */
  --spacing-lg: 1.5rem;      /* 24px */
  --spacing-xl: 2rem;        /* 32px */
  --spacing-xxl: 3rem;       /* 48px */

  /* Typography */
  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Font Sizes */
  --text-xxs: 0.625rem;    /* 10px - matches xx-small */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 0.95rem;    /* 15px - your current base */
  --text-md: 1rem;         /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-2xxl: 2rem;      /* 32px */
  --text-3xl: 3rem;        /* 48px - for main header */

  /* Line Heights */
  --leading-tight: 1.1;
  --leading-snug: 1.2;
  --leading-normal: 1.3;
  --leading-relaxed: 1.4;
  --leading-loose: 1.5;

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Border Radius */
  --radius-sm: 3px;
  --radius-base: 4px;
  --radius-lg: 6px;

  /* Border Widths */
  --border-thin: 1px;
  --border-normal: 2px;
  --border-thick: 4px;

  /* Shadows */
  --shadow-sm: 0 1px 2px var(--color-overlay);
  --shadow-base: 0 1px 3px var(--color-overlay);
  --shadow-lg: 0 2px 4px var(--color-overlay);

  /* Z-index Scale */
  --z-header: 1000;
  --z-nav: 999;
  --z-dropdown: 990;
  --z-modal: 1050;

  /* Input Sizes */
  --input-height: 2.75rem;
  --input-width-xs: 8ex;    /* For small inputs like numbers */
  --input-width-sm: 20ex;   /* For dates */
  --input-width-md: 25ex;   /* For emails, phones */
  --input-width-lg: 40ex;   /* For names */
  --input-width-xl: 53ex;   /* For addresses */

  /* Transitions */
  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
  --transition-slow: 0.4s;

  /* Layout Constraints */
  --content-max-width: 900px;
  --content-narrow-width: 600px;
  --content-wide-width: 1200px;
  --sidebar-width: 220px;
  --sidebar-spacing: 10px;
  --summary-width: 300px;

  /* Fixed Heights */
  --header-height: 2.5rem;
  --total-top-height: 2.5rem; /* header only */

  /* Table Properties */
  --table-cell-padding-y: var(--spacing-xs);
  --table-cell-padding-x: var(--spacing-md);
  --table-header-height: 2.5rem;

  /* Breakpoints -- reference values only.
     CSS var() cannot be used in @media queries (not supported by spec).
     Use hardcoded pixel values in media queries with a comment:
       @media (max-width: 768px) /* --breakpoint-md */
     When @custom-media (CSS Media Queries Level 5) ships in browsers,
     these can be replaced with named media queries. */
  --breakpoint-sm: 480px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1200px;
  --breakpoint-xl: 1500px;
}

/* Dark Mode Variables - Uncomment and customize if needed */
/*
@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #1a1a1a;
    --color-text: #ffffff;
    --color-border: #4a4a4a;
    ... add other dark mode variable overrides
  }
}
*/