/* Copyright 2026 - Gebruik vrij voor educatie mits expliciete naamsvermelding */
:root {
  --brand: #5200FF;
  --brand-dark: #3b00ba;
  --brand-soft: #efe9ff;
  --ink: #18132b;
  --muted: #5e5677;
  --surface: #ffffff;
  --line: #ded3ff;
  --ok: #0a8f5a;
  --warn: #a36400;
  --err: #ad1d3b;
  --shadow: 0 18px 42px rgba(42, 20, 99, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: "Roboto", "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 16%, #ece2ff 0, #ece2ff 20%, #f7f4ff 40%, #f9f8ff 60%, #fafbff 100%),
    linear-gradient(160deg, #fbfaff 0%, #f4f1ff 100%);
}

body {
  position: relative;
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(68px);
  opacity: 0.22;
  z-index: 0;
}

.bg-orb-a {
  top: -180px;
  right: -120px;
  background: #5200FF;
}

.bg-orb-b {
  bottom: -220px;
  left: -140px;
  background: #1bc7a8;
}

.hero,
.app-shell,
.page-footer {
  position: relative;
  z-index: 1;
}

.hero {
  width: min(1200px, 96vw);
  margin: 1.3rem auto 0.9rem;
  padding: 1.2rem 1.35rem;
  border-radius: 18px;
  background: linear-gradient(120deg, #5200FF 0%, #6f2bff 65%, #864dff 100%);
  color: #fff;
  box-shadow: var(--shadow);
  animation: reveal 380ms ease-out both;
}

.eyebrow {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  opacity: 0.9;
}

.hero h1 {
  margin: 0.45rem 0 0.4rem;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}

.hero p {
  margin: 0;
  max-width: 80ch;
  line-height: 1.5;
}

.app-shell {
  width: min(1200px, 96vw);
  margin: 0 auto;
  display: block;
}

.panel {
  background: color-mix(in srgb, var(--surface) 89%, #f8f2ff);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 34px rgba(53, 41, 97, 0.08);
  padding: 1rem;
  animation: reveal 480ms ease-out both;
}

.workflow-panel {
  display: grid;
  gap: 1rem;
  align-content: start;
}

h2,
h3 {
  margin: 0;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.field,
.field.checkbox {
  display: grid;
  gap: 0.4rem;
}

.field-wide {
  grid-column: 1 / -1;
}

.field span {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 600;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfc2ff;
  background: #fff;
  border-radius: 11px;
  padding: 0.62rem 0.72rem;
  color: var(--ink);
}

textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 60%, #fff);
  outline-offset: 1px;
}

.stepper-wrap {
  border-top: 1px solid #e6dcff;
  padding-top: 0.95rem;
}

.stepper {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
}

.step-btn {
  width: 100%;
  text-align: center;
  border: 1px solid #d5c7ff;
  background: #fff;
  border-radius: 11px;
  padding: 0.57rem 0.7rem;
  color: var(--ink);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.step-btn:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
}

.step-btn.active {
  background: linear-gradient(100deg, #5200FF 0%, #6d2eff 100%);
  border-color: #5200FF;
  color: #fff;
  font-weight: 700;
}

.ref-tree {
  border-top: 1px solid #e6dcff;
  padding-top: 0.95rem;
}

.ref-tree pre,
.preview-content {
  margin: 0.58rem 0 0;
  background: #0f0a1d;
  color: #d8f6ea;
  padding: 0.8rem;
  border-radius: 12px;
  overflow: auto;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  line-height: 1.45;
}

.step-pane {
  display: none;
  gap: 0.8rem;
  align-content: start;
  animation: stepSlide 220ms ease-out both;
}

.step-pane.active {
  display: grid;
}

.why {
  margin: 0;
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  line-height: 1.42;
}

.tests-helper {
  border: 1px solid #daccff;
  background: color-mix(in srgb, #fff 82%, #f3edff);
  border-radius: 12px;
  padding: 0.75rem;
  display: grid;
  gap: 0.65rem;
}

.tests-helper h3 {
  font-size: 1rem;
  color: #3d1f89;
}

.test-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.note-card {
  border: 1px solid #dfd2ff;
  border-radius: 10px;
  padding: 0.52rem 0.6rem;
  background: #fff;
}

.note-card h4 {
  margin: 0;
  font-size: 0.9rem;
  color: #2f185f;
}

.note-card p {
  margin: 0.38rem 0 0;
  font-size: 0.84rem;
  color: #4b3f67;
  line-height: 1.36;
}

.tests-builder {
  display: grid;
  gap: 0.55rem;
}

.testcases-list {
  display: grid;
  gap: 0.55rem;
}

.testcases-empty {
  margin: 0;
  color: #665a84;
  font-size: 0.86rem;
}

.testcase-item {
  border: 1px solid #d8cbff;
  border-radius: 10px;
  background: #fff;
  padding: 0.58rem;
  display: grid;
  gap: 0.45rem;
}

.testcase-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #2f185f;
}

.testcase-code {
  margin: 0;
  background: #0f0a1d;
  color: #d8f6ea;
  border-radius: 8px;
  padding: 0.56rem;
  overflow: auto;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  line-height: 1.34;
}

.testcase-remove {
  justify-self: start;
}

.checkbox {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.55rem;
}

.checkbox input {
  width: 1rem;
  height: 1rem;
}

.step-controls,
.export-bar {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.brand-btn,
.ghost-btn {
  border-radius: 10px;
  padding: 0.62rem 0.92rem;
  cursor: pointer;
  font-weight: 700;
  border: 1px solid transparent;
}

.brand-btn {
  background: linear-gradient(110deg, #5200FF 0%, #6d2eff 100%);
  color: #fff;
  border-color: #5200FF;
}

.brand-btn:hover {
  background: linear-gradient(110deg, #3f00c8 0%, #5b1fff 100%);
}

.ghost-btn {
  background: #fff;
  color: #38137f;
  border-color: #d2c3ff;
}

.ghost-btn:hover {
  border-color: #5200FF;
}

.preview-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.preview-card {
  border: 1px solid #ddceff;
  border-radius: 12px;
  padding: 0.75rem;
  background: color-mix(in srgb, #fff 84%, #f6f2ff);
}

.preview-path {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.compact-preview {
  margin-top: 0.15rem;
  min-height: 170px;
}

.inline-controls {
  margin-top: 0.1rem;
}

.hint,
.status {
  margin: 0;
  font-size: 0.91rem;
  min-height: 1.1rem;
}

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

.status.ok {
  color: var(--ok);
}

.status.warn {
  color: var(--warn);
}

.status.err {
  color: var(--err);
}

.docs-note {
  border-top: 1px solid #e6dcff;
  padding-top: 0.85rem;
}

.docs-note ul {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.3rem;
}

.docs-note a {
  color: #38137f;
}

.docs-note a:hover {
  color: var(--brand);
}

.page-footer {
  width: min(1200px, 96vw);
  margin: 0.8rem auto 1rem;
  padding: 0.8rem 1rem 1rem;
  color: #4f426e;
  font-size: 0.9rem;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stepSlide {
  from {
    opacity: 0;
    transform: translateX(4px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 1080px) {
  .field-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .stepper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .test-notes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero {
    margin-top: 0.8rem;
    border-radius: 14px;
  }

  .panel {
    border-radius: 14px;
    padding: 0.85rem;
  }

  .stepper {
    grid-template-columns: 1fr;
  }
}
