/* Base CSS - CSS Variables, Reset, and Typography */

:root {
  /* Color System */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --primary-contrast: #ffffff;
  
  --secondary: #0ea5e9;
  --secondary-dark: #0284c7;
  --secondary-light: #e0f2fe;
  
  --accent: #f43f5e;
  --accent-dark: #e11d48;
  --accent-light: #ffe4e6;
  
  --success: #10b981;
  --success-dark: #059669;
  --success-light: #d1fae5;
  
  --warning: #f59e0b;
  --warning-dark: #d97706;
  --warning-light: #fef3c7;
  
  --error: #ef4444;
  --error-dark: #dc2626;
  --error-light: #fee2e2;
  
  --info: #6366f1;
  --info-dark: #4f46e5;
  --info-light: #e0e7ff;
  
  
  /* Font Families */
  --font-mono: 'Courier New', monospace;

  /* Text Colors */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;
  --text-inverted: #ffffff;
  
  /* Background Colors */
  --background: #f8fafc;
  --background-alt: #f1f5f9;
  --background-hover: rgba(0, 0, 0, 0.02);
  --card-background: #ffffff;
  --sidebar-background: #ffffff;
  --divider: #e2e8f0;
  
  /* Spacing System (in px) */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;
  
  /* Shadows - simplified to 3 variants */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  /* Layout */
  --sidebar-width: 240px;
  --header-height: 64px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
}

/* CSS Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base Typography */
body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

/* Font utilities */
.font-mono {
  font-family: var(--font-mono);
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.font-normal {
  font-weight: 400;
}