/* Lab Creation Wizard — matches landing dark theme */

:root {
  --wiz-bg: #0f1419;
  --wiz-surface: #1a2332;
  --wiz-border: #2d3a4d;
  --wiz-text: #e6edf3;
  --wiz-muted: #8b949e;
  --wiz-accent: #58a6ff;
  --wiz-accent-hover: #79b8ff;
  --wiz-success: #3fb950;
}

* { box-sizing: border-box; }

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

.wizard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--wiz-border);
  background: var(--wiz-surface);
}

.wizard-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wizard-back {
  color: var(--wiz-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

.wizard-back:hover { color: var(--wiz-accent); }

.wizard-logo {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.wizard-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.wizard-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.wizard-hero h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wizard-hero p {
  margin: 0;
  color: var(--wiz-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.wizard-progress {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 2rem;
}

.wizard-progress-seg {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--wiz-border);
  transition: background 0.25s;
}

.wizard-progress-seg.done { background: var(--wiz-success); }
.wizard-progress-seg.active { background: var(--wiz-accent); }

.wizard-step-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wiz-muted);
  margin-bottom: 0.5rem;
}

.wizard-step-title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.wizard-step-desc {
  margin: 0 0 1.5rem;
  color: var(--wiz-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.wizard-panel {
  background: var(--wiz-surface);
  border: 1px solid var(--wiz-border);
  border-radius: 12px;
  padding: 1.5rem;
}

.wizard-panel[hidden] { display: none !important; }

.wizard-field {
  margin-bottom: 1.25rem;
}

.wizard-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.wizard-field .hint {
  font-size: 0.8125rem;
  color: var(--wiz-muted);
  margin-top: 0.35rem;
}

.wizard-input,
.wizard-textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-size: 0.9375rem;
  font-family: inherit;
  background: var(--wiz-bg);
  border: 1px solid var(--wiz-border);
  border-radius: 8px;
  color: var(--wiz-text);
}

.wizard-input:focus,
.wizard-textarea:focus {
  outline: none;
  border-color: var(--wiz-accent);
}

.wizard-textarea { min-height: 100px; resize: vertical; }

.wizard-examples {
  font-size: 0.8125rem;
  color: var(--wiz-muted);
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: rgba(88, 166, 255, 0.06);
  border-radius: 8px;
  border-left: 3px solid var(--wiz-accent);
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.type-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: var(--wiz-bg);
  border: 2px solid var(--wiz-border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: left;
}

.type-card:hover {
  border-color: var(--wiz-accent);
}

.type-card.selected {
  border-color: var(--wiz-accent);
  background: rgba(88, 166, 255, 0.1);
}

.type-card input { display: none; }

.type-card-icon { font-size: 1.5rem; margin-bottom: 0.35rem; }

.type-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.type-card-desc {
  font-size: 0.8125rem;
  color: var(--wiz-muted);
  line-height: 1.4;
}

.overlay-list,
.domain-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.overlay-row,
.domain-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem;
  background: var(--wiz-bg);
  border: 1px solid var(--wiz-border);
  border-radius: 8px;
  cursor: pointer;
}

.overlay-row:hover,
.domain-row:hover { border-color: var(--wiz-accent); }

.overlay-row input,
.domain-row input { margin-top: 0.15rem; accent-color: var(--wiz-accent); }

.overlay-row span,
.domain-row span { flex: 1; }

.overlay-row small,
.domain-row small {
  display: block;
  color: var(--wiz-muted);
  font-size: 0.8125rem;
  margin-top: 0.15rem;
}

.adaptive-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--wiz-border);
}

.adaptive-section[hidden] { display: none !important; }

.toggle-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.toggle-row input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--wiz-accent);
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  gap: 1rem;
}

.wizard-error {
  color: #f85149;
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

.wizard-summary {
  font-size: 0.875rem;
  line-height: 1.6;
}

.wizard-summary dt {
  color: var(--wiz-muted);
  font-weight: 500;
  margin-top: 0.75rem;
}

.wizard-summary dd {
  margin: 0.15rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--wiz-accent);
  color: #0d1117;
  border-color: var(--wiz-accent);
}

.btn-primary:hover { background: var(--wiz-accent-hover); }

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: var(--wiz-muted);
  border-color: var(--wiz-border);
}

.btn-ghost:hover {
  color: var(--wiz-text);
  border-color: var(--wiz-accent);
}

@media (max-width: 560px) {
  .type-grid { grid-template-columns: 1fr; }
  .wizard-main { padding: 1.25rem 1rem 3rem; }
}
