document.addEventListener('DOMContentLoaded', function() {
// File upload handling
const fileInput = document.getElementById('image-upload');
const uploadArea = document.querySelector('.border-dashed');
fileInput.addEventListener('change', function(e) {
if (e.target.files.length) {
const file = e.target.files[0];
const reader = new FileReader();
reader.onload = function(event) {
const previewArea = document.querySelector('.aspect-w-16');
previewArea.innerHTML = `
Prompt: ${prompt || 'No prompt provided'}
Style: ${document.querySelector('select').value}
Content Freedom: ${document.querySelector('input[name="freedom"]:checked').nextElementSibling.textContent.trim()}
NSFW Enhancement: ${document.querySelector('input[type="checkbox"]').checked ? 'Enabled' : 'Disabled'}