/* Error Report Management */
.error-report-controls {
    margin-bottom: 1.5rem;
}

.error-report-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.error-report-filters .filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 180px;
}

.error-report-filters .filter-group .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.error-report-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.error-report-table thead th {
    background: var(--color-bg-secondary);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--color-text);
    border-bottom: 2px solid var(--color-border);
    font-size: 0.9rem;
}

.error-report-table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 0.9rem;
}

.error-report-row:hover {
    background: var(--color-info-light);
}

/* Status- und Inhaltstyp-Badges (identische Basis, unterschiedliche Farben) */
.error-status-badge,
.content-type-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.status-unresolved {
    background: var(--color-danger);
}

.status-pending {
    background: var(--color-warning);
}

.status-fixed {
    background: var(--color-success);
}

.type-gapfill {
    background: var(--color-content-gapfill);
}

.type-matching {
    background: var(--color-content-matching);
}

.type-mcquizz {
    background: var(--color-content-mcquizz);
}

/* Error Sidebar in Modal */
.modal-with-sidebar {
    display: flex;
    gap: 1.5rem;
}

.modal-form-content {
    flex: 1;
    min-width: 0;
}

.error-sidebar {
    width: 350px;
    flex-shrink: 0;
    border-left: 2px solid var(--color-danger);
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    max-height: 70vh;
}

.error-sidebar h4 {
    color: var(--color-danger);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.error-sidebar-reports {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    max-height: 300px;
    padding-right: 0.5rem;
}

.error-report-item {
    background: var(--color-danger-bg);
    border: 1px solid var(--color-danger-border);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.error-report-item .reporter-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text);
}

.error-report-item .report-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.error-report-item .report-message {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.error-sidebar-status {
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
}

.error-sidebar-status .form-group {
    margin-bottom: 0.75rem;
}

.error-sidebar-status .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.modal-content.has-error-sidebar {
    max-width: 1100px;
    width: 95%;
}

/* Responsive */
@media (max-width: 768px) {
    .error-report-filters {
        flex-direction: column;
    }

    .modal-with-sidebar {
        flex-direction: column;
    }

    .error-sidebar {
        width: 100%;
        border-left: none;
        border-top: 2px solid var(--color-danger);
        padding-left: 0;
        padding-top: 1rem;
    }

    .modal-content.has-error-sidebar {
        max-width: 95%;
    }
}
