r) {
                console.error('JSON Parse Error:', jsonError);
                alert('Server returned invalid JSON response');
            }
        } catch (error) {
            console.error('Fetch Error:', error);
            alert(`Project creation failed: ${error.message}`);
            progressContainer.innerHTML = '';
            document.getElementById('file-list').style.display = 'none';
            document.getElementById('file-list').innerHTML = '';
            createProjectBtn.disabled = tr