    modal.style.display = 'none';
                        location.reload();
                    }, 1000);
                } else {
                    alert(result.error || 'Failed to create project');
                    progressContainer.innerHTML = '';
                    document.getElementById('file-list').style.display = 'none';
                    document.getElementById('file-list').innerHTML = '';
                    createProjectBtn.disabled = true;
                }
            } catch (jsonErro