/* Design tokens, reset, base typography and form controls. */

/* All app colors are defined here as custom properties; the rest of the CSS
   references them via var(). Change a color once, here. */
:root {
  color-scheme: light;

  /* Surfaces & neutrals */
  --bg: #f7f8fb;
  --panel: #ffffff;
  --text: #172033;
  --muted: #647086;
  --border: #d9dee8;

  /* Brand / accent (blue) */
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: #e7efff;
  --logo-teal: #01a5af;
  --logo-blue: #072c67;

  /* Status / action colors */
  --danger: #b42318;
  --success: #059669;
  --success-strong: #047857;
  --restart: #dc2626;
  --restart-strong: #b91c1c;

  /* Focus rings */
  --focus-success: rgba(5, 150, 105, 0.28);
  --focus-restart: rgba(220, 38, 38, 0.28);

  /* Component-specific surfaces */
  --dropzone-border: #8ea0bd;
  --th-bg: #f2f5fa;
  --progress-track-bg: #e5edf6;
  --progress-track-border: #b8c5d6;
  --progress-card-border: rgba(1, 165, 175, 0.45);

  /* Shadows */
  --shadow-soft: rgba(15, 23, 42, 0.12);
  --shadow-medium: rgba(15, 23, 42, 0.16);
  --shadow-strong: rgba(15, 23, 42, 0.2);

  /* Plot (D3) — read by plotting.js via getComputedStyle */
  --djf-g1: #95c1dc;
  --djf-s: #d5eec8;
  --djf-g2: #ef8b8d;
  --djf-total: #111827;
  --threshold: #9ca3af;
  --threshold-label: #6b7280;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--bg);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: 1.7rem;
  line-height: 1.2;
}

h2 {
  margin-bottom: 10px;
  font-size: 1rem;
}

input[type="file"] {
  width: 100%;
  margin-top: 16px;
}

button,
select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
}

button {
  cursor: pointer;
  background: var(--accent);
  color: var(--panel);
  border-color: var(--accent);
  font-weight: 650;
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 650;
}

.visually-hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
