     btn.classList.add('selected');
            setupInput.value = btn.dataset.type;
        });
    });

    nextBtns.forEach(btn => {
        btn.addEventListener('click', async () => {
            const nextTab = btn.dataset.nextTab;
            if (nextTab === 'setup') {
                const projectName = document.getElementById('project-name').value;
                if (!projectName) {
                    alert('Project name is required');
                    return;
                }
            } el