:root {
  --color-primary: #54893b;
  --color-primary-hover: #457231;
  --color-primary-light: rgba(84, 137, 59, 0.1);

  --color-success: #54893b;
  --color-warning: #f59e0b;
  --color-warning-hover: #d97706;
  --color-danger: #dc3545;
  --color-danger-hover: #bb2d3b;
  --color-info: #0891b2;

  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #dee2e6;
  --color-gray-400: #ced4da;
  --color-gray-500: #adb5bd;
  --color-gray-600: #6c757d;
  --color-gray-700: #495057;
  --color-gray-800: #343a40;
  --color-gray-900: #212529;

  --color-bg-page: #f5f6fa;
  --color-bg-card: #ffffff;
  --color-bg-form: #f8f9fa;
  --color-input-bg: #f3f3f5;
  --color-bg-sidebar: #54893b;
  --color-bg-overlay: rgba(0, 0, 0, 0.5);

  --color-sidebar-text: #ffffff;
  --color-sidebar-text-muted: rgba(255, 255, 255, 0.9);
  --color-sidebar-text-subtle: rgba(255, 255, 255, 0.9);
  --color-sidebar-border: rgba(255, 255, 255, 0.1);
  --color-sidebar-hover: rgba(255, 255, 255, 0.1);
  --color-sidebar-active: rgba(255, 255, 255, 0.2);
  --color-sidebar-danger: #fca5a5;
  --color-sidebar-danger-hover: #fecaca;
  --color-sidebar-focus-ring: rgba(255, 255, 255, 0.3);

  --color-text-primary: #495057;
  --color-text-secondary: #555b62;
  --color-text-heading: #343a40;
  --color-text-inverse: #ffffff;
  --color-text-link: #54893b;
  --color-text-link-hover: #457231;

  --color-primary-a8: rgba(84, 137, 59, 0.08);
  --color-primary-a12: rgba(84, 137, 59, 0.12);
  --color-primary-a16: rgba(84, 137, 59, 0.16);
  --color-primary-a25: rgba(84, 137, 59, 0.25);
  --color-primary-a40: rgba(84, 137, 59, 0.40);
  --color-primary-a50: rgba(84, 137, 59, 0.50);

  --color-danger-a8: rgba(220, 53, 69, 0.08);
  --color-danger-a14: rgba(220, 53, 69, 0.14);
  --color-danger-a20: rgba(220, 53, 69, 0.20);
  --color-danger-a25: rgba(220, 53, 69, 0.25);

  --color-action: #2563eb;
  --color-action-hover: #1d4ed8;
  --color-action-subtle: rgba(37, 99, 235, 0.08);
  --color-action-danger: #dc2626;
  --color-action-danger-hover: #b91c1c;
  --color-action-danger-subtle: rgba(220, 38, 38, 0.08);

  --color-status-success-bg: #d1e7dd;
  --color-status-success-text: #0f5132;
  --color-status-warning-bg: #fff3cd;
  --color-status-warning-text: #664d03;
  --color-status-danger-bg: #f8d7da;
  --color-status-danger-text: #842029;
  --color-status-info-bg: #cff4fc;
  --color-status-info-text: #055160;

  --color-surface-2: #fafaf7;
  --color-green-tint: #f3f8f1;
  --color-amber-tint: #fdf9ed;
  --color-blue-soft: #e3eef5;
  --color-blue-tint: #f1f6fa;
  --color-red-soft: #fae0dd;

  --font-family-base: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-family-mono: 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 0.9375rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.25;
  --line-height-base: 1.5;
  --line-height-relaxed: 1.75;

  --heading-1: 2rem;
  --heading-2: 1.5rem;
  --heading-3: 1.375rem;
  --heading-4: var(--font-size-lg);
  --heading-5: var(--font-size-base);
  --heading-6: var(--font-size-sm);

  --spacing-0: 0;
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
  --spacing-12: 3rem;

  --radius-none: 0;
  --radius-sm: 0.25rem;
  --radius-base: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-inner: inset 0 1px 1px rgba(0, 0, 0, 0.075);

  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-sidebar: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-overlay: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;

  --sidebar-width: 256px;
  --sidebar-width-mobile: 288px;
  --sidebar-width-collapsed: 64px;
  --header-height: 56px;
  --mobile-nav-height: 56px;
  --container-max-width: 1200px;
  --breadcrumb-bar-height: 56px;

  --sidebar-icon-size: 20px;
  --sidebar-brand-icon-size: 28px;
  --sidebar-item-min-height: 34px;
  --sidebar-item-min-height-mobile: 44px; /* WCAG touch target minimum */
  --sidebar-popover-min-width: 160px;
  --sidebar-footer-icon-size: 14px;

  --focus-ring-color: rgba(84, 137, 59, 0.25);
  --focus-ring-width: 0.2rem;
  --focus-ring: 0 0 0 var(--focus-ring-width) var(--focus-ring-color);
}
