/* Customer Integration Observability Platform Styling */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;
  --bg-subtle: #f1f5f9;

  --text-primary: #0f172a;
  --text-muted: #475569;
  --text-subtle: #94a3b8;

  --border-default: #e2e8f0;
  --border-strong: #cbd5e1;

  --brand-fg: #5e6ad2;
  --brand-bg: #eef0fb;
  --brand-hover: #4a56c0;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1);

  --ring-focus: 0 0 0 3px rgba(94, 106, 210, 0.2);
}

/* Dark theme: remap the same tokens so custom-property consumers follow Tailwind. */
.dark {
  --bg-canvas: #020617;
  --bg-surface: #0f172a;
  --bg-elevated: #1e293b;
  --bg-subtle: #1e293b;

  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --border-default: #1e293b;
  --border-strong: #334155;

  --brand-fg: #7b85dc;
  --brand-bg: #1e1b4b;
  --brand-hover: #9aa2e6;

  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.45);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.55);

  --ring-focus: 0 0 0 3px rgba(123, 133, 220, 0.3);

  color-scheme: dark;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.15s ease, color 0.15s ease;
}

code, pre, .font-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.animate-pulse-slow {
  animation: pulseGlow 2s infinite ease-in-out;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 9999px;
}
