/**
 * Design Tokens - Licensing Management System V5
 * Constitution v2.9 Compliant
 *
 * Migrated from V4 with standardized naming.
 */

:root {
  /* ============================================
     COLORS
     ============================================ */

  /* Brand Colors */
  --color-primary: #2C5282;
  --color-primary-hover: #1A365D;
  --color-primary-light: #3182CE;
  --color-secondary: #4A5568;

  /* Semantic Colors */
  --color-success: #38A169;
  --color-success-hover: #2F855A;
  --color-warning: #D69E2E;
  --color-warning-hover: #B7791F;
  --color-error: #E53E3E;
  --color-error-hover: #C53030;
  --color-info: #3182CE;
  --color-info-hover: #2B6CB0;

  /* Surface Colors */
  --color-background: #F7FAFC;
  --color-surface: #FFFFFF;
  --color-surface-variant: #EDF2F7;
  --color-sidebar: #1A365D;
  --color-sidebar-hover: #2C5282;

  /* Text Colors */
  --color-text-primary: #2D3748;
  --color-text-secondary: #4A5568;
  --color-text-tertiary: #718096;
  --color-text-muted: #A0AEC0;
  --color-text-inverse: #FFFFFF;

  /* Grays */
  --gray-50: #F7FAFC;
  --gray-100: #EDF2F7;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E0;
  --gray-400: #A0AEC0;
  --gray-500: #718096;
  --gray-600: #4A5568;
  --gray-700: #2D3748;
  --gray-800: #1A202C;
  --gray-900: #171923;

  /* Border Colors */
  --color-border: #E2E8F0;
  --color-border-strong: #CBD5E0;
  --color-divider: #EDF2F7;

  /* Focus */
  --color-focus: #3182CE;
  --color-focus-ring: rgba(49, 130, 206, 0.3);

  /* ============================================
     SPACING
     ============================================ */

  --spacing-0: 0;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;

  /* ============================================
     TYPOGRAPHY
     ============================================ */

  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
                 'Segoe UI', Roboto, sans-serif;
  --font-family-mono: 'Monaco', 'Consolas', monospace;

  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 28px;

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

  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;

  /* ============================================
     BORDERS
     ============================================ */

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --border-width: 1px;
  --border-width-2: 2px;

  /* ============================================
     SHADOWS
     ============================================ */

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

  /* ============================================
     Z-INDEX
     ============================================ */

  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-toast: 800;
  --z-sidebar: 1000;

  /* ============================================
     TRANSITIONS
     ============================================ */

  --transition-fast: 150ms ease-in-out;
  --transition-normal: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;

  /* ============================================
     LAYOUT
     ============================================ */

  --header-height: 64px;
  --sidebar-width: 260px;
  --sidebar-collapsed: 70px;
}
