:root {
    /* Basis kleuren */
    --bg-body: #ffffff;
    --bg-page: #ffffff;
    --bg-card: #0d1117;                      /* iets neutraler donker */
    --bg-card-soft: rgba(13, 17, 23, 0.92);
    --bg-chip: rgba(209, 248, 39, 0.14);     /* zachte lime chip */

    /* Accent kleuren (lime-based) */
    --accent: #d1f827;                       /* hoofdaccent */
    --accent-soft: rgba(209, 248, 39, 0.16); /* zachte highlight */
    --accent-strong: #b6dc12;                /* donkerder lime */
    --accent-alt: #8bae0f;                   /* secundaire lime/olijf */
    --accent-dark: #5f7d0b;                  /* voor hover/contrast */

    /* Borders */
    --border-subtle: rgba(130, 146, 50, 0.35);
    --border-strong: rgba(130, 146, 50, 0.65);

    /* Tekst */
    --text-main: #252934;
    --text-soft: #636a77;
    --text-muted: #d8dbe0;
    --text-grey: #919295;
    --text-strong: #252934;
    
    /* Status kleuren */
    --danger: #f97373;
    --success: #3cb64b;      /* iets koeler groen */
    --warning: #d9b320;      /* minder oranje, meer lime-ish */

    /* Radii */
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-pill: 999px;

    /* Shadows */
    --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.55);
    --shadow-card: 0 18px 40px rgba(15, 23, 42, 0.65);

    /* Alias voor oude variabelen */
    --card-bg: var(--bg-card);
    --card-bg-soft: var(--bg-card-soft);
}

* {
    box-sizing: border-box;
}

html,
body {
    font-family: "Space Grotesk", sans-serif;
}

body {
    margin: 0;
    background: var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Notice Banners */
.notice-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notice-info {
    background: linear-gradient(135deg, #e6ff5c 0%, #cdeb26 45%, var(--accent) 100%);
    color: var(--text-main);
}

.notice-warning {
    background: linear-gradient(135deg, #e6ff5c 0%, #cdeb26 45%, var(--accent) 100%);
    color: var(--text-main);
}

.notice-icon {
    font-size: 32px;
    line-height: 1;
}

.notice-content {
    flex: 1;
}

.notice-content strong {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

.notice-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.95;
}

.notice-button {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.25);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.notice-button:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* ========= PAGE LAYOUT (UPLOAD) ========= */

.page-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 22px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;

}

.page-container::before {
    display:none;
}

.page-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    flex: 1;
    margin-top: 16px;
}

.sidebar {
    width: 260px;
    flex-shrink: 0;
}

.page-content {
    flex: 1;
    min-width: 0;
    max-width: 1024px;
    margin: 0 auto;
    width: 100%;
}

/* ========= HEADER (GEMEEN) ========= */

.page-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-strong);
}

.logo-dot {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: conic-gradient(from 210deg, #38bdf8, #a855f7, #22c55e, #38bdf8);
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.7);
    position: relative;
}

.logo-dot::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: inherit;
    background: radial-gradient(circle, #0f172a 0, #020617 70%);
}

.page-subtitle {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-soft);
    max-width: 520px;
}

.site-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin: 20px 0;
    color: var(--text-main);
}

/* ========= CARD (UPLOAD) ========= */


.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.card-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    color: var(--text-muted);
}

.card-mainline {
    font-size: 20px;
    font-weight: 700;
    margin-top: 4px;
    color: var(--text-main);
}

.card-body {
    padding: 22px;
}

/* ========= FORM ELEMENTS ========= */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-label-hint {
    font-weight: 400;
    color: var(--text-grey);
    margin-left: 6px;
}

/* ========= FILE INPUTS / UPLOAD ========= */

.upload-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.file-input-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 1px dashed rgba(130, 146, 50, 0.8);              /* lime border */
    border-radius: var(--radius-lg);
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-input-wrapper:hover,
.file-input-wrapper.dragover {
    border-color: var(--accent);
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* Icon bubble */
.file-input-icon {
    width: 44px;
    height: 44px;
    background: rgba(28, 32, 12, 0.9);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border: 1px solid rgba(130, 146, 50, 0.7);
}

/* Icon itself */
.file-input-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.file-input-text {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 500;
}

.file-input-hint {
    font-size: 12px;
    color: var(--text-grey);
    margin-top: 4px;
}

.file-input-filename {
    margin-top: 8px;
    font-size: 13px;
    color: var(--success);
    font-weight: 600;
    display: none;
}

.file-input-filename.visible {
    display: block;
}

/* Preview */

.file-preview {
    display: none;
    margin-top: 12px;
    position: relative;
    overflow: hidden;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
    min-height: 312px;
}

.file-preview.visible {
    display: block;
}

.file-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.file-preview-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
}

.file-preview-btn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.8);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.file-preview-btn:hover {
    background: rgba(15, 23, 42, 1);
    transform: scale(1.06) translateY(-1px);
}

.file-preview-btn svg {
    width: 16px;
    height: 16px;
}

.file-input-wrapper.has-preview {
    padding: 16px;
}

.file-input-wrapper.has-preview .file-input-icon,
.file-input-wrapper.has-preview .file-input-text,
.file-input-wrapper.has-preview .file-input-hint {
    display: none;
}

.file-size-warning {
    margin-top: 8px;
    font-size: 12px;
    color: var(--danger);
    font-weight: 600;
    display: none;
}

.file-size-warning.visible {
    display: block;
}

/* ========= GRADERS ========= */

.graders-fieldset {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin: 0;
    margin-bottom: 0px;
    border: 1px solid rgba(148, 163, 184, 0.7);
}

.graders-legend {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    padding: 0 8px;
}

.graders-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.grader-checkbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.grader-checkbox input[type="checkbox"] {
    display: none;
}

/* Grader container */
.grader-checkbox label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;

    padding: 10px 6px;
    border-radius: var(--radius-lg);

    border: 2px solid var(--accent);   /* lime */
    background: #ffffff;          /* wit */

    cursor: pointer;
    transition: border .12s ease, background .12s ease;
    width: 100%;
    text-align: center;

    color: var(--text-main);
}

/* Hover — alleen border iets sterker */
.grader-checkbox label:hover {
    border-color: #b9e21c;
}

/* Grader naam */
.grader-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

/* Rondje voor checkmark */
.grader-check {
    width: 18px;
    height: 18px;

    border-radius: 50%;
    border: 2px solid var(--accent);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 11px;
    color: transparent;  /* onzichtbaar tot geselecteerd */

    transition: color .12s ease;
}

/* AANGEVINKT — alleen check zichtbaar */
.grader-checkbox input[type="checkbox"]:checked + label .grader-check {
    color: var(--text-main);
    background-color: var(--accent);
}

/* GEEN speciale styling bij geselecteerd */
.grader-checkbox input[type="checkbox"]:checked + label {
    background: #ffffff;
    border-color: black;
}

/* ========= BUTTONS ========= */

.btn-primary {
    display: block;
    width: 40%;
    padding: 14px 24px;

    /* lime gradient */
    background: linear-gradient(135deg, #d8ff4a, #c4f135, #b0de1f);
    color: #0b1120;

    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.18s ease;
     font-family: "Space Grotesk", sans-serif !important;

    /* zachte lime glow */
    box-shadow: 0 8px 24px rgba(209, 248, 39, 0.45);

    margin-left: auto;
    margin-right: auto;
}

.btn-primary:hover {
    box-shadow: 0 14px 36px rgba(209, 248, 39, 0.6);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(209, 248, 39, 0.45);
}

/* ========= INFO BOX ========= */

.info-box {
    margin: 22px;
    padding: 12px 16px;
    background: white!important;
    border-radius: var(--radius-lg);
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.5;
    border: 1px solid rgba(148, 163, 184, 0.7);
}

.info-box strong {
    font-weight: 600;
    color: var(--text-main);
}

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

.footer {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--text-soft);
}

/* ========= PROGRESS OVERLAY ========= */

.progress-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.progress-overlay.visible {
    display: flex;
}

.progress-dialog {
    max-width: 480px;
    width: 100%;
    background: var(--card-bg-soft);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
    padding: 20px 22px 18px;
    animation: scaleIn 0.18s ease-out;
}

@keyframes scaleIn {
    from { transform: scale(0.96); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0, var(--accent), var(--accent-dark));
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.9);
    animation: pulseDot 1.2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.7; }
}

.progress-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.progress-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Bar */
.progress-bar-wrapper {
    margin-bottom: 14px;
}

.progress-bar-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.9);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    transition: width 0.5s ease-out;
}

.progress-bar-percentage {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
}

/* Steps */
.progress-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-step {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 8px;
    border-radius: 12px;
    background: transparent;
    transition: background 0.15s ease, transform 0.15s ease;
}

.progress-step.is-active {
    background: rgba(15, 23, 42, 0.9);
    transform: translateX(2px);
}

.progress-step.is-done {
    opacity: 0.85;
}

.step-badge {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 2px solid rgba(55, 65, 81, 0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: #020617;
    flex-shrink: 0;
}

.progress-step.is-active .step-badge {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.progress-step.is-done .step-badge {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
}

.step-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.step-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.step-description {
    font-size: 12px;
    color: var(--text-muted);
}

.regelafstand {
    margin-top: 10px;
    margin-bottom: 10px;
}

.progress-footer {
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

/* Body lock */
body.is-analyzing {
    cursor: progress;
}

/* ========= CENTERING MODAL ========= */

.centering-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.centering-modal.visible {
    display: flex;
}


.centering-modal-body {
    position: relative;
    width: 100%;
    height: calc(100vh - 360px); /* was 260 */
    margin-bottom: 20px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.centering-modal-header {
    margin-bottom: 16px;
    text-align: center;
}

.centering-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.centering-instructions {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.5;
    text-align: left;
}

.centering-step {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 6px;
    color: #60a5fa;
    font-weight: 600;
    margin-right: 8px;
}

.centering-canvas-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.centering-box {
    box-sizing: border-box;
}

.centering-box .resize-handle {
    z-index: 10;
}

.centering-results {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.85);
    padding: 12px 16px;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    min-width: 180px;
    pointer-events: none;
    display: none;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.centering-results.visible {
    display: block;
}

.centering-result-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.centering-result-label {
    color: #9ca3af;
}

.centering-result-value {
    font-weight: 700;
    color: #60a5fa;
}

.centering-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.centering-btn {
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    flex: 1;
    max-width: 200px;
    display: block;
    color: var(--text-main);
    margin-left: auto;
    margin-right: auto;
    margin-top: 14px;
    font-family: "Space Grotesk", sans-serif !important;
    background: linear-gradient(135deg, #d8ff4a, #c4f135, #b0de1f);

}

.centering-btn-reset {
    background: #ffffff;
    color: #000000;
    border-radius: 8px;
    border: 1px solid var(--text-muted);
}



.centering-btn-cancel {
     background: #ffffff;
    color: #000000;
    border-radius: 8px;
    border: 1px solid var(--text-muted);
}

.centering-btn-apply {
    background: var(--accent);
    color: black;
}


.centering-btn-cancel:hover, .centering-btn-reset:hover, .centering-btn-apply {
    transform: translateY(-1px);
}


.centering-btn-apply:disabled {
    background: #374151;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Gradient overlay alleen voor de blauwe inner box */
.centering-box[data-box-id="inner"]::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: rgba(200, 59, 246, 0.55);
}

/* Border status weergave */
.border-status-line {
    margin-top: 2px;
}

.border-status-line.done {
    color: var(--success);
    font-weight: 600;
}

/* ========= RESPONSIVE (UPLOAD) ========= */

@media (max-width: 900px) {
    .page-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

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

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

@media (max-width: 640px) {
    .page-container {
        padding: 20px 12px 30px;
    }

    .graders-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .centering-modal-body {
        width: 100%;
        height: calc(100vh - 190px);
    }
}

/* ========= OUTPUT PAGE STYLES ========= */



/* Demo banner */
.demo-banner {
    background: linear-gradient(90deg, #f97316, #facc15);
    color: #111827;
    padding: 9px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin: 0 auto 16px;
    max-width: 1024px;
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(248, 250, 252, 0.15);
}

/* PAGE HEADER OUTPUT */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 24px;
}

.page-title-block {
    flex: 1.4;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.1), rgba(15, 23, 42, 0.9));
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    color: var(--text-soft);
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.pill strong {
    color: var(--text-strong);
    font-weight: 600;
}

.pill span {
    opacity: 0.75;
}

.page-header-right {
    flex: 0 0 210px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.session-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.95));
    border-radius: 999px;
    padding: 4px 10px 4px 6px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-soft);
}

.session-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(17, 24, 39, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--text-main);
    text-decoration: none;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.85);
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.btn-secondary:hover {
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.95);
    border-color: rgba(56, 189, 248, 0.9);
    background: linear-gradient(135deg, #0f172a, #020617);
}

/* Cards algemene styling output */

.card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.card-subtitle {
    font-size: 13px;
    color: var(--text-soft);
    margin-top: 2px;
}

.badge-tag {
    display: inline-block;
    background: var(--bg-chip);
    color: var(--accent-strong);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    padding: 3px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    border: 1px solid rgba(45, 212, 191, 0.35);
}

/* Layout grid bovenin: kaart + images */

.layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
    gap: 18px;
    margin-bottom: 22px;
}

/* Info grid in kaart */

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 16px;
}

.info-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.info-value {
    font-size: 13px;
    font-weight: 600;
    margin-top: 3px;
    color: var(--text-main);
}

/* Images */

.images-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.image-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 1));
    border: 1px solid rgba(30, 64, 175, 0.6);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.image-card img {
    width: 100%;
    display: block;
    border-radius: 12px;
}

.image-label {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-strong);
    font-size: 10px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
}

.holo-hint {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
}

.holo-hint.ok {
    background: rgba(22, 163, 74, 0.12);
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, 0.7);
}

.holo-hint.warn {
    background: rgba(250, 204, 21, 0.08);
    color: #fef9c3;
    border: 1px solid rgba(250, 204, 21, 0.8);
}

/* Section titles */

.section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-soft);
    margin-bottom: 12px;
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(
        to right,
        rgba(148, 163, 184, 0.7),
        transparent
    );
    opacity: 0.6;
}

/* Metrics cards */

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.metric-card {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 1));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(51, 65, 85, 0.9);
    padding: 11px 12px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.9);
}

.metric-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.metric-main {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.metric-detail {
    font-size: 12px;
    color: var(--text-soft);
}

.metric-detail strong {
    color: var(--text-main);
}

/* Grader blokken layout */

.grader-full-block {
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 1));
    border-radius: var(--radius-xl);
    border: 1px solid rgba(51, 65, 85, 0.9);
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
    overflow: hidden;
}

.grader-full-block-inner {
    display: grid;
    grid-template-columns: 270px 1fr 1.1fr;
}

.grader-output-section {
    padding: 18px;
    border-right: 1px solid rgba(30, 64, 175, 0.6);
    position: relative;
}

.grader-output-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.08), transparent 70%);
    pointer-events: none;
}

.grader-calc-section {
    padding: 18px;
    border-right: 1px solid rgba(30, 64, 175, 0.45);
    font-size: 13px;
}

.grader-philosophy-section {
    padding: 18px;
    font-size: 12px;
    line-height: 1.55;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.96));
}

.grader-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.grader-name {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.grader-divider {
    margin: 10px 0 10px;
    border-top: 1px dashed rgba(148, 163, 184, 0.6);
}

.grade-circle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cirkels */



.grade-circle-small {
    width: 46px;
    height: 46px;
    padding: 4px;
}

.grade-circle-inner {
    background: radial-gradient(circle at top, #020617, #020617);
    border-radius: 50%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--text-strong);
}

.grade-circle-score {
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

.grade-circle-score-small {
    font-size: 13px;
}

.grade-circle-label {
    font-size: 9px;
    opacity: 0.75;
}

.grader-subgrades {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
}

.subgrade-item {
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.subgrade-label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 10px;
}

.calc-section-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.calc-events {
    margin-top: 8px;
    padding-left: 16px;
    font-size: 11px;
    color: var(--text-soft);
}

.calc-events li {
    margin-bottom: 3px;
}

.philosophy-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-soft);
}

/* Checklist / struct label */

.grader-struct {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-soft);
}

/* Damage details */

.damage-details-section {
    margin-top: 22px;
}

.damage-category {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 1));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(51, 65, 85, 0.9);
    padding: 16px 16px 14px;
    margin-bottom: 12px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.95);
}

.damage-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.85);
}

.damage-category-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-main);
}

.damage-category-score {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-soft);
}

.damage-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 12px;
}

.damage-side-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.damage-side-container {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 12px;
    padding: 14px;
    border: 1px solid rgba(51, 65, 85, 0.9);
}

.damage-side-header {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(55, 65, 81, 0.9);
    color: var(--text-soft);
}

.damage-corners-grid {
    display: grid;
    grid-template-columns: 4fr 1fr;
    gap: 10px;
}

.damage-edges-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.damage-detail-item {
    background: #020617;
    border-radius: 10px;
    padding: 9px 10px;
    border-left: 3px solid;
    font-size: 12px;
}

.damage-detail-item.severity-low {
    border-left-color: #22c55e;
}

.damage-detail-item.severity-medium {
    border-left-color: #fbbf24;
}

.damage-detail-item.severity-high {
    border-left-color: #f97316;
}

.damage-detail-item.severity-severe {
    border-left-color: #ef4444;
}

.damage-detail-item.severity-perfect {
    border-left-color: #22c55e;
    background: rgba(22, 163, 74, 0.18);
}

.damage-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.damage-detail-location {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
}

.damage-detail-severity {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.damage-detail-severity.severity-low {
    background: rgba(22, 163, 74, 0.16);
    color: #bbf7d0;
}

.damage-detail-severity.severity-medium {
    background: rgba(250, 204, 21, 0.18);
    color: #fef9c3;
}

.damage-detail-severity.severity-high {
    background: rgba(249, 115, 22, 0.22);
    color: #ffedd5;
}

.damage-detail-severity.severity-severe {
    background: rgba(248, 113, 113, 0.25);
    color: #fee2e2;
}

.damage-detail-types {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.damage-type-badge {
    font-size: 10px;
    padding: 2px 6px;
    background: rgba(55, 65, 81, 0.9);
    color: #e5e7eb;
    border-radius: 999px;
    font-weight: 500;
}

.damage-detail-description {
    font-size: 12px;
    color: var(--text-soft);
    line-height: 1.4;
}

.no-damage-message {
    text-align: center;
    padding: 20px;
    color: var(--text-soft);
    font-size: 13px;
}

.no-damage-icon {
    font-size: 30px;
    margin-bottom: 8px;
    opacity: 0.6;
}

/* JSON cards / debug */

.json-block {
    margin-top: 22px;
}

.json-card {
    background: radial-gradient(circle at top, #020617, #020617);
    border-radius: 14px;
    padding: 10px 12px;
    color: #e5e7eb;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    font-size: 11px;
    overflow: auto;
    border: 1px solid rgba(31, 41, 55, 0.95);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.95);
}

.json-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    color: #9ca3af;
    font-size: 10px;
}

.json-header .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    margin-right: 4px;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.85);
}

.json-header-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Footer link */

.footer-link {
    margin-top: 18px;
    font-size: 13px;
}

.footer-link a {
    color: var(--accent-strong);
    text-decoration: none;
    font-weight: 500;
}

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

/* Radar chart card */

.grader-full-block.chart-block {
    margin-bottom: 24px;
}

/* Responsive output */

@media (max-width: 1000px) {
    .grader-full-block-inner {
        grid-template-columns: 1fr;
    }

    .grader-output-section,
    .grader-calc-section {
        border-right: none;
        border-bottom: 1px solid rgba(30, 64, 175, 0.6);
    }
}

@media (max-width: 900px) {
    .layout-grid {
        grid-template-columns: minmax(0, 1fr);
    }

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

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

@media (max-width: 768px) {
    body {
        padding: 0px;
    }

    .page {
        padding: 16px 14px 24px;
        border-radius: 20px;
    }

    .page-header {
        flex-direction: column;
        gap: 10px;
    }

    .page-header-right {
        align-items: flex-start;
    }

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

    .damage-side-split {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .damage-corners-grid,
    .damage-edges-grid {
        grid-template-columns: 1fr;
    }
}





.kaart, .page {
    max-width: 1024px;
    background: white;
    border-radius: 28px;
    padding: 22px 22px 32px;
    border: 1px solid #d8dbe0;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.kaart::before,
.page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.85), transparent 60%);

    pointer-events: none;
    z-index: -1;
}

.info-box .centering-btn {
    margin-left: 0;
    margin-right: auto;
}

/* Op mobile: ook gecentreerd */
@media (max-width: 640px) {
    .info-box .centering-btn {
        margin-left: auto;
        margin-right: auto;
    }
}