/* Toetsevaluatie Formulier Styles */

/* Input Section */
.input-section {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(229, 231, 235, 0.8);
    margin-bottom: 2rem;
}

.basic-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f3f4f6;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--js-dark);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--js-primary);
}

/* Section Inputs */
.question-mode {
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin: 0 0 1.25rem;
    min-width: 0;
}

.question-mode legend {
    padding: 0 0.4rem;
    font-weight: 700;
    color: var(--js-dark);
}

.question-mode label {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.4rem 0;
    cursor: pointer;
}

.question-mode input {
    accent-color: var(--js-primary);
}

.question-mode .form-hint,
.questions-editor > .form-hint {
    display: block;
    margin: 0.5rem 0 1rem;
    color: #475569;
    line-height: 1.6;
}

.question-rows {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.question-row {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
}

.question-row .form-group {
    min-width: 0;
}

.question-row input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.question-row input[aria-invalid="true"] {
    border-color: #b91c1c;
}

.question-row-position {
    font-size: 0.85rem;
    color: #475569;
}

.question-row-actions {
    display: flex;
    gap: 0.35rem;
    align-self: end;
}

.question-row-actions button {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: white;
    color: #334155;
    font: inherit;
    cursor: pointer;
}

.question-row-actions button:disabled,
#add-vraag-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.question-row-actions button:focus-visible,
.question-mode input:focus-visible {
    outline: 3px solid var(--js-primary);
    outline-offset: 2px;
}

.questions-summary {
    margin-top: 1rem;
    font-weight: 600;
    color: #334155;
}

.questions-error {
    color: #b91c1c;
    margin-top: 0.5rem;
}

.eval-table td:first-child {
    overflow-wrap: anywhere;
    max-width: 6rem;
}

@media (max-width: 640px) {
    .input-section {
        padding: 1rem;
    }

    .question-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .question-row-position,
    .question-row-actions {
        grid-column: 1 / -1;
    }

    .question-row-actions {
        justify-content: flex-end;
    }

    .question-row .form-group input {
        padding: 0.6rem;
    }

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

.section-input {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f3f4f6;
}

.section-input:last-child {
    border-bottom: none;
}

.section-input h3 {
    color: var(--js-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Vragen List */
.vragen-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.vraag-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1rem;
    align-items: center;
}

.vraag-number {
    font-weight: 700;
    color: var(--js-primary);
    font-size: 1.1rem;
    min-width: 60px;
}

.vraag-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.vraag-type-select,
.vraag-points-input {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.9rem;
}

.vraag-type-select {
    min-width: 80px;
}

.vraag-points-input {
    min-width: 80px;
    max-width: 80px;
}

/* Bulk Actions */
.bulk-actions {
    background: #f1f5f9;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.bulk-controls label {
    font-weight: 600;
    color: var(--js-dark);
    display: block;
    margin-bottom: 0.75rem;
}

.bulk-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    border: 1px solid var(--js-primary);
    background: white;
    color: var(--js-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: var(--js-primary);
    color: white;
}

/* Control Buttons */
.control-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

/* Preview: the sheet keeps its A4 proportions, including on small screens. */
.preview-container {
    background: #edf1f6;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    margin-top: 2rem;
    max-width: 100%;
    overflow-x: auto;
}

.evaluation-document {
    box-sizing: border-box;
    background: #fff;
    width: 210mm;
    min-width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    padding: 14mm 12mm;
    box-shadow: 0 3px 18px #20334e12;
    border: 1px solid #dce2e9;
    border-radius: 2px;
    font-family: Inter, Arial, sans-serif;
    color: #243245;
    line-height: 1.45;
}

.eval-header {
    text-align: left;
    margin-bottom: 1.75rem;
}

.eval-title {
    margin-bottom: 0.65rem;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.2;
    color: #1e293b;
}

.eval-context {
    margin-bottom: 1.5rem;
}

.eval-test-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    overflow-wrap: anywhere;
}

.eval-subject {
    font-size: 0.8rem;
    color: #475569;
}

.eval-info {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
}

.eval-info-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.eval-info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
}

.eval-write-line {
    display: block;
    height: 1.75rem;
    border-bottom: 1px solid #8491a3;
}

.eval-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}

.eval-table caption {
    text-align: left;
    padding-bottom: 0.75rem;
    font-size: 0.75rem;
    color: #475569;
}

.eval-table th,
.eval-table td {
    border: 1px solid #c4cdd8;
    text-align: center;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.eval-table th {
    padding: 0.65rem 0.25rem;
    background: #edf2f7;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.4;
}

.eval-table td {
    height: 2.5rem;
    padding: 0.35rem 0.25rem;
}

.eval-table td:first-child {
    background: #f6f8fb;
    font-weight: 600;
}

.eval-table .question-col,
.eval-table .points-col {
    width: 7.5%;
}

.eval-table .score-col {
    width: 8%;
}

.eval-table .error-group {
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.eval-table .error-cols {
    font-size: 0.65rem;
    font-weight: 500;
    hyphens: auto;
}

.eval-table .checkbox {
    width: 13px;
    height: 13px;
    border: 1px solid #718096;
    border-radius: 2px;
    display: inline-block;
    vertical-align: middle;
}

.eval-table .score-line,
.eval-table .other-space {
    min-height: 1.25rem;
    display: block;
}

.eval-total {
    margin-top: 1rem;
    text-align: right;
    font-size: 0.8rem;
    color: #334155;
    break-inside: avoid;
}

.page-break {
    page-break-before: always;
    break-before: page;
}

@media screen {
    .evaluation-document .page-break {
        height: 0;
        border-top: 1px dashed #c4cdd8;
        margin: 2.5rem -12mm;
    }
}

@media print {
    @page {
        size: A4;
        margin: 14mm 12mm;
    }

    html, body {
        margin: 0 !important;
        padding: 0 !important;
        font-size: 11pt;
        line-height: 1.3;
        color: #000;
    }

    .section, .container, #preview {
        margin: 0 !important;
        padding: 0 !important;
    }

    .input-section,
    .control-buttons,
    nav,
    footer,
    .hero,
    .section h2 {
        display: none !important;
    }

    .preview-container {
        background: none;
        border: none;
        padding: 0;
        margin: 0;
        overflow: visible;
    }

    .evaluation-document {
        box-shadow: none;
        border: none;
        border-radius: 0;
        width: 100%;
        min-width: 0;
        min-height: 0;
        margin: 0;
        padding: 0;
        color: #111;
    }

    .eval-header {
        margin-bottom: 7mm;
        break-inside: avoid;
    }

    .eval-title {
        font-size: 21pt;
    }

    .eval-context {
        margin-bottom: 6mm;
    }

    .eval-info {
        gap: 6mm;
    }

    .eval-write-line {
        height: 7mm;
        border-color: #666;
    }

    .eval-table {
        font-size: 10pt;
        break-inside: auto;
    }

    .eval-table caption {
        font-size: 9pt;
        padding-bottom: 3mm;
    }

    .eval-table thead {
        display: table-header-group;
    }

    .eval-table tbody {
        display: table-row-group;
    }

    .eval-table th {
        padding: 3mm 1mm;
        font-size: 8pt;
    }

    .eval-table .error-cols {
        font-size: 7.5pt;
    }

    .eval-table td {
        height: 9mm;
        padding: 1.5mm 1mm;
    }

    .eval-table th,
    .eval-table td {
        border-color: #8a929d;
        color: #111;
    }

    .eval-table tr,
    .eval-info {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .eval-table .checkbox {
        border-color: #555;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .basic-info {
        grid-template-columns: 1fr;
    }
    
    .vraag-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        text-align: center;
    }
    
    .vraag-controls {
        justify-content: center;
    }
    
    .bulk-buttons {
        justify-content: center;
    }
    
    .control-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .preview-container {
        padding: 1rem;
    }

}

/* How to Use Section */
.how-to-use {
    background: #f8fafc;
    padding: 4rem 0;
}

.how-to-use h2 {
    text-align: center;
    color: var(--js-dark);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.8;
}

.explanation-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.explanation-step {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.explanation-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--js-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.explanation-step h3 {
    color: var(--js-dark);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1rem 0;
}

.explanation-step p {
    color: #64748b;
    line-height: 1.6;
}

.explanation-step ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.explanation-step ul li {
    color: #64748b;
    line-height: 1.8;
    padding-left: 0;
}

/* Theoretische basis styling */
.theoretical-basis {
    background: #f8fafc;
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    color: var(--js-dark);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.bron-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.bron-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.bron-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bron-header h3 {
    color: var(--js-primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.bron-auteur {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.bron-citaat {
    background: #f8fafc;
    border-left: 4px solid var(--js-primary);
    padding: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #475569;
    line-height: 1.6;
}

.bron-link {
    margin-top: 1rem;
}

.bron-link a {
    display: inline-flex;
    align-items: center;
    color: var(--js-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.bron-link a:hover {
    color: var(--js-accent);
}

.bron-link a:before {
    content: "📄";
    margin-right: 0.5rem;
}

/* Responsive voor nieuwe secties */
@media (max-width: 768px) {
    .explanation-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .bron-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .bron-card {
        padding: 1rem;
    }
    
    .bron-header h3 {
        font-size: 1rem;
    }
    
    .bron-citaat {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .section-title,
    .how-to-use h2 {
        font-size: 2rem;
    }
    
    .section-intro {
        font-size: 1rem;
    }
}
/* ========== ERROR COLUMNS EDITOR ========== */
.error-columns-section {
    margin-top: 0.5rem;
}

.error-columns-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem;
    background: var(--js-gray-100, #f3f4f6);
    border-radius: 6px;
    transition: background 0.2s;
}

.error-columns-header:hover {
    background: var(--js-gray-200, #e5e7eb);
}

.error-columns-header label {
    cursor: pointer;
    font-weight: 500;
    margin: 0;
}

.toggle-icon {
    font-size: 0.8rem;
    color: #6b7280;
}

.error-columns-editor {
    margin-top: 0.75rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.error-columns-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.error-column-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-column-item input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
}

.error-column-item input:disabled {
    background: #f3f4f6;
    color: #6b7280;
}

.error-column-item .hint {
    font-size: 0.75rem;
    color: #6b7280;
    font-style: italic;
}

.error-column-item.fixed input {
    font-style: italic;
}

.btn-icon {
    padding: 0.25rem 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    color: #dc2626;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: #e5e7eb;
}

.error-columns-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.85rem;
}

/* ========== TOOL TABS ========== */

.tool-selection {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.tool-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tool-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.tool-tab:hover {
    border-color: var(--js-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.tool-tab.active {
    border-color: var(--js-primary);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(5, 150, 105, 0.05));
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.tool-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.tool-label {
    font-weight: 700;
    color: var(--js-dark);
    font-size: 1.1rem;
}

.tool-desc {
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
}

/* ========== RUBRIC WIZARD ========== */

.rubric-wizard {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(229, 231, 235, 0.8);
    margin-bottom: 2rem;
}

/* Progress Bar */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f3f4f6;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.progress-step:last-child::after {
    display: none;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.progress-step.active .step-num,
.progress-step.completed .step-num {
    background: var(--js-primary);
    color: white;
}

.progress-step.completed .step-num {
    background: var(--js-accent);
}

.step-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.5rem;
    text-align: center;
}

.progress-step.active .step-label {
    color: var(--js-primary);
    font-weight: 600;
}

/* Wizard Steps */
.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
}

.step-header {
    margin-bottom: 1.5rem;
}

.step-header h3 {
    color: var(--js-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.step-instruction {
    color: #6b7280;
    font-size: 0.95rem;
}

.step-content {
    margin-bottom: 1.5rem;
}

/* Criterion/Level Items */
.criterion-item,
.level-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.criterion-inputs,
.level-inputs {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.criterion-item .btn-remove {
    margin-top: 1.75rem;
}

/* Tip Box */
.tip-box {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(5, 150, 105, 0.05));
    border-left: 4px solid var(--js-primary);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
}

.tip-box ul {
    margin: 0.5rem 0 0 1.5rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.tip-box li {
    margin-bottom: 0.25rem;
}

/* Wizard Navigation */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 2px solid #f3f4f6;
    margin-top: 1.5rem;
}

/* Descriptors Table */
.descriptors-table-wrapper {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.descriptors-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.descriptors-table th,
.descriptors-table td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
}

.descriptors-table th {
    background: #f1f5f9;
    font-weight: 600;
    color: var(--js-dark);
    text-align: center;
}

.descriptors-table th:first-child {
    min-width: 150px;
}

.descriptors-table .criterion-cell {
    background: #f8fafc;
    min-width: 150px;
}

.leerdoel-hint {
    color: #6b7280;
    font-weight: normal;
}

.descriptor-input {
    width: 100%;
    min-height: 80px;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.85rem;
    resize: vertical;
    font-family: inherit;
}

.descriptor-input:focus {
    outline: none;
    border-color: var(--js-primary);
}

/* Weights Editor */
.weights-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.weight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.weight-item label {
    flex: 1;
    font-weight: 500;
}

.weight-item input {
    width: 60px;
    padding: 0.375rem;
    text-align: center;
}

.calculation-info {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.calculation-info p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

/* ========== RUBRIC PREVIEW ========== */

.rubric-document {
    background: white;
    padding: 2rem;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.rubric-page {
    max-width: 210mm;
    margin: 0 auto;
}

.rubric-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #333;
}

.rubric-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #1a1a1a;
}

.rubric-vak {
    font-size: 1rem;
    color: #555;
}

.rubric-opdracht {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

.rubric-info {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
    padding: 0.75rem;
    background: #f5f5f5;
    border-radius: 0.5rem;
}

.info-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.info-label {
    font-weight: 600;
}

.info-line {
    color: #999;
}

/* Rubric Table */
.rubric-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.85rem;
}

.rubric-table th,
.rubric-table td {
    border: 1px solid #333;
    padding: 0.5rem;
    vertical-align: top;
}

.rubric-table th {
    background: #f0f0f0;
    font-weight: 600;
    text-align: center;
}

.rubric-table .criteria-header {
    width: 20%;
    text-align: left;
}

.rubric-table .weight-header,
.rubric-table .score-header {
    width: 8%;
}

.rubric-table .level-header {
    text-align: center;
}

.rubric-table .criterion-cell {
    background: #fafafa;
}

.leerdoel-text {
    color: #666;
    font-weight: normal;
}

.rubric-table .weight-cell,
.rubric-table .score-cell {
    text-align: center;
    font-weight: 600;
}

.rubric-table .descriptor-cell {
    font-size: 0.8rem;
    line-height: 1.4;
}

.empty-descriptor {
    color: #ccc;
}

.rubric-table tfoot td {
    background: #f0f0f0;
    font-weight: 600;
}

.total-label {
    text-align: right;
}

.total-max {
    text-align: center;
}

.total-score {
    text-align: center;
}

/* Rubric Footer */
.rubric-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.grade-info {
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.feedback-section {
    margin-top: 1rem;
}

.feedback-lines {
    display: block;
    width: 100%;
    height: 1.5rem;
    border-bottom: 1px solid #999;
    margin-bottom: 0.25rem;
}

/* Print Styles for Evaluatie Form */
@media print {
    /* When printing evaluatie, hide all major sections */
    body.printing-evaluatie .navigation,
    body.printing-evaluatie .hero,
    body.printing-evaluatie .tool-selection,
    body.printing-evaluatie #how-to-evaluatie,
    body.printing-evaluatie #how-to-rubric,
    body.printing-evaluatie #setup,
    body.printing-evaluatie #rubric-setup,
    body.printing-evaluatie #rubric-preview,
    body.printing-evaluatie #theoretical-basis,
    body.printing-evaluatie .footer,
    body.printing-evaluatie footer,
    body.printing-evaluatie input[type="file"] {
        display: none !important;
    }
    
    /* Show evaluatie preview section but hide its header */
    body.printing-evaluatie #preview {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    body.printing-evaluatie #preview h2 {
        display: none !important;
    }
    
    body.printing-evaluatie #preview .container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }
    
    /* Style the evaluation document for printing */
    body.printing-evaluatie .evaluation-document {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    body.printing-evaluatie .evaluation-document .page {
        max-width: 100%;
        padding: 10mm;
        box-shadow: none !important;
        border: none !important;
    }
}

/* Print Styles for Rubric */
@media print {
    /* When printing rubric, hide all major sections */
    body.printing-rubric .navigation,
    body.printing-rubric .hero,
    body.printing-rubric .tool-selection,
    body.printing-rubric #how-to-evaluatie,
    body.printing-rubric #how-to-rubric,
    body.printing-rubric #setup,
    body.printing-rubric #rubric-setup,
    body.printing-rubric #preview,
    body.printing-rubric #theoretical-basis,
    body.printing-rubric .footer,
    body.printing-rubric footer,
    body.printing-rubric input[type="file"] {
        display: none !important;
    }
    
    /* Show rubric preview section but hide its header */
    body.printing-rubric #rubric-preview {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    body.printing-rubric #rubric-preview h2 {
        display: none !important;
    }
    
    body.printing-rubric #rubric-preview .container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }
    
    /* Style the rubric document for printing */
    body.printing-rubric .rubric-document {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    body.printing-rubric .rubric-page {
        max-width: 100%;
        padding: 10mm;
    }
    
    body.printing-rubric .rubric-table {
        page-break-inside: avoid;
    }
    
    body.printing-rubric .rubric-header {
        border-bottom-color: #000;
    }
    
    body.printing-rubric .rubric-table th,
    body.printing-rubric .rubric-table td {
        border-color: #000;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .tool-tabs {
        flex-direction: column;
    }
    
    .tool-tab {
        min-width: unset;
        width: 100%;
    }
    
    .wizard-progress {
        overflow-x: auto;
        gap: 0.5rem;
    }
    
    .progress-step::after {
        display: none;
    }
    
    .criterion-inputs,
    .level-inputs {
        grid-template-columns: 1fr;
    }
    
    .descriptors-table th:first-child {
        min-width: 100px;
    }
}

/* Form group textarea */
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--js-primary);
}
