/**
 * SDA Platform - Design Tokens
 * Single source of truth for colors, spacing, typography, and other design tokens.
 * Updated to match landing page modern style.
 */

/* Color Palette - aligned with landing page */
:root {
  /* Primary Colors - modern grays and blues like landing */
  --color1: #4a5568; /* Dark gray */
  --color2: #3182ce; /* Blue */
  --color3: #63b3ed; /* Light blue */
  --color4: #68d391; /* Green */

  /* Semantic Colors */
  --success: #27ae60;
  --warning: #f39c12;
  --error: #e74c3c;
  --info: #3498db;

  /* Neutral Colors */
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --text-muted: #bdc3c7;
  --text-inverse: #ecf0f1;

  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  --bg-inverse: #2c3e50;

  --border: #dee2e6;
  --border-light: #f8f9fa;

  /* Interactive States */
  --hover: rgba(49, 130, 206, 0.1);
  --focus: rgba(49, 130, 206, 0.2);
  --active: rgba(49, 130, 206, 0.3);
}

/* Dark theme (consistent with landing page) */
[data-bs-theme='dark'] {
  /* Lightened colors for dark backgrounds */
  --color1: #718096;
  --color2: #4299e1;
  --color3: #9de9ff;
  --color4: #48bb78;

  --text-primary: #f1f3f4;
  --text-secondary: #bdc3c7;
  --text-muted: #7f8c8d;
  --text-inverse: #2c3e50;

  --bg-primary: #1e2125;
  --bg-secondary: #25272c;
  --bg-tertiary: transparent;

  --border: rgba(255, 255, 255, 0.2);
  --border-light: #34495e;
}

/* Spacing Scale - unchanged */
:root {
  --space-xs: 0.25rem; /* 4px */
  --space-sm: 0.5rem;  /* 8px */
  --space-md: 0.75rem; /* 12px */
  --space-lg: 1rem;    /* 16px */
  --space-xl: 1.25rem; /* 20px */
  --space-2xl: 1.5rem; /* 24px */
  --space-3xl: 2rem;   /* 32px */
  --space-4xl: 3rem;   /* 48px */
  --space-5xl: 4rem;   /* 64px */
  --space-6xl: 6rem;   /* 96px */
}

/* Typography - updated to Inter like landing */
:root {
  --font-family-base: 'Inter', sans-serif;
  --font-family-mono: 'SF Mono', Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

  --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.25rem; /* 20px */
  --font-size-2xl: 1.5rem; /* 24px */
  --font-size-3xl: 2rem; /* 32px */
  --font-size-4xl: 2.5rem; /* 40px */

  --font-weight-light: 300;
  --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.75;

  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
}

/* Borders - made more rounded like landing */
:root {
  --border-radius: 8px; /* Increased from 4px */
  --border-radius-sm: 4px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;

  --border-width: 1px;
  --border-width-lg: 2px;
}

/* Shadows - aligned with landing */
:root {
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 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.07), 0 1px 3px rgba(0, 0, 0, 0.1);
  --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.1), 0 10px 10px rgba(0, 0, 0, 0.04);
}

/* Animations & Transitions */
:root {
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;

  --animation-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --animation-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Z-index scale */
:root {
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
}

/* Breakpoints */
:root {
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;

  /* Container widths */
  --container-sm: 540px;
  --container-md: 720px;
  --container-lg: 960px;
  --container-xl: 1140px;
}

/* Grid system */
:root {
  --grid-columns: 12;
  --grid-gutter: 1.5rem;
}
/* Body styles - modern like landing */
.adi-body {
  font-family: var(--font-family-base);
  line-height: 1.6;
  font-weight: 400;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}
