${renderConflicts('Direct Conflicts in ' + proposedState, results.exactMatchState)}
${renderConflicts('Similar Names in ' + proposedState, results.similarMatchState)}
${renderConflicts('Nationwide Conflicts (Potential Trademark Issues)', results.exactMatchNationwide)}
${results.exactMatchState.length === 0 && results.similarMatchState.length === 0 && results.exactMatchNationwide.length === 0 ? '
`;
document.getElementById('report-output').innerHTML = reportHTML;
}
// --- PDF Download ---
const downloadPdfBtn = document.getElementById('download-pdf-btn');
async function downloadPDF() {
const { jsPDF } = window.jspdf;
const pdfPreview = document.getElementById('pdf-preview');
const container = document.getElementById('pdf-container');
const reportContent = document.getElementById('report-output').innerHTML;
pdfPreview.innerHTML = `
No potential conflicts found in the database.
' : ''}