/**
 * Soil Test Widget - CSS Custom Properties
 * Defines all design system tokens as CSS variables
 * Source: DESIGN_SYSTEM.md
 */

:root {
  /* ============================================
   * PRIMARY COLORS
   * ============================================ */
  --primary: #4CAF50;
  --primary-hover: #43A047;
  --primary-light: #E8F5E9;

  /* ============================================
   * HEADER/NAVIGATION
   * ============================================ */
  --header-bg: #1a2234;
  --header-text: #ffffff;
  --nav-hover: #2d3748;

  /* ============================================
   * BACKGROUNDS
   * ============================================ */
  --bg-page: #f5f7fa;
  --bg-card: #ffffff;
  --bg-input: #ffffff;

  /* ============================================
   * TEXT COLORS
   * ============================================ */
  --text-primary: #1a202c;
  --text-secondary: #718096;
  --text-muted: #a0aec0;

  /* ============================================
   * BORDERS
   * ============================================ */
  --border-light: #e2e8f0;
  --border-input: #cbd5e0;

  /* ============================================
   * STATUS COLORS
   * ============================================ */
  /* Active */
  --status-active: #4CAF50;
  --status-active-bg: #E8F5E9;

  /* Connected */
  --status-connected: #2196F3;
  --status-connected-bg: #E3F2FD;

  /* Complete */
  --status-complete: #4CAF50;
  --status-complete-bg: #E8F5E9;

  /* Received */
  --status-received: #607D8B;
  --status-received-bg: #ECEFF1;

  /* Paid */
  --status-paid: #FFC107;
  --status-paid-bg: #FFF8E1;

  /* Pending */
  --status-pending: #FF9800;
  --status-pending-bg: #FFF3E0;

  /* Error */
  --status-error: #F44336;
  --status-error-bg: #FFEBEE;

  /* Inactive */
  --status-inactive: #9E9E9E;
  --status-inactive-bg: #F5F5F5;

  /* ============================================
   * SHADOWS
   * ============================================ */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

  /* ============================================
   * SPACING SCALE
   * ============================================ */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;

  /* ============================================
   * TYPOGRAPHY
   * ============================================ */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;

  /* Font Sizes */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.5rem;     /* 24px */
  --font-size-2xl: 2rem;      /* 32px */

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

  /* ============================================
   * BORDER RADIUS
   * ============================================ */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-full: 9999px;

  /* ============================================
   * Z-INDEX LAYERS
   * ============================================ */
  --z-dropdown: 100;
  --z-modal: 1000;
  --z-tooltip: 1100;

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

  /* ============================================
   * COMPONENT DIMENSIONS
   * ============================================ */
  --header-height: 56px;
  --sidebar-width: 240px;
  --content-max-width: 1200px;
  --form-max-width: 560px;
}
