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

:root {
    --blauw: #1E3A5F;
    --groen: #10B981;
    --groen-light: #D1FAE5;
    --groen-dark: #047857;
    --rood: #EF4444;
    --rood-light: #FEE2E2;
    --geel: #F59E0B;
    --paars: #6366F1;
    --grijs: #6B7280;
    --lichtgrijs: #F3F4F6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #F1F5F9;
    min-height: 100vh;
    color: #1F2937;
    line-height: 1.5;
}

.hidden { display: none !important; }
.modus-basis .uitgebreid-only { display: none !important; }

/* HEADER */
.header {
    background: var(--blauw);
    color: white;
    padding: 20px;
    text-align: center;
}
.header h1 { font-size: 1.4rem; font-weight: 600; }
.header .tagline { opacity: 0.8; font-size: 0.85rem; margin-top: 4px; }
.header .domain { font-size: 0.75rem; opacity: 0.5; margin-top: 6px; letter-spacing: 1px; }

/* LAYOUT */
.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.site-header {
    background: linear-gradient(135deg, var(--blauw) 0%, #1e40af 100%);
    color: white;
    padding: 24px 20px;
    margin-bottom: 24px;
}

.site-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.site-header .tagline {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* FOOTER */
.site-footer {
    background: #F8FAFC;
    border-top: 1px solid #E5E7EB;
    padding: 20px;
    margin-top: 32px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--grijs);
}

/* MAIN */
main.container {
    padding-bottom: 40px;
}

@media (max-width: 600px) {
    .container { padding: 0 12px; }
    .site-header { padding: 16px 12px; }
    .site-header h1 { font-size: 1.25rem; }
}

/* TRAJECTORY INDICATOR */
.trajectory {
    position: sticky;
    top: 20px;
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    height: fit-content;
}

.trajectory h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--grijs);
    margin-bottom: 12px;
}

.traj-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--grijs);
    border-left: 2px solid #E5E7EB;
    padding-left: 12px;
    margin-left: 6px;
}

.traj-item.active {
    color: var(--blauw);
    font-weight: 500;
    border-left-color: var(--blauw);
}

.traj-item.complete {
    color: var(--groen);
    border-left-color: var(--groen);
}

.traj-item.disabled {
    color: #D1D5DB;
    border-left-color: #E5E7EB;
}

.traj-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* MAIN CONTENT */
.main-content { min-width: 0; }

/* SECTIONS */
.section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 16px;
    overflow: hidden;
}

.section-header {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Module nummer badge */
.section-header .nr {
    min-width: 28px;
    height: 22px;
    padding: 0 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255,255,255,0.2);
    letter-spacing: 0.5px;
}

/* Header info button */
.section-header .header-info {
    margin-left: auto;
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.25);
    color: inherit;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    position: relative;
    opacity: 0.8;
    transition: opacity 0.15s, background 0.15s;
}

.section-header .header-info:hover {
    opacity: 1;
    background: rgba(255,255,255,0.4);
}

.section-header .header-info::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    padding: 10px 12px;
    background: #1F2937;
    color: white;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.4;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.section-header .header-info:hover::after,
.section-header .header-info.show::after {
    opacity: 1;
    visibility: visible;
}

/* Import button (inline) */
.btn-import {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--grijs);
    cursor: pointer;
    transition: all 0.15s;
}

.btn-import:hover {
    border-color: var(--blauw);
    color: var(--blauw);
    background: #F8FAFC;
}

.setting-push-right {
    margin-left: auto;
}

.setting-hint {
    font-size: 0.75rem;
    color: var(--grijs);
    font-style: italic;
}

/* Legacy import label (remove after migration) */
.import-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: white;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--grijs);
    cursor: pointer;
    transition: all 0.15s;
}

.import-btn:hover {
    border-color: var(--blauw);
    color: var(--blauw);
}

.import-icon {
    font-size: 1rem;
}

/* HELP MODES */
/* Inline help text - hidden by default (compact mode) */
.field-help {
    display: none;
    font-size: 0.8rem;
    color: #6B7280;
    margin-top: 6px;
    padding: 8px 12px;
    background: #F9FAFB;
    border-left: 2px solid #D1D5DB;
    border-radius: 0 4px 4px 0;
    line-height: 1.4;
}

/* Uitgebreid mode - show all help texts */
body.help-uitgebreid .field-help {
    display: block;
}

/* Uitgebreid mode - hide ? icons since help is visible */
body.help-uitgebreid .info-tip {
    display: none;
}

/* Module intro always visible but styled differently */
body.help-compact .module-intro {
    display: none;
}

body.help-uitgebreid .module-intro {
    display: block;
}

.section-body { padding: 16px; }

/* SECTION HEADER COLORS */
.algemeen .section-header { background: var(--blauw); color: white; }

.inkomsten-header { background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%); color: #065F46; border-bottom: 2px solid #10B981; }
.loondienst-header { background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%); color: #065F46; border-bottom: 2px solid #10B981; }
.overig-header { background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%); color: #065F46; border-bottom: 2px solid #10B981; }

.kosten-header { background: linear-gradient(135deg, #FEF2F2 0%, #FECACA 100%); color: #991B1B; border-bottom: 2px solid #EF4444; }
.lasten-header { background: linear-gradient(135deg, #FEF2F2 0%, #FECACA 100%); color: #991B1B; border-bottom: 2px solid #EF4444; }
.overige-header { background: linear-gradient(135deg, #FEF2F2 0%, #FECACA 100%); color: #991B1B; border-bottom: 2px solid #EF4444; }

.fiscaal-header { background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%); color: #92400E; border-bottom: 2px solid #F59E0B; }

/* Subsection titles */
.subsection-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--grijs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 16px 0 10px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #E5E7EB;
}

.subsection-title:first-child { margin-top: 0; }

/* Module intro text */
.module-intro {
    background: #F8FAFC;
    border-left: 3px solid var(--blauw);
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 0 6px 6px 0;
}

.module-intro p {
    margin: 0;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
}

/* Specificeer toggle */
.specificeer-toggle {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed #E5E7EB;
}

.check-item-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--grijs);
}

.check-item-inline input {
    width: 16px;
    height: 16px;
    accent-color: var(--blauw);
}

/* Specificatie lijst */
.spec-list {
    margin-top: 12px;
}

.spec-item {
    display: grid;
    grid-template-columns: 1fr 100px 80px auto auto;
    gap: 8px;
    align-items: center;
    padding: 8px;
    background: var(--lichtgrijs);
    border-radius: 6px;
    margin-bottom: 8px;
}

.spec-item input[type="text"] {
    padding: 6px 10px;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    font-size: 0.85rem;
}

.spec-item input[type="number"] {
    padding: 6px 8px 6px 24px;
    font-size: 0.85rem;
}

.spec-item input[type="date"] {
    padding: 6px 8px;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--grijs);
}

.spec-item .btw-mini {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--grijs);
}

.spec-item .btw-mini input {
    width: 14px;
    height: 14px;
}

.spec-item .btn-remove {
    width: 24px;
    height: 24px;
    border: none;
    background: #FEE2E2;
    color: #DC2626;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.spec-item .btn-remove:hover {
    background: #FECACA;
}

.btn-add {
    margin-top: 8px;
    padding: 8px 16px;
    border: 1px dashed #D1D5DB;
    background: white;
    color: var(--grijs);
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-add:hover {
    border-color: var(--blauw);
    color: var(--blauw);
}

/* EXTENDED INVOER ROW (with BTW result) */
.invoer-row-ext {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.invoer-row-ext > label {
    min-width: 100px;
    font-size: 0.85rem;
    color: #374151;
}

.invoer-row-ext .invoer-inputs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    flex: 1;
}

/* BTW TOGGLE (Excl/Incl) */
.btw-toggle {
    display: inline-flex;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
}

.btw-toggle-small {
    font-size: 0.75rem;
}

.btw-radio {
    display: flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.8rem;
    color: var(--grijs);
    cursor: pointer;
    transition: all 0.15s;
    background: white;
}

.btw-radio:first-child {
    border-right: 1px solid #E5E7EB;
}

.btw-radio input {
    display: none;
}

.btw-radio.active {
    background: var(--blauw);
    color: white;
}

.btw-toggle-small .btw-radio {
    padding: 2px 6px;
    font-size: 0.7rem;
}

/* BTW RESULT (shows calculated BTW) */
.btw-result {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #F3F4F6;
    border-radius: 4px;
    font-size: 0.85rem;
}

.btw-result.jaar-result {
    background: #E0F2FE;
}

.btw-result.jaar-result .btw-amount {
    color: #0369A1;
}

.btw-label {
    color: var(--grijs);
}

.btw-amount {
    font-weight: 600;
    color: #374151;
    min-width: 60px;
    text-align: right;
}

/* SPECIFICEER SECTION */
.specificeer-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #E5E7EB;
}

.specificeer-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #374151;
}

.specificeer-toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--blauw);
}

.specificeer-content {
    margin-top: 16px;
}

.specificeer-content.hidden {
    display: none;
}

/* FACTUUR ROW */
.facturen-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.factuur-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 10px;
    background: #F9FAFB;
    border-radius: 6px;
    border: 1px solid #E5E7EB;
}

.factuur-datum {
    width: 110px;
    padding: 6px 8px;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    font-size: 0.8rem;
}

.factuur-omschrijving {
    flex: 1;
    min-width: 120px;
    padding: 6px 10px;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    font-size: 0.85rem;
}

.factuur-btw-tarief {
    width: 60px;
    padding: 6px 4px;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    font-size: 0.8rem;
}

.factuur-btw-bedrag {
    min-width: 70px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--grijs);
    text-align: right;
}

.input-small {
    max-width: 100px;
}

.input-small input {
    padding: 6px 8px 6px 22px;
    font-size: 0.85rem;
}

.input-small .euro {
    left: 8px;
    font-size: 0.8rem;
}

/* BTN REMOVE */
.btn-remove {
    width: 26px;
    height: 26px;
    border: none;
    background: #FEE2E2;
    color: #DC2626;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove:hover {
    background: #FECACA;
}

/* TOTAAL SECTION */
.totaal-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 2px solid #E5E7EB;
}

.totaal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

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

.totaal-item {
    padding: 12px;
    background: #F9FAFB;
    border-radius: 6px;
    text-align: center;
}

.totaal-label {
    display: block;
    font-size: 0.75rem;
    color: var(--grijs);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.totaal-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
}

.totaal-highlight {
    background: var(--groen-light);
    border: 1px solid var(--groen);
}

.totaal-highlight .totaal-value {
    color: var(--groen-dark);
}

.totaal-highlight-red {
    background: var(--rood-light);
    border: 1px solid var(--rood);
}

.totaal-highlight-red .totaal-value {
    color: var(--rood);
}

/* LASTEN ITEMS (checkbox-driven) */
/* Lasten item - zie onderaan voor grid-gebaseerde styling */

.lasten-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
    font-size: 0.9rem;
    color: #374151;
    cursor: pointer;
}

.lasten-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--blauw);
}

.lasten-inputs.hidden {
    display: none;
}

.lasten-periode {
    font-size: 0.8rem;
    color: var(--grijs);
}

.lasten-info {
    font-size: 0.8rem;
    color: var(--grijs);
}

.lasten-result {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    min-width: 70px;
}

.lasten-subtotaal {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    margin-top: 8px;
    border-top: 1px dashed #D1D5DB;
    font-size: 0.85rem;
}

.lasten-subtotaal .label {
    color: var(--grijs);
}

.lasten-subtotaal .bedrag {
    font-weight: 600;
    color: #374151;
}

.lasten-subtotaal .btw-label {
    margin-left: auto;
    color: var(--grijs);
}

.lasten-subtotaal .btw-bedrag {
    font-weight: 500;
    color: var(--grijs);
}

.subsection-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    padding: 12px 0 8px 0;
    margin-top: 16px;
    border-top: 1px solid #E5E7EB;
}

.subsection-title:first-of-type {
    margin-top: 0;
    border-top: none;
}

.subsection-note {
    font-weight: 400;
    color: var(--grijs);
    font-size: 0.8rem;
}

.btw-result-small {
    padding: 4px 8px;
    font-size: 0.8rem;
}

.btw-result-small .btw-amount {
    min-width: 50px;
    font-size: 0.8rem;
}

.no-euro-wrapper {
    max-width: 80px;
}

.no-euro-wrapper input {
    padding-left: 10px;
    text-align: center;
}

/* BIJTELLING SECTION */
.bijtelling-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.invoer-row-compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.invoer-row-compact > label {
    min-width: 140px;
    font-size: 0.85rem;
    color: #374151;
}

.date-input {
    padding: 8px 12px;
    border: 2px solid #E5E7EB;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #374151;
}

.date-input:focus {
    outline: none;
    border-color: var(--blauw);
}

.toggle-wide .btw-radio {
    padding: 6px 14px;
}

.bijtelling-result {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-radius: 8px;
    border: 1px solid #F59E0B;
}

.bijtelling-calc {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-formula {
    font-size: 0.9rem;
    color: #92400E;
}

.calc-result {
    font-size: 1.3rem;
    font-weight: 700;
    color: #92400E;
}

.calc-label {
    font-size: 0.8rem;
    color: #B45309;
}

.bijtelling-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.info-badge {
    padding: 4px 10px;
    background: #F59E0B;
    color: white;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.info-text {
    font-size: 0.8rem;
    color: #92400E;
}

/* Box hints */
.hint-box2 {
    padding: 4px 8px;
    background: #DBEAFE;
    color: #1E40AF;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.hint-box3 {
    padding: 4px 8px;
    background: #E0E7FF;
    color: #3730A3;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.lasten-note {
    font-size: 0.75rem;
    color: var(--grijs);
    font-style: italic;
}

/* =====================================================
   MODULE 8: TEST SUITE
   ===================================================== */

.test-header {
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%) !important;
}

.dev-badge {
    margin-left: auto;
    padding: 4px 10px;
    background: #FEF3C7;
    color: #92400E;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.test-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E5E7EB;
}

.test-select {
    display: flex;
    align-items: center;
    gap: 8px;
}

.test-select label {
    font-weight: 500;
    color: #374151;
}

.test-buttons {
    display: flex;
    gap: 8px;
}

.btn-test {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-run {
    background: var(--groen);
    color: white;
}

.btn-run:hover {
    background: var(--groen-dark);
}

.btn-run-all {
    background: var(--blauw);
    color: white;
}

.btn-run-all:hover {
    background: #1E40AF;
}

.btn-clear {
    background: #E5E7EB;
    color: #374151;
}

.btn-clear:hover {
    background: #D1D5DB;
}

.btn-generate {
    background: #8B5CF6;
    color: white;
}

.btn-generate:hover {
    background: #7C3AED;
}

.btn-download-log {
    margin-left: auto;
    padding: 4px 8px;
    background: transparent;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-download-log:hover {
    background: #F3F4F6;
}

.test-info {
    padding: 12px 16px;
    background: #F3F4F6;
    border-radius: 8px;
    margin-bottom: 16px;
}

.test-desc {
    font-size: 0.9rem;
    color: #374151;
}

.test-invoer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.invoer-item {
    padding: 2px 8px;
    background: #E5E7EB;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: monospace;
}

.test-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.test-result {
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
}

.test-result.test-success {
    border-color: var(--groen);
}

.test-result.test-failure {
    border-color: var(--rood);
}

.test-result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #F9FAFB;
    border-bottom: 1px solid #E5E7EB;
}

.test-success .test-result-header {
    background: var(--groen-light);
}

.test-failure .test-result-header {
    background: var(--rood-light);
}

.test-status {
    font-size: 1.2rem;
}

.test-name {
    font-weight: 600;
    color: #111827;
}

.test-score {
    margin-left: auto;
    padding: 4px 10px;
    background: white;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.test-result-desc {
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--grijs);
    border-bottom: 1px solid #E5E7EB;
}

.test-checks {
    padding: 12px 16px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-family: monospace;
    font-size: 0.8rem;
}

.check-row.check-fail {
    background: #FEF2F2;
    margin: 0 -16px;
    padding: 4px 16px;
}

.check-icon {
    width: 20px;
}

.check-key {
    min-width: 160px;
    color: #374151;
}

.check-expected {
    min-width: 80px;
    text-align: right;
    color: var(--groen-dark);
    font-weight: 600;
}

.check-separator {
    color: var(--grijs);
}

.check-actual {
    min-width: 80px;
    text-align: right;
}

.check-pass .check-actual {
    color: var(--groen-dark);
}

.check-fail .check-actual {
    color: var(--rood);
    font-weight: 600;
}

.diff {
    margin-left: 8px;
    color: var(--rood);
    font-size: 0.75rem;
}

.test-summary {
    margin-top: 16px;
    padding: 16px;
    background: #F3F4F6;
    border-radius: 8px;
}

.test-summary.hidden {
    display: none;
}

.summary-stats {
    display: flex;
    gap: 24px;
    font-size: 1rem;
    font-weight: 600;
}

.stat.passed {
    color: var(--groen-dark);
}

.stat.failed {
    color: var(--rood);
}

.stat.coverage {
    margin-left: auto;
    color: var(--blauw);
}

.berekening-header { background: #374151; color: white; }
.afdracht-header { background: #374151; color: white; }
.resultaat-header { background: var(--blauw); color: white; }

.settings-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E5E7EB;
    align-items: center;
}

.settings-row-last {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Grid layout for aligned rows */
.settings-row.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* 3 column layout - fixed widths */
.settings-row.settings-row-3col {
    display: grid;
    grid-template-columns: 300px 300px 200px;
    gap: 16px;
}

.setting-group { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    flex-shrink: 0;
}

.setting-group label { 
    font-size: 0.9rem; 
    color: #4B5563;
    white-space: nowrap;
    width: 70px;
    flex-shrink: 0;
}

/* Setting item with hint below */
.setting-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.setting-item .setting-group {
    margin-bottom: 0;
}

.setting-item .setting-hint {
    margin-left: 90px;
    font-size: 0.75rem;
    color: #9CA3AF;
    font-style: italic;
}

.setting-push-right {
    margin-left: auto;
}

/* Small select for settings */
.select-sm {
    padding: 8px 12px;
    font-size: 0.9rem;
    min-width: 110px;
    height: 36px;
}

/* Info tip in settings - round circle style */
.setting-tip {
    width: 18px;
    height: 18px;
    background: #E5E7EB;
    color: #6B7280;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    position: relative;
    line-height: 1;
    flex-shrink: 0;
}

.setting-tip:hover {
    background: var(--blauw);
    color: white;
}

/* Toggle small - single button toggle */
.toggle-group.toggle-small {
    height: 36px;
}

.toggle-group.toggle-small .toggle-btn {
    padding: 0 12px;
    min-width: auto;
    height: 100%;
    font-size: 0.8rem;
    border: 2px solid #E5E7EB;
    border-radius: 6px;
    background: white;
    color: #6B7280;
}

.toggle-group.toggle-small .toggle-btn.active {
    background: var(--blauw);
    color: white;
    border-color: var(--blauw);
}

.checklist-header {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--grijs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.checklist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--lichtgrijs);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s;
}

.check-item:hover { background: #E5E7EB; }

.check-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--blauw);
}

.check-item span { flex: 1; }

.check-item .info-tip,
.invoer-row label .info-tip {
    width: 16px;
    height: 16px;
    background: #E5E7EB;
    color: #9CA3AF;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    position: relative;
    line-height: 1;
    margin-left: 4px;
    vertical-align: middle;
}

.check-item .info-tip:hover,
.invoer-row label .info-tip:hover {
    background: var(--blauw);
    color: white;
}

/* Tooltip popup */
.info-tip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    padding: 10px 12px;
    background: #1F2937;
    color: white;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.4;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-align: left;
}

.info-tip:hover::after,
.info-tip.show::after {
    opacity: 1;
    visibility: visible;
}

.check-alles {
    margin-top: 12px;
    background: #FEF3C7;
    border: 1px dashed var(--geel);
}

/* INVOER */
.invoer .section-header {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    color: var(--blauw);
    border-bottom: 2px solid #3B82F6;
}
.invoer .icon { background: #3B82F6; color: white; }

.invoer-categorie {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E5E7EB;
}

.invoer-categorie:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.categorie-titel {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.inkomsten-titel { background: #ECFDF5; color: #059669; }
.uitgaven-titel { background: #FEF2F2; color: #DC2626; }
.invest-titel { background: #FEF3C7; color: #B45309; }
.aftrek-titel { background: #E0E7FF; color: #4338CA; }

.invoer-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.invoer-row label {
    font-size: 0.85rem;
    color: #374151;
    position: relative;
}

.invoer-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.input-wrapper {
    position: relative;
    flex: 1;
    max-width: 160px;
}

.input-wrapper .euro {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--grijs);
    font-size: 0.9rem;
}

input[type="number"] {
    width: 100%;
    padding: 8px 10px 8px 26px;
    border: 2px solid #E5E7EB;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: right;
    transition: border-color 0.15s;
}

input[type="number"]:focus {
    outline: none;
    border-color: #3B82F6;
}

input.no-euro { padding-left: 10px; }

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
input[type="number"] { -moz-appearance: textfield; }

.select-input {
    padding: 8px 10px;
    border: 2px solid #E5E7EB;
    border-radius: 6px;
    font-size: 0.85rem;
    background: white;
    cursor: pointer;
}

.select-small { min-width: 100px; }

/* BTW Checkboxes */
.btw-checks {
    display: flex;
    gap: 12px;
}

.btw-check {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--grijs);
    cursor: pointer;
}

.btw-check input {
    width: 14px;
    height: 14px;
    accent-color: var(--blauw);
}

.btw-check.active {
    color: var(--blauw);
    font-weight: 500;
}

.auto-value {
    font-size: 0.85rem;
    color: var(--grijs);
    display: flex;
    gap: 6px;
    align-items: center;
    background: var(--lichtgrijs);
    padding: 6px 10px;
    border-radius: 4px;
}

/* Calculated result display */
.calc-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    border: 1px solid #86EFAC;
    border-radius: 6px;
    margin-top: 8px;
}

.calc-result span {
    font-size: 0.85rem;
    color: #166534;
}

.calc-result strong {
    font-size: 1rem;
    color: #15803D;
}

.label-small { font-size: 0.75rem; }

.hint-inline {
    font-size: 0.75rem;
    color: #9CA3AF;
}

/* Box badges */
.hint-box2, .hint-box3 {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hint-box2 {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #F59E0B;
}

.hint-box3 {
    background: #DBEAFE;
    color: #1E40AF;
    border: 1px solid #3B82F6;
}

/* TOGGLE */
.toggle-group {
    display: flex;
    border: 2px solid #E5E7EB;
    border-radius: 6px;
    overflow: hidden;
}

.toggle-btn {
    padding: 6px 14px;
    border: none;
    background: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.toggle-btn:first-child { border-right: 1px solid #E5E7EB; }
.toggle-btn:not(:first-child):not(:last-child) { border-right: 1px solid #E5E7EB; }
.toggle-btn.active { background: var(--blauw); color: white; }

/* 3-button toggle */
.toggle-group.toggle-3 .toggle-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Wide toggle for longer labels */
.toggle-group.toggle-wide .toggle-btn {
    padding: 6px 16px;
    min-width: 70px;
    text-align: center;
}

/* Equal size toggle - all buttons exactly same dimensions */
.toggle-group.toggle-equal {
    height: 36px;
}

.toggle-group.toggle-equal .toggle-btn {
    padding: 0 16px;
    min-width: 80px;
    height: 100%;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fixed width toggle - all buttons exactly same width */
.toggle-group.toggle-fixed {
    height: 36px;
    display: inline-flex;
}

.toggle-group.toggle-fixed .toggle-btn {
    width: 72px;
    height: 100%;
    padding: 0;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* STAARTSOM */
.staartsom .section-header { background: #374151; color: white; }

.som-container {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.8rem;
}

.som-section {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #E5E7EB;
}

.som-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.som-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
}

.som-row.inactive { color: #D1D5DB; }
.som-row.subtotal { font-weight: 600; margin-top: 4px; padding-top: 6px; }

.som-op {
    text-align: right;
    color: #9CA3AF;
    font-weight: 600;
    padding: 2px 0;
    border-top: 1px solid #E5E7EB;
    margin-top: 2px;
}

.som-final {
    background: #F8FAFC;
    margin: 0 -16px -16px;
    padding: 12px 16px;
}

.som-result {
    font-size: 0.95rem;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 6px;
    margin-top: 8px;
}

.som-result.negative { background: #FEF2F2; color: #DC2626; }
.som-result.positive { background: #ECFDF5; color: #059669; }

/* AFDRACHT (5b) */
.afdracht-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.afdracht-item {
    text-align: center;
    padding: 12px;
    background: var(--lichtgrijs);
    border-radius: 6px;
}

.afdracht-item .label {
    font-size: 0.75rem;
    color: var(--grijs);
    display: block;
    margin-bottom: 4px;
}

.afdracht-item .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
}

.afdracht-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #FEF2F2;
    border-radius: 6px;
    border: 1px solid #FECACA;
}

.afdracht-total span { color: var(--grijs); }
.afdracht-total strong { font-size: 1.2rem; color: #DC2626; }

/* RESULTAAT (5c) */
.result-section { border: 2px solid var(--blauw); }
.result-section .section-header { background: var(--blauw); color: white; }

/* STAARTSOM GRID */
.staart-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.staart-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #F3F4F6;
    font-size: 0.9rem;
}

.staart-row:last-child { border-bottom: none; }

.staart-row .bedrag {
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.staart-row.min .bedrag { color: var(--rood); }
.staart-row.plus .bedrag { color: var(--groen-dark); }

.staart-row.subtotaal {
    font-weight: 600;
    border-top: 2px solid #E5E7EB;
    margin-top: 4px;
    padding-top: 12px;
}

.staart-row.totaal {
    font-weight: 700;
    background: #F8FAFC;
    margin: 8px -16px -16px;
    padding: 12px 16px;
    border-radius: 0 0 6px 6px;
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
}

.result-item {
    text-align: center;
    padding: 16px;
    border-radius: 8px;
}

.result-item.belasting { background: #FEF2F2; border: 2px solid #FECACA; }
.result-item.netto { background: #ECFDF5; border: 2px solid #A7F3D0; }

.result-item .label {
    font-size: 0.75rem;
    color: var(--grijs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.result-item .value { font-size: 1.6rem; font-weight: 700; }
.result-item.belasting .value { color: #DC2626; }
.result-item.netto .value { color: #059669; }

.result-extra {
    padding: 12px 16px;
    background: #F8FAFC;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

/* FOOTER */
.footer {
    background: var(--blauw);
    color: white;
    padding: 32px 20px;
    margin-top: 40px;
}

.footer-content { max-width: 1000px; margin: 0 auto; }

.footer-brand {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand strong { font-size: 1.1rem; }
.footer-brand span { display: block; opacity: 0.7; font-size: 0.8rem; margin-top: 4px; }

.footer-disclaimer {
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 24px;
    border-left: 3px solid var(--geel);
    font-size: 0.8rem;
}

.footer-disclaimer strong { color: var(--geel); display: block; margin-bottom: 4px; }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
    font-size: 0.8rem;
}

.footer-grid h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.6;
    margin-bottom: 6px;
}

.footer-grid a { color: #60A5FA; text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }

.footer-copy {
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.5;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 600px) {
    .settings-row { flex-direction: column; gap: 12px; }
    .checklist { grid-template-columns: 1fr; }
    .invoer-row { grid-template-columns: 1fr; gap: 4px; }
    .result-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   MODULE 6: EXPORT
   ============================================ */

.export-section .section-body {
    padding: 20px;
}

.export-intro {
    margin-bottom: 20px;
    color: var(--grijs);
    font-size: 0.9rem;
}

.export-intro p { margin: 0; }

.export-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-export {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid var(--lichtgrijs);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-export:hover {
    border-color: var(--blauw);
    background: #F8FAFC;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-export:active {
    transform: translateY(0);
}

.btn-export .export-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.btn-export .export-label {
    font-weight: 600;
    font-size: 1rem;
    color: var(--blauw);
    margin-bottom: 4px;
}

.btn-export .export-hint {
    font-size: 0.75rem;
    color: var(--grijs);
}

.btn-export-txt:hover .export-icon { animation: bounce 0.3s ease; }
.btn-export-json:hover .export-icon { animation: bounce 0.3s ease; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.export-info {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
}

.export-status.success {
    background: #ECFDF5;
    color: #059669;
    border: 1px solid #A7F3D0;
}

.export-status.error {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

@media (max-width: 600px) {
    .export-buttons { grid-template-columns: 1fr; }
}

/* ============================================
   DISCLAIMER SECTION
   ============================================ */

.disclaimer-section {
    background: linear-gradient(to bottom, #FEF3C7, #FFFBEB);
    border-top: 3px solid #F59E0B;
    margin-top: 40px;
}

.disclaimer-details {
    margin: 0;
}

.disclaimer-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.disclaimer-toggle::-webkit-details-marker {
    display: none;
}

.disclaimer-icon {
    font-size: 1.5rem;
}

.disclaimer-title {
    flex: 1;
    font-weight: 600;
    color: #92400E;
    font-size: 1rem;
}

.disclaimer-arrow {
    color: #B45309;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.disclaimer-details[open] .disclaimer-arrow {
    transform: rotate(180deg);
}

.disclaimer-content {
    padding: 0 0 24px 0;
    color: #78350F;
    line-height: 1.6;
}

.disclaimer-content h3 {
    color: #92400E;
    font-size: 1rem;
    margin: 20px 0 8px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #FCD34D;
}

.disclaimer-content h3:first-child {
    margin-top: 0;
}

.disclaimer-content p {
    margin: 0 0 12px 0;
    font-size: 0.9rem;
}

.disclaimer-content strong {
    color: #92400E;
}

.disclaimer-sources {
    margin: 8px 0;
    padding-left: 20px;
    font-size: 0.85rem;
}

.disclaimer-sources li {
    margin-bottom: 4px;
}

.disclaimer-version {
    margin-top: 16px !important;
    padding-top: 12px;
    border-top: 1px dashed #FCD34D;
    font-size: 0.8rem !important;
    color: #B45309 !important;
    font-style: italic;
}

/* ============================================
   FOOTER UPDATES
   ============================================ */

.site-footer {
    background: #1F2937;
    color: #D1D5DB;
    padding: 24px 0;
    text-align: center;
}

.footer-disclaimer {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #FCD34D;
}

.footer-disclaimer strong {
    color: #FBBF24;
}

.footer-meta {
    font-size: 0.85rem;
    color: #9CA3AF;
    margin: 0;
}

.footer-meta a {
    color: #60A5FA;
    text-decoration: none;
}

.footer-meta a:hover {
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .disclaimer-toggle {
        padding: 12px 0;
    }
    
    .disclaimer-title {
        font-size: 0.9rem;
    }
    
    .disclaimer-content {
        font-size: 0.85rem;
    }
    
    .footer-disclaimer {
        font-size: 0.85rem;
        padding: 10px 12px;
    }
}

/* ============================================
   VALIDATION WARNINGS
   ============================================ */

/* Soft warnings - hidden when validation is minimal */
.soft-warning {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 0.8rem;
    color: #92400E;
    margin-top: 4px;
}

body.hide-soft-warnings .soft-warning {
    display: none;
}

/* Hard warnings - always shown */
.hard-warning {
    background: #FEE2E2;
    border: 1px solid #EF4444;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 0.8rem;
    color: #991B1B;
    margin-top: 4px;
}

/* ============================================
   APP LAYOUT WITH SIDEBAR
   ============================================ */

.app-layout {
    display: flex;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* Progress Sidebar */
.progress-sidebar {
    width: 180px;
    flex-shrink: 0;
    position: sticky;
    top: 24px;
    align-self: flex-start;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

.progress-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.progress-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.progress-group {
    margin-bottom: 4px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    margin: 0 -10px;
    text-decoration: none;
    color: #6B7280;
    font-size: 0.85rem;
    transition: all 0.2s;
    border-radius: 6px;
    cursor: pointer;
}

.progress-item:hover {
    color: var(--blauw);
    background: #F3F4F6;
}

.progress-item.active {
    color: var(--blauw);
    background: #EFF6FF;
    font-weight: 600;
}

.progress-item.active .progress-dot {
    border-color: var(--blauw);
}

.progress-item.hidden {
    display: none;
}

.progress-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 2px solid #D1D5DB;
    flex-shrink: 0;
    transition: all 0.2s;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.progress-dot.partial {
    border-color: #F59E0B;
    background: #FEF3C7;
}

.progress-dot.complete {
    background: #10B981;
    border-color: #10B981;
    color: white;
}

.progress-check {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #10B981;
    color: white;
    flex-shrink: 0;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-check.auto {
    background: #E5E7EB;
    color: #9CA3AF;
}

.progress-label {
    font-weight: 500;
}

/* Subitems */
.progress-subitems {
    margin-left: 26px;
    padding-left: 10px;
    border-left: 2px solid #E5E7EB;
    margin-top: 2px;
}

.progress-subitem {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    margin: 0 -8px;
    font-size: 0.75rem;
    color: #9CA3AF;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.progress-subitem:hover {
    color: var(--blauw);
    background: #F9FAFB;
}

.progress-subitem.filled {
    color: #10B981;
}

.progress-subitem.hidden {
    display: none;
}

.sub-check {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid #D1D5DB;
    background: white;
    flex-shrink: 0;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.sub-check.filled {
    background: #10B981;
    border-color: #10B981;
}

/* Conditional progress items */
.conditional-progress.hidden {
    display: none !important;
}

/* Main Content */
.main-content {
    flex: 1;
    min-width: 0;
}

/* Adjust container for new layout */
.main-content .section {
    margin-bottom: 20px;
}

/* Mobile: hide sidebar */
@media (max-width: 900px) {
    .app-layout {
        flex-direction: column;
    }
    
    .progress-sidebar {
        display: none;
    }
    
    .main-content {
        width: 100%;
    }
}

/* Update header for full width */
.site-header {
    background: linear-gradient(135deg, #1E3A5F 0%, #2D4A6F 100%);
    color: white;
    padding: 32px 24px;
    text-align: center;
}

.site-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.site-header .tagline {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 4px;
}

.site-header .site-url {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ============================================
   SPECIFICEER TOGGLES - SHOW/HIDE SECTIONS
   ============================================ */

/* Hide specificeer sections by default */
.specificeer-inkomsten-only {
    display: none !important;
}

.specificeer-kosten-only {
    display: none !important;
}

/* Show when specificeer is active */
body.specificeer-inkomsten .specificeer-inkomsten-only {
    display: block !important;
}

body.specificeer-kosten .specificeer-kosten-only {
    display: block !important;
}

/* Grid responsive for settings */
@media (max-width: 900px) {
    .settings-row.settings-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Specificeer section header */
.specificeer-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4B5563;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #E5E7EB;
}

.specificeer-section.specificeer-inkomsten-only,
.specificeer-section.specificeer-kosten-only {
    margin-top: 16px;
    padding: 16px;
    background: #F9FAFB;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

/* ============================================
   INVOER MODUS - SPECIFICEER VS TOTALEN
   ============================================ */

/* Show specificeer sections only in specificeer mode */
.specificeer-section {
    display: none;
}

body.invoer-specificeer .specificeer-section {
    display: block;
}

/* Show totalen sections only in totalen mode */
.totalen-section {
    display: none;
}

body.invoer-totalen .totalen-section {
    display: block;
}

/* Override toggle for individual fields */
.invoer-toggle {
    display: inline-flex;
    margin-left: 8px;
    font-size: 0.7rem;
}

.invoer-toggle .toggle-btn {
    padding: 2px 8px;
    font-size: 0.7rem;
    border-radius: 4px;
}

/* Responsive: 3 columns to 1 on mobile */
@media (max-width: 900px) {
    .settings-row.settings-row-3col {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .settings-row.settings-row-2col {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ============================================
   LASTEN MODULE - EXTENDED STYLING
   ============================================ */

/* Uitleg blok */
.lasten-uitleg {
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #0369A1;
}

.lasten-uitleg strong {
    color: #0C4A6E;
}

/* Periode toggle (p/j - p/m) */
.periode-toggle {
    display: inline-flex;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    overflow: hidden;
    margin-left: 8px;
}

.periode-radio {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    font-size: 0.75rem;
    color: #6B7280;
    background: white;
    cursor: pointer;
    transition: all 0.15s;
    border-left: 1px solid #D1D5DB;
}

.periode-radio:first-child {
    border-left: none;
}

.periode-radio input {
    display: none;
}

.periode-radio.active,
.periode-radio:has(input:checked) {
    background: var(--blauw);
    color: white;
}

/* Invoer mode toggle (Totaal / Specificeer) */
.invoer-mode-toggle {
    display: inline-flex;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.mode-radio {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    font-size: 0.8rem;
    color: #6B7280;
    background: white;
    cursor: pointer;
    transition: all 0.15s;
    border-left: 1px solid #D1D5DB;
}

.mode-radio:first-child {
    border-left: none;
}

.mode-radio input {
    display: none;
}

.mode-radio.active,
.mode-radio:has(input:checked) {
    background: var(--blauw);
    color: white;
}

/* OV Specificeer mode */
.ov-totaal-mode,
.ov-specificeer-mode {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ov-specificeer-mode {
    flex-direction: column;
    align-items: flex-start;
}

.specificeer-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.specificeer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
}

.specificeer-item input[type="text"] {
    flex: 1;
    min-width: 120px;
    padding: 6px 10px;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    font-size: 0.85rem;
}

.specificeer-item input[type="number"] {
    width: 80px;
    padding: 6px 10px;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    font-size: 0.85rem;
    text-align: right;
}

.specificeer-item .item-count {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #6B7280;
}

.specificeer-item .item-count input {
    width: 50px;
}

.specificeer-item .btn-remove-item {
    padding: 4px 8px;
    background: #FEE2E2;
    color: #DC2626;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.specificeer-item .btn-remove-item:hover {
    background: #FECACA;
}

.btn-add-item {
    padding: 8px 16px;
    background: #EFF6FF;
    color: var(--blauw);
    border: 1px dashed var(--blauw);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s;
}

.btn-add-item:hover {
    background: #DBEAFE;
}

.specificeer-totaal {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    width: 100%;
    padding-top: 8px;
    margin-top: 8px;
    border-top: 1px solid #E5E7EB;
    font-weight: 600;
    font-size: 0.9rem;
}

/* BTW tarief indicator */
.btw-tarief {
    font-size: 0.7rem;
    color: #9CA3AF;
    margin-left: 4px;
}

/* Tiny input wrapper */
.input-wrapper.input-tiny {
    min-width: 70px;
}

.input-wrapper.input-tiny input {
    width: 60px;
}

.item-total {
    font-weight: 500;
    color: #374151;
    min-width: 80px;
}

/* Hidden class */
.ov-specificeer-mode.hidden,
.ov-totaal-mode.hidden {
    display: none !important;
}

/* ============================================
   INFO-TIP RECHTS UITGELIJND (Module 3b)
   ============================================ */

/* Lasten item met info-tip kolom */
.lasten-item {
    display: grid;
    grid-template-columns: 1fr 24px;
    gap: 8px;
    align-items: start;
    padding: 8px 0;
    border-bottom: 1px solid #F3F4F6;
}

.lasten-item:last-of-type {
    border-bottom: none;
}

/* Content wrapper (alles behalve info-tip) */
.lasten-item-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Info-tip kolom rechts */
.lasten-item > .info-tip {
    width: 20px;
    height: 20px;
    background: var(--blauw);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    position: relative;
    opacity: 0.7;
    transition: opacity 0.15s, background 0.15s;
    flex-shrink: 0;
    margin-top: 2px;
}

.lasten-item > .info-tip:hover {
    opacity: 1;
    background: #2563EB;
}

.lasten-item > .info-tip::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    padding: 10px 12px;
    background: #1F2937;
    color: white;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.4;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.lasten-item > .info-tip:hover::after,
.lasten-item > .info-tip.show::after {
    opacity: 1;
    visibility: visible;
}

/* Subsection title met info-tip */
.subsection-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #374151;
    margin: 20px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #E5E7EB;
}

.subsection-title .info-tip {
    width: 18px;
    height: 18px;
    background: var(--blauw);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    position: relative;
    opacity: 0.7;
    margin-left: auto;
}

.subsection-title .info-tip:hover {
    opacity: 1;
}

.subsection-title .info-tip::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    padding: 10px 12px;
    background: #1F2937;
    color: white;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.4;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.subsection-title .info-tip:hover::after,
.subsection-title .info-tip.show::after {
    opacity: 1;
    visibility: visible;
}

/* Lasten inputs op zelfde regel als content */
.lasten-inputs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

/* ===========================================
   MODULE 3C - INKOPEN & INVESTERINGEN
   =========================================== */

/* Investering info block */
.investering-info {
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #0369A1;
}

.investering-info p {
    margin: 0;
    line-height: 1.5;
}

/* Investeringen list */
.investeringen-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.investering-item {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 12px;
}

.investering-row-1 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.investering-row-1 .inv-omschrijving {
    flex: 1;
    min-width: 150px;
    padding: 8px 10px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 0.9rem;
}

.investering-row-2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid #E5E7EB;
}

.inv-field {
    display: flex;
    align-items: center;
    gap: 6px;
}

.inv-field label {
    font-size: 0.8rem;
    color: #6B7280;
    white-space: nowrap;
}

.inv-field select {
    padding: 6px 8px;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    font-size: 0.85rem;
    background: white;
}

.inv-field.hidden {
    display: none;
}

.inv-result {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ECFDF5;
    padding: 6px 10px;
    border-radius: 6px;
}

.inv-afschrijving-label {
    font-size: 0.8rem;
    color: #059669;
}

.inv-afschrijving-bedrag {
    font-weight: 600;
    color: #059669;
    font-size: 0.9rem;
}

.input-wrapper.input-tiny {
    width: 90px;
}

.input-wrapper.input-tiny input {
    width: 100%;
    padding: 6px 8px 6px 24px;
    font-size: 0.85rem;
}

.btn-remove-item {
    width: 28px;
    height: 28px;
    border: none;
    background: #FEE2E2;
    color: #DC2626;
    border-radius: 6px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.btn-remove-item:hover {
    background: #FECACA;
}

/* KIA info */
.kia-info {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.kia-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.kia-label {
    font-size: 0.85rem;
    color: #92400E;
}

.kia-value {
    font-weight: 600;
    color: #92400E;
}

.kia-row.kia-highlight {
    border-top: 1px solid #FDE68A;
    margin-top: 8px;
    padding-top: 8px;
}

.kia-row.kia-highlight .kia-label,
.kia-row.kia-highlight .kia-value {
    font-size: 0.95rem;
    color: #B45309;
}

.kia-note {
    font-size: 0.8rem;
    color: #A16207;
    margin-top: 8px;
    font-style: italic;
}

/* Lasten subtotaal */
.lasten-subtotaal {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #F3F4F6;
    border-radius: 6px;
    margin: 12px 0 20px 0;
    font-size: 0.9rem;
}

.lasten-subtotaal .label {
    color: #374151;
    font-weight: 500;
}

.lasten-subtotaal .bedrag {
    font-weight: 600;
    color: #1F2937;
}

.lasten-subtotaal .btw-label {
    margin-left: auto;
    color: #6B7280;
    font-size: 0.8rem;
}

.lasten-subtotaal .btw-bedrag {
    color: #059669;
    font-weight: 500;
}

/* BTW result small variant */
.btw-result-small {
    min-width: auto;
}

.btw-result-small .btw-label {
    display: none;
}

/* ===========================================
   MODULE 6 - DASHBOARD
   =========================================== */

.dashboard-section {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
}

.dashboard-preview {
    position: relative;
    overflow: hidden;
}

/* Metrics cards */
.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    filter: blur(6px);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.metric-icon {
    font-size: 1.8rem;
}

.metric-label {
    font-size: 0.8rem;
    color: #6B7280;
    margin-bottom: 4px;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F2937;
}

.metric-income .metric-value { color: #059669; }
.metric-profit .metric-value { color: #2563EB; }
.metric-tax .metric-value { color: #DC2626; }
.metric-net .metric-value { color: #7C3AED; }

/* Charts */
.dashboard-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    filter: blur(5px);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.chart-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

.chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 180px;
}

.pie-chart {
    width: 160px;
    height: 160px;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 12px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.legend-label {
    color: #6B7280;
}

.legend-value {
    font-weight: 600;
    color: #374151;
}

/* Bar chart */
.chart-bars {
    flex-direction: column;
    align-items: stretch;
    padding: 0 10px;
}

.bar-chart {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bar-item {
    display: grid;
    grid-template-columns: 120px 1fr 80px;
    align-items: center;
    gap: 12px;
}

.bar-label {
    font-size: 0.8rem;
    color: #6B7280;
    text-align: right;
}

.bar-track {
    height: 20px;
    background: #F3F4F6;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.bar-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
}

/* Fade overlay */
.dashboard-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent 0%, rgba(248,250,252,0.8) 50%, rgba(248,250,252,1) 100%);
    pointer-events: none;
}

/* CTA */
.dashboard-cta {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    margin-top: -40px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.dashboard-cta p {
    color: #6B7280;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.dashboard-export-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #EFF6FF;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.dashboard-export-check:hover {
    background: #DBEAFE;
}

.dashboard-export-check input {
    width: 18px;
    height: 18px;
}

.dashboard-export-check span {
    font-weight: 500;
    color: #1D4ED8;
}

/* Mobile responsive */
@media (max-width: 900px) {
    .dashboard-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
    
    .bar-item {
        grid-template-columns: 80px 1fr 70px;
    }
}

/* ===========================================
   MODULE 7 - EXPORT
   =========================================== */

.export-section .section-body {
    padding: 20px;
}

.export-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.export-option {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    transition: all 0.2s;
}

.export-option:hover {
    border-color: #D1D5DB;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.export-option:has(input:checked) {
    border-color: var(--blauw);
    background: #EFF6FF;
}

.export-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
}

.export-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 4px;
    flex-shrink: 0;
}

.export-option-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.export-option .export-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.export-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.export-title {
    font-weight: 600;
    color: #1F2937;
    font-size: 0.95rem;
}

.export-desc {
    font-size: 0.8rem;
    color: #6B7280;
    line-height: 1.4;
}

.export-badge {
    display: inline-block;
    background: #10B981;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 6px;
    vertical-align: middle;
}

.export-option-free {
    border-style: dashed;
}

.export-option-dashboard {
    background: #FFFBEB;
    border-color: #FDE68A;
}

.export-option-dashboard:has(input:checked) {
    background: #FEF3C7;
    border-color: #F59E0B;
}

/* Export actions */
.export-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.btn-export-main {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--blauw) 0%, #2563EB 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-export-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.btn-export-main:active {
    transform: translateY(0);
}

.btn-export-main .btn-icon {
    font-size: 1.2rem;
}

.export-count {
    color: #6B7280;
    font-size: 0.9rem;
}

/* Progress bar */
.export-progress {
    margin-bottom: 16px;
}

.progress-bar {
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blauw) 0%, #10B981 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.85rem;
    color: #6B7280;
    text-align: center;
}

/* Export status */
.export-info {
    padding: 12px 16px;
    border-radius: 8px;
    background: #F3F4F6;
}

.export-status {
    font-size: 0.9rem;
}

.export-status.success {
    color: #059669;
}

.export-status.error {
    color: #DC2626;
}

/* ===========================================
   MODULE 10 - SURVEY
   =========================================== */

.survey-section {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 2px dashed #F59E0B;
}

.survey-section .section-header {
    background: #F59E0B;
    color: white;
}

.survey-intro {
    background: white;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.survey-intro p {
    margin: 0;
    color: #92400E;
}

.survey-ratings {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.survey-item {
    display: grid;
    grid-template-columns: 200px 1fr 40px;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
}

.survey-label {
    display: flex;
    flex-direction: column;
}

.survey-title {
    font-weight: 600;
    color: #1F2937;
}

.survey-desc {
    font-size: 0.75rem;
    color: #6B7280;
}

.survey-rating {
    display: flex;
    gap: 4px;
}

.rating-btn {
    width: 32px;
    height: 32px;
    border: 2px solid #E5E7EB;
    border-radius: 6px;
    background: white;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.15s;
}

.rating-btn:hover {
    border-color: #F59E0B;
    color: #F59E0B;
}

.rating-btn.selected {
    background: #F59E0B;
    border-color: #F59E0B;
    color: white;
}

.survey-score {
    font-size: 1.25rem;
    font-weight: 700;
    color: #F59E0B;
    text-align: center;
}

.survey-average {
    background: #1E3A5F;
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    margin-bottom: 24px;
    text-align: center;
}

.survey-average .avg-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10B981;
}

.survey-questions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.survey-question label {
    display: block;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 8px;
}

.survey-question textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.95rem;
    resize: vertical;
}

.survey-question textarea:focus {
    border-color: #F59E0B;
    outline: none;
}

.survey-price-options {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.survey-price-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    cursor: pointer;
}

.survey-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.btn-survey-submit {
    flex: 1;
    padding: 14px 24px;
    background: #F59E0B;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-survey-export {
    flex: 1;
    padding: 14px 24px;
    background: #1E3A5F;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-survey-export:hover {
    background: #2D4A6F;
}

.survey-note {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    padding: 12px 16px;
    border-radius: 8px;
}

.survey-note p {
    margin: 0;
    font-size: 0.85rem;
    color: #92400E;
}

/* Mobile */
@media (max-width: 900px) {
    .survey-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .survey-rating {
        flex-wrap: wrap;
    }
    
    .survey-actions {
        flex-direction: column;
    }
}

/* ===========================================
   DISCLAIMER MODAL
   =========================================== */

.disclaimer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.disclaimer-overlay.show {
    opacity: 1;
    visibility: visible;
}

.disclaimer-modal {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.disclaimer-header {
    background: #DC2626;
    color: white;
    padding: 20px 24px;
    border-radius: 16px 16px 0 0;
}

.disclaimer-header h2 {
    margin: 0;
    font-size: 1.3rem;
}

.disclaimer-body {
    padding: 24px;
}

.disclaimer-body h3 {
    color: #1F2937;
    margin: 0 0 12px 0;
    font-size: 1rem;
}

.disclaimer-body ul {
    margin: 0 0 20px 0;
    padding-left: 20px;
}

.disclaimer-body li {
    color: #4B5563;
    margin-bottom: 8px;
    line-height: 1.5;
}

.disclaimer-check {
    background: #FEF2F2;
    border: 2px solid #DC2626;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.disclaimer-check label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.disclaimer-check input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.disclaimer-check span {
    color: #991B1B;
    font-weight: 500;
    line-height: 1.4;
}

.disclaimer-footer {
    display: flex;
    gap: 12px;
    padding: 0 24px 24px;
}

.btn-disclaimer-cancel {
    flex: 1;
    padding: 14px;
    background: #F3F4F6;
    color: #4B5563;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

.btn-disclaimer-accept {
    flex: 1;
    padding: 14px;
    background: #DC2626;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.5;
    pointer-events: none;
}

.btn-disclaimer-accept.enabled {
    opacity: 1;
    pointer-events: auto;
}

.btn-disclaimer-accept.enabled:hover {
    background: #B91C1C;
}

/* Beta feedback item in sidebar */
.progress-item-beta {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 1px dashed #F59E0B;
    border-radius: 6px;
    margin-top: 8px;
}

.progress-item-beta:hover {
    background: #FDE68A;
}

/* ============================================
   WIZARD & LANDING PAGE
   ============================================ */

/* Landing Page */
.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 100%);
    animation: fadeIn 0.5s ease;
}

.landing-fade-out {
    animation: fadeOut 0.3s ease forwards;
}

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

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.landing-hero {
    text-align: center;
    margin-bottom: 48px;
}

.landing-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--blauw);
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}

.landing-subtitle {
    font-size: 1.2rem;
    color: var(--grijs);
    line-height: 1.6;
    margin: 0;
}

.landing-options {
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    justify-content: center;
}

.landing-card {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    padding: 32px;
    width: 260px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: inherit;
}

.landing-card:hover {
    border-color: var(--blauw);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(30, 58, 95, 0.15);
}

.landing-card:focus {
    outline: none;
    border-color: var(--blauw);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.2);
}

.landing-card-secondary {
    background: #F8FAFC;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--blauw);
    margin-bottom: 12px;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--grijs);
    line-height: 1.5;
    margin-bottom: 16px;
}

.card-time {
    font-size: 0.85rem;
    color: var(--groen);
    font-weight: 500;
}

.landing-trust {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.trust-badge {
    font-size: 0.9rem;
    color: var(--grijs);
}

/* Wizard Overlay */
.wizard-active {
    background: linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 100%);
}

.wizard-container {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.wizard-progress {
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
    margin-bottom: 40px;
    overflow: hidden;
}

.wizard-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--blauw) 0%, var(--groen) 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

.wizard-step {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    animation: slideIn 0.3s ease;
}

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

.wizard-header {
    text-align: center;
    margin-bottom: 32px;
}

.wizard-step-indicator {
    font-size: 0.85rem;
    color: var(--groen);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wizard-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--blauw);
    margin: 8px 0 4px 0;
}

.wizard-subtitle {
    font-size: 1rem;
    color: var(--grijs);
    margin: 0;
}

.wizard-questions {
    margin-bottom: 24px;
}

.wizard-instruction {
    font-size: 0.95rem;
    color: #6B7280;
    margin-bottom: 16px;
}

.wizard-checkbox {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wizard-checkbox:hover {
    border-color: #D1D5DB;
    background: #F3F4F6;
}

.wizard-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-mark {
    width: 24px;
    height: 24px;
    border: 2px solid #D1D5DB;
    border-radius: 6px;
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.wizard-checkbox input:checked + .checkbox-mark {
    background: var(--blauw);
    border-color: var(--blauw);
}

.wizard-checkbox input:checked + .checkbox-mark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-label {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.4;
}

.wizard-tip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #FEF3C7;
    border-radius: 8px;
    margin-bottom: 28px;
}

.tip-icon {
    font-size: 1.2rem;
}

.tip-text {
    font-size: 0.9rem;
    color: #92400E;
}

.wizard-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wizard-btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.wizard-btn-back {
    background: transparent;
    border: none;
    color: var(--grijs);
}

.wizard-btn-back:hover {
    color: var(--blauw);
}

.wizard-btn-next,
.wizard-btn-start {
    background: var(--blauw);
    border: none;
    color: white;
}

.wizard-btn-next:hover,
.wizard-btn-start:hover {
    background: #15305a;
    transform: translateY(-1px);
}

.wizard-btn-start {
    background: var(--groen);
}

.wizard-btn-start:hover {
    background: var(--groen-dark);
}

/* Wizard Complete */
.wizard-complete .complete-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.wizard-summary {
    text-align: center;
    padding: 24px;
    background: #F0FDF4;
    border-radius: 12px;
    margin-bottom: 28px;
}

.summary-stat {
    margin-bottom: 8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--groen);
}

.stat-label {
    font-size: 0.95rem;
    color: var(--groen-dark);
    margin-left: 8px;
}

.summary-text {
    font-size: 0.95rem;
    color: #166534;
    margin: 0;
}

/* Knockout Hidden */
.knockout-hidden {
    display: none !important;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .landing-title {
        font-size: 1.8rem;
    }
    
    .landing-subtitle {
        font-size: 1rem;
    }
    
    .landing-options {
        flex-direction: column;
        align-items: center;
    }
    
    .landing-card {
        width: 100%;
        max-width: 300px;
    }
    
    .wizard-step {
        padding: 24px;
    }
    
    .wizard-title {
        font-size: 1.3rem;
    }
    
    .wizard-checkbox {
        padding: 14px;
    }
    
    .checkbox-label {
        font-size: 0.9rem;
    }
    
    .landing-trust {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}
