@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --text-primary: #111111;
  --text-secondary: #6b6b6b;
  --border: #e5e5e5;
  --border-strong: #d4d4d4;
  --accent: #111111;
  --accent-hover: #2a2a2a;
  --accent-light: #f5f5f5;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Legacy aliases (backwards compat met bestaande templates) */
  --primair: #111111;
  --card-bg: #ffffff;
  --text: #111111;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 15px;
}

/* ─── LAYOUT ──────────────────────────────────────────────── */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.container.narrow {
  max-width: 480px;
}

.container.center { text-align: center; max-width: 480px; }

/* ─── TYPOGRAFIE ──────────────────────────────────────────── */

h1 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); letter-spacing: -0.02em; }
h2 { font-size: 1.4rem; font-weight: 600; margin-bottom: 16px; color: var(--text-primary); }
h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 12px; color: var(--text-primary); }
.subtitle { color: var(--text-secondary); margin-bottom: 32px; font-size: 1rem; }

/* ─── NAVIGATIE ───────────────────────────────────────────── */

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topnav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.topnav-logo span { font-weight: 400; }

.topnav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
}

.topnav-right a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.topnav-right a:hover { color: var(--text-primary); }

.topnav-credits {
  background: var(--accent-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.topnav-credits.low { background: #fff1f1; border-color: #fca5a5; color: var(--error); }

/* Oud .nav (backwards compat) */
.nav { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 28px; }
.nav a { color: var(--text-primary); text-decoration: none; font-weight: 500; }
.nav a:hover { text-decoration: underline; }

/* ─── FOOTER ──────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 80px;
}

/* ─── CARDS ───────────────────────────────────────────────── */

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card-sm {
  padding: 20px 24px;
}

.card-link { text-decoration: none; color: inherit; }
.choice-card { cursor: pointer; transition: border-color 0.2s; }
.choice-card:hover { border-color: var(--accent); }

/* ─── KNOPPEN ─────────────────────────────────────────────── */

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  font-family: inherit;
  letter-spacing: -0.01em;
}

.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { background: #999; cursor: not-allowed; }

.btn-secondary {
  display: inline-block;
  background: var(--bg);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  font-family: inherit;
}

.btn-secondary:hover { background: var(--accent-light); }

.btn-danger {
  display: inline-block;
  background: var(--error);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

/* ─── FORMULIEREN ─────────────────────────────────────────── */

label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--text-primary);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text-primary);
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

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

input[type="file"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg-subtle);
}

input[type="color"] {
  width: 60px;
  height: 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 2px;
}

.form-panel {
  margin-top: 24px;
  padding: 24px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.form-section { margin-bottom: 28px; }
.hidden { display: none; }

/* ─── MELDINGEN ───────────────────────────────────────────── */

.error {
  background: #fff5f5;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--error);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 12px 16px;
  color: #15803d;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.info-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

/* ─── TABEL ───────────────────────────────────────────────── */

.job-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.job-table th, .job-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.job-table th {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-subtle);
}

.job-table tr:last-child td { border-bottom: none; }
.job-table a { color: var(--text-primary); text-decoration: none; font-weight: 500; }
.job-table a:hover { text-decoration: underline; }
.job-table tbody tr:hover { background: var(--bg-subtle); }

/* ─── BADGES ──────────────────────────────────────────────── */

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-queued           { background: #fef9c3; color: #854d0e; }
.badge-running          { background: #dbeafe; color: #1e40af; }
.badge-awaiting_review  { background: #fef3c7; color: #92400e; white-space: nowrap; }
.badge-done             { background: #dcfce7; color: #166534; }
.badge-failed           { background: #fee2e2; color: #991b1b; }

/* ─── PROGRESS ────────────────────────────────────────────── */

.progress-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.progress-bar-track {
  background: var(--accent-light);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
}

.progress-inner {
  height: 8px;
  background: var(--accent);
  border-radius: 4px;
  animation: progress-pulse 2s infinite;
}

@keyframes progress-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.progress-label { margin-top: 12px; color: var(--text-secondary); font-size: 0.9rem; }

/* ─── GRID ────────────────────────────────────────────────── */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 720px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ─── HOMEPAGE ────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 80px 24px 64px;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 12px;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.steps-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.steps-section h2 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  color: var(--text-primary);
}

.step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.home-cta-section {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 24px;
  text-align: center;
}

.home-cta-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.home-cta-section p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 1rem;
}

/* ─── AUTH PAGINA'S ───────────────────────────────────────── */

.auth-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg-subtle);
}

.auth-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.auth-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.auth-logo span { font-weight: 400; }

.auth-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.auth-card .auth-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.auth-footer a { color: var(--text-primary); font-weight: 500; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* ─── CREDITS BANNER ──────────────────────────────────────── */

.credits-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.credits-banner .credits-count {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.credits-banner.low {
  background: #fff5f5;
  border-color: #fca5a5;
}

.credits-banner.low .credits-count { color: var(--error); }

/* ─── KLEUR-PREVIEW (onboarding) ──────────────────────────── */

.color-preview {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.swatch {
  width: 100px;
  height: 80px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* ─── MISC ────────────────────────────────────────────────── */

.small { font-size: 0.85rem; color: var(--text-secondary); margin-top: 8px; }
code { background: var(--accent-light); padding: 2px 6px; border-radius: 4px; font-size: 0.85rem; font-family: monospace; }

a { color: var(--text-primary); }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* Spacing helpers */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* ─── KLEUR-INPUT MET HEX-VELD ────────────────────────────── */

.color-input-group {
  margin-bottom: 4px;
}

.color-input-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.color-input-row input[type="color"] {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.color-input-row input[type="text"] {
  width: 130px;
  flex: 0 0 auto;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.label-hint {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 3px;
  margin-bottom: 0;
}

/* ─── CARD SECTION HEADER ─────────────────────────────────── */

.card-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.card + .card { margin-top: 0; }
.mb-0  { margin-bottom: 0; }

/* ─── SESSIE 13: NEXT LEVEL UI ────────────────────────────── */

/* Trust badge boven hero headline */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #15803d;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

/* Trust strip op homepage */
.trust-strip {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.trust-icon {
  width: 28px;
  height: 28px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Horizontale stappen progress (upload) */
.upload-steps {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  padding: 16px 24px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  gap: 0;
}

.upload-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.upload-step-num {
  width: 26px;
  height: 26px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.upload-step-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.upload-step-connector {
  width: 24px;
  height: 2px;
  background: var(--border-strong);
  flex-shrink: 0;
  margin: 0 8px;
}

@media (max-width: 640px) {
  .upload-steps { display: none; }
}

/* Drag-drop zone foto upload */
.dropzone-wrap {
  position: relative;
}

.dropzone-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border-strong);
  border-radius: 12px;
  padding: 32px 24px;
  background: var(--bg-subtle);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
  gap: 8px;
}

.dropzone-label:hover,
.dropzone-label.drag-over {
  border-color: var(--accent);
  background: var(--accent-light);
}

.dropzone-icon {
  font-size: 2rem;
  line-height: 1;
  display: block;
}

.dropzone-main {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.dropzone-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.dropzone-label input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  background: transparent;
}

.dropzone-filename {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #15803d;
  font-weight: 600;
  min-height: 20px;
}

/* Credits visuele indicator */
.credit-stat {
  display: flex;
  align-items: center;
  gap: 16px;
}

.credit-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  line-height: 1;
}

.credit-number.low { color: var(--error); }

.credit-bar-wrap {
  flex: 1;
  max-width: 160px;
}

.credit-bar-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.credit-bar-track {
  height: 6px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.credit-bar-fill {
  height: 6px;
  border-radius: 4px;
  background: var(--accent);
  transition: width 0.4s ease;
}

.credit-bar-fill.low { background: var(--error); }

/* Dashboard credits-banner uitbreiden */
.credits-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  gap: 16px;
}

/* 2×4 foto-grid (job detail) */
.foto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.foto-grid-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.foto-grid-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.foto-grid-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.foto-num-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

/* Download CTA block (job detail) */
.download-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 24px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 12px;
  margin-bottom: 20px;
}

.download-cta-info {
  flex: 1;
}

.download-cta-title {
  font-weight: 700;
  font-size: 1rem;
  color: #15803d;
  margin-bottom: 2px;
}

.download-cta-sub {
  font-size: 0.82rem;
  color: #15803d;
  opacity: 0.8;
}

/* Home feature pills */
.feature-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 32px;
}

.feature-pill {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}
