/* ===========================
   AlertHub — Design System
   =========================== */

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-raised: #fafbfc;
  --surface-inset: #f0f1f3;
  --border: #e0e3e8;
  --border-strong: #cdd1d9;
  --text: #1a1d23;
  --text-secondary: #3d4350;
  --muted: #7c8291;

  --brand: #2f5ae0;
  --brand-600: #2349c0;
  --brand-soft: #eef2fd;

  --header-bg: #ffffff;
  --header-text: #1a1d23;
  --header-muted: #7c8291;

  --critical: #d93036;
  --critical-soft: #fef0f0;
  --critical-mid: #fcd8d8;

  --high: #c47a0a;
  --high-soft: #fef8ec;
  --high-mid: #fbecc8;

  --normal: #2f5ae0;
  --normal-soft: #eef2fd;
  --normal-mid: #d6e0fa;

  --low: #7c8291;
  --low-soft: #f4f5f7;
  --low-mid: #e4e6ea;

  --success: #1a8a62;
  --success-soft: #edfcf5;

  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --transition-fast: 120ms ease;
}

/* ===========================
   Reset
   =========================== */

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
}

/* ===========================
   Components
   =========================== */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.btn,
.btn-primary-inline {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  min-height: 38px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn:hover {
  background: var(--surface-raised);
  border-color: var(--border-strong);
}

.btn:active,
.btn-primary-inline:active {
  transform: scale(0.97);
}

.btn:focus-visible,
.btn-primary-inline:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.btn-primary-inline {
  border: 0;
  background: var(--brand);
  color: #fff;
}

.btn-primary-inline:hover {
  background: var(--brand-600);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

h2, h3 {
  margin: 0 0 6px 0;
  color: var(--text);
  font-weight: 700;
}

h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }

.muted {
  color: var(--muted);
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
}
