("div");
                        fileItem.innerHTML = `
                        <i class="fas fa-file-pdf fa-2x text-danger"></i>
                        <span>${file.name}</span>
                    `;
                        fileItem.style.cursor = "pointer";
                        fileItem.classList.add("file-item");

                        // Add click event to show preview
                        fileItem.addEventListener("click", function () {
                            pdfPreview.src = e.target.re