/* 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: #555;
}

.error-report-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.error-report-table thead th {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.9rem;
}

.error-report-table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.error-report-row:hover {
    background: #f0f7ff;
}

/* Status Badges */
.error-status-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.status-unresolved {
    background: #e74c3c;
}

.status-pending {
    background: #f39c12;
}

.status-fixed {
    background: #27ae60;
}

/* Content Type Badges */
.content-type-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.type-gapfill {
    background: #8e44ad;
}

.type-matching {
    background: #2980b9;
}

.type-mcquizz {
    background: #16a085;
}

/* 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 #e74c3c;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    max-height: 70vh;
}

.error-sidebar h4 {
    color: #e74c3c;
    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: #fdf2f2;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.error-report-item .reporter-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #333;
}

.error-report-item .report-date {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.error-report-item .report-message {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
}

.error-sidebar-status {
    border-top: 1px solid #ddd;
    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 #e74c3c;
        padding-left: 0;
        padding-top: 1rem;
    }

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