// Turbo Starter Templates Plugin JavaScript
function nextStep() {
    const currentUrl = new URL(window.location);
    const currentStep = parseInt(currentUrl.searchParams.get('ci') || '0');
    const nextStep = currentStep + 1;
    
    currentUrl.searchParams.set('ci', nextStep);
    window.location.href = currentUrl.toString();
}

function previousStep() {
    const currentUrl = new URL(window.location);
    const currentStep = parseInt(currentUrl.searchParams.get('ci') || '0');
    const prevStep = Math.max(0, currentStep - 1);
    
    currentUrl.searchParams.set('ci', prevStep);
    window.location.href = currentUrl.toString();
}

// Initialize when DOM is ready
document.addEventListener('DOMContentLoaded', function() {
    console.log('Turbo Starter Templates Plugin loaded');
});
