`;
document.getElementById("journalOutput").innerHTML = outputHTML;
document.getElementById("journalOutput").dataset.pdfContent = `
Trade Date: ${tradeDate}
Asset: ${asset}
Position: ${position}
Entry Price: $${entryPrice.toFixed(2)}
Exit Price: $${exitPrice.toFixed(2)}
Profit/Loss: $${profitLoss}
Emotion: ${emotion}
Insight: ${emotionalInsights[emotion]}
Notes: ${notes || "(None)"}
`.trim();
document.getElementById("downloadPDFButton").style.display = "inline-block";
document.getElementById("journalForm").reset();
}