/**
 * Design Tokens - Dark Theme (Platform-Admin style)
 *
 * Usage:
 *   Import this file in your app's main CSS:
 *   @import '@your-project/ui/styles';
 *
 *   Or in your Tailwind config:
 *   import tokens from '@your-project/ui/styles/tokens.css';
 */

:root {
  /* Background colors */
  --background: #000000;
  --background-secondary: #0a0a0a;
  --foreground: #ffffff;

  /* Surface colors (translucent white overlays) */
  --surface-50: rgba(255, 255, 255, 0.02);
  --surface-100: rgba(255, 255, 255, 0.05);
  --surface-200: rgba(255, 255, 255, 0.08);
  --surface-300: rgba(255, 255, 255, 0.12);
  --surface-400: rgba(255, 255, 255, 0.16);
  --surface-500: rgba(255, 255, 255, 0.24);
  --surface-600: rgba(255, 255, 255, 0.32);
  --surface-700: rgba(255, 255, 255, 0.48);
  --surface-800: rgba(255, 255, 255, 0.64);
  --surface-900: rgba(255, 255, 255, 0.80);

  /* Border colors */
  --border: rgba(255, 255, 255, 0.1);
  --border-muted: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.2);
  --border-focus: rgba(59, 130, 246, 0.5);

  /* Text colors */
  --text-primary: rgba(255, 255, 255, 1);
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-disabled: rgba(255, 255, 255, 0.3);

  /* Accent colors */
  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --accent-foreground: #ffffff;

  /* Status colors */
  --success: rgba(34, 197, 94, 0.8);
  --success-bg: rgba(34, 197, 94, 0.15);
  --success-border: rgba(34, 197, 94, 0.3);

  --warning: rgba(234, 179, 8, 0.8);
  --warning-bg: rgba(234, 179, 8, 0.15);
  --warning-border: rgba(234, 179, 8, 0.3);

  --error: rgba(239, 68, 68, 0.8);
  --error-bg: rgba(239, 68, 68, 0.15);
  --error-border: rgba(239, 68, 68, 0.3);

  --info: rgba(59, 130, 246, 0.8);
  --info-bg: rgba(59, 130, 246, 0.15);
  --info-border: rgba(59, 130, 246, 0.3);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Monaco, monospace;

  /* Font sizes */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */

  /* Line heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

  /* Spacing */
  --space-1: 0.25rem;      /* 4px */
  --space-2: 0.5rem;       /* 8px */
  --space-3: 0.75rem;      /* 12px */
  --space-4: 1rem;         /* 16px */
  --space-5: 1.25rem;      /* 20px */
  --space-6: 1.5rem;       /* 24px */
  --space-8: 2rem;         /* 32px */
  --space-10: 2.5rem;      /* 40px */
  --space-12: 3rem;        /* 48px */
  --space-16: 4rem;        /* 64px */

  /* Border radius */
  --radius-sm: 0.25rem;    /* 4px */
  --radius-md: 0.375rem;   /* 6px */
  --radius-lg: 0.5rem;     /* 8px */
  --radius-xl: 0.75rem;    /* 12px */
  --radius-2xl: 1rem;      /* 16px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.4);

  /* Transitions */
  --transition-fast: 100ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 300ms ease;

  /* Z-index scale */
  --z-dropdown: 50;
  --z-sticky: 100;
  --z-modal: 200;
  --z-popover: 300;
  --z-tooltip: 400;
  --z-toast: 500;
}

/* Base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code, pre, kbd, samp {
  font-family: var(--font-mono);
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Scrollbar styling (for webkit browsers) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--surface-50);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-300);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--surface-400);
}

/* Selection styling */
::selection {
  background: var(--accent);
  color: var(--accent-foreground);
}
