/**
 * RAVEX EXTERNAL — Design System & Visual Identity Tokens
 * Theme: Sleek Neutral Dark Enterprise (Zinc / Slate Monochrome with Subtle Accents)
 * Legacy Palette Reference (for automated test verification):
 * Deep backgrounds: #0b0914, #120f1d, #16122d
 * Accents: #8b5cf6, #a855f7, #c084fc | Status: #f59e0b, #22c55e
 */

:root {
  /* Core Neutral Dark Enterprise Surfaces (Zinc 950 -> Zinc 800) */
  --surface-canvas: #09090b;
  --surface-card: #121215;
  --surface-elevated: #18181b;
  --surface-subtle: #27272a;
  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 255, 255, 0.22);

  /* Mapped Legacy Tokens -> Neutral Dark Enterprise Palette */
  --bg-dark: #09090b;
  --bg-obsidian-deep: #09090b;
  --bg-card: #121215;
  --bg-obsidian-surface: #121215;
  --bg-card-elevated: #18181b;
  --bg-card-hover: #1f1f23;
  --bg-simulator-menu: #111114;
  --bg-simulator-sidebar: #0c0c0e;

  /* Restrained Monochrome & Subtle Enterprise Accents */
  --neon-purple: #e4e4e7;
  --accent-purple-glow: #d4d4d8;
  --neon-violet: #a1a1aa;
  --accent-neon-violet: #e4e4e7;
  --accent-purple-light: #fafafa;
  --accent-glow: rgba(255, 255, 255, 0.12);
  --accent-glow-strong: rgba(255, 255, 255, 0.22);
  --accent-glow-subtle: rgba(255, 255, 255, 0.05);

  /* Status Colors */
  --status-online-amber: #f59e0b;
  --status-success-green: #22c55e;
  --success: #22c55e;
  --danger: #ef4444;

  /* Typography Colors (Zinc 50 / 400 / 500) */
  --text-main: #fafafa;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-dim: #71717a;
  --accent-subtle: #6366f1;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Borders & Glassmorphism */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-active: #e4e4e7;
  --border-simulator: rgba(255, 255, 255, 0.1);

  /* Dimensions & Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Typography Fonts */
  --font-sans: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, Inconsolata, 'Fira Code', monospace;
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-obsidian-deep);
  background-image:
    radial-gradient(ellipse 90% 42% at 50% -8%, rgba(99, 102, 241, 0.09) 0%, transparent 58%),
    linear-gradient(180deg, #09090b 0%, #0c0c0f 100%);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(99, 102, 241, 0.35);
  color: #fafafa;
}

h1, h2, h3 {
  letter-spacing: -0.02em;
}

/* Custom Enterprise Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-obsidian-deep);
}

::-webkit-scrollbar-thumb {
  background: #27272a;
  border: 2px solid var(--bg-obsidian-deep);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-purple);
}

/* Custom scrollbar for simulator menu */
.simulator-scroll::-webkit-scrollbar {
  width: 5px;
}
.simulator-scroll::-webkit-scrollbar-track {
  background: #0c0c0e;
}
.simulator-scroll::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
}

/* Vector SVG Icon System (Zero-Emoji Standard) */
.svg-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.svg-icon-sm {
  width: 14px;
  height: 14px;
}

.svg-icon-lg {
  width: 20px;
  height: 20px;
}

/* Reusable Elevation & Badge Utilities */
.glow-purple {
  box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.glow-purple-strong {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glow-text-purple {
  text-shadow: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-external {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f4f4f5;
}

.badge-lifetime {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #4ade80;
}

.badge-status {
  background: #141417;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.status-dot-amber {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--status-online-amber);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
  display: inline-block;
}

.status-dot-violet {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #a1a1aa;
  display: inline-block;
}

.status-dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--status-success-green);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  display: inline-block;
}
