;
            importModal.reset();
            importSubmitBtn.disabled = true;
        });
    });

    importForm.addEventListener('submit', async (e) => {
        e.preventDefault();
        if (!currentImportProject) {
            alert('No project selected');
            return;
        }
        const uploadId = importModal.getStoredUploadId();
        if (!uploadId) {
            alert('Please select at least one image to import');
            return;
        }

        try {
            document.get