/* ════════════════════════════════════════════════════════════
   batch.css — Batch-specifieke stijlen: layout, cards,
               drop zone, progress, samenvatting, resultaten,
               fouten box, rapport modal, noise blok (batch)
   ════════════════════════════════════════════════════════════ */

/* ── Batch badges ── */
.badge-groen  { background: var(--green-bg);  color: var(--green);  border: 1px solid #a7f3d0; }
.badge-oranje { background: var(--orange-bg); color: var(--orange); border: 1px solid #fde68a; }
.badge-rood   { background: var(--red-bg);    color: var(--red);    border: 1px solid #fca5a5; }
.badge-blauw  { background: var(--accent-bg); color: var(--accent); border: 1px solid #bfdbfe; }

/* ── Batch layout ── */
.wrap { max-width: 1100px; margin: 32px auto; padding: 0 24px; display: flex; flex-direction: column; gap: 24px; }

/* ── Cards (batch) ── */
.card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.card-header {
    padding: 16px 20px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.card-title { font-size: 14px; font-weight: 700; }
.card-subtitle { font-size: 11px; color: var(--muted); margin-top: 2px; }
.card-body { padding: 20px; }

/* ── Drop zone ── */
.drop-zone {
    border: 2px dashed var(--border2); border-radius: 8px; padding: 40px 20px;
    text-align: center; cursor: pointer; transition: all 0.2s; position: relative;
}
.drop-zone:hover, .drop-zone.over { border-color: var(--accent); background: var(--accent-bg); }
.drop-zone input[type=file] { display: none; }
.drop-icon { font-size: 32px; margin-bottom: 8px; }
.drop-tekst { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.drop-sub { font-size: 11px; color: var(--muted); }

/* ── Progress ── */
.progress-wrap {
    display: none; flex-direction: column; gap: 10px;
    margin-top: 16px; padding: 16px;
    background: var(--accent-bg); border: 1px solid #bfdbfe; border-radius: 8px;
}
.progress-wrap.actief { display: flex; }
.progress-header { display: flex; align-items: center; gap: 10px; }
/* Batch heeft een groter spinner */
.progress-wrap .spinner {
    width: 18px; height: 18px; border: 2px solid #bfdbfe;
    border-top-color: var(--accent); border-radius: 50%;
    animation: draaien 0.7s linear infinite; flex-shrink: 0;
}
@keyframes draaien { to { transform: rotate(360deg); } }
.progress-titel { font-size: 13px; font-weight: 700; color: var(--accent); }
.progress-bar-bg { height: 6px; border-radius: 3px; background: #bfdbfe; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 3px; background: var(--accent); transition: width 0.4s ease; width: 0%; }
.progress-bar-fill.pulseer { animation: pulseer 1.2s ease-in-out infinite; }
@keyframes pulseer { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.progress-stap { font-size: 11px; font-weight: 600; color: var(--accent); }
.progress-sub { font-size: 10px; color: var(--muted); min-height: 14px; }

/* ── Samenvatting (batch) ── */
.samenvatting { display: none; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.samenvatting.actief { display: grid; }
.sam-kaart { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 14px 18px; }
.sam-label { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.sam-waarde { font-size: 24px; font-weight: 700; color: var(--text); }
.sam-kaart.groen .sam-waarde { color: var(--green); }
.sam-kaart.oranje .sam-waarde { color: var(--orange); }
.sam-kaart.rood   .sam-waarde { color: var(--red); }

/* ── Resultaten (batch) ── */
.resultaten-card { display: none; }
.resultaten-card.actief { display: block; }
.tabel-acties {
    padding: 12px 20px; border-bottom: 1px solid var(--border);
    display: flex; gap: 8px; align-items: center;
}
.tabel-filter { margin-left: auto; display: flex; gap: 6px; }
.filter-btn {
    padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600;
    cursor: pointer; border: 1px solid var(--border2); background: var(--white); color: var(--muted);
    font-family: 'Inter', sans-serif; transition: all 0.15s;
}
.filter-btn.actief { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }

table { width: 100%; border-collapse: collapse; }
th {
    text-align: left; padding: 10px 16px;
    font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: var(--muted); background: var(--bg); border-bottom: 1px solid var(--border);
}
td { padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 12px; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--accent-bg); }

/* ── Fouten box (batch) ── */
.fouten-box {
    background: var(--red-bg); border: 1px solid #fca5a5; border-radius: 8px;
    padding: 12px 16px; display: none; flex-direction: column; gap: 4px; margin-top: 12px;
}
.fouten-box.actief { display: flex; }
.fout-rij { font-size: 12px; color: var(--red); }

/* ── Rapport modal (batch) ── */
.rapport-sectie { display: flex; flex-direction: column; gap: 6px; }
.rapport-sectie-titel {
    font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
    color: var(--muted); border-bottom: 1px solid var(--border); padding-bottom: 4px;
}
.rapport-grid { display: grid; grid-template-columns: 160px 1fr; gap: 4px 12px; }
.rapport-label { font-size: 11px; color: var(--muted); }
.rapport-waarde { font-size: 12px; font-weight: 600; color: var(--text); word-break: break-word; }
.hash-box {
    background: var(--bg); border: 1px solid var(--border); border-radius: 4px;
    padding: 8px 10px; font-family: monospace; font-size: 10px; color: var(--muted); word-break: break-all;
}

/* ── Noise Filter (batch stijl, collapsible via noise-blok) ── */
.noise-blok { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.noise-blok-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; cursor: pointer; background: var(--bg); font-size: 12px; font-weight: 600; user-select: none; }
.noise-blok-header:hover { background: var(--accent-bg); }
.noise-blok-body { border-top: 1px solid var(--border); }
.noise-sectie { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.noise-sectie:last-child { border-bottom: none; }
.noise-sectie-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.noise-woorden { display: flex; flex-wrap: wrap; gap: 4px; }
.noise-woord { padding: 3px 8px; border-radius: 10px; border: 1px solid var(--border2); background: var(--bg); font-size: 11px; cursor: pointer; color: var(--muted); transition: all 0.1s; user-select: none; }
.noise-woord.actief { background: var(--accent-bg); color: var(--accent); border-color: #bfdbfe; font-weight: 600; }
.noise-btn-badge { display: none; background: var(--orange); color: white; border-radius: 10px; font-size: 9px; padding: 1px 5px; margin-left: 4px; font-weight: 700; vertical-align: middle; }
.noise-btn-badge.zichtbaar { display: inline-block; }
