
            const strategySelector = document.getElementById('strategySelector');
            const strategy = strategySelector ? strategySelector.value : 'cache-first';

            // Show loading state
            loadingIndicator.style.display = 'block';
            resultsSection.style.display = 'none';
            searchBtn.disabled = true;
            searchBtn.textContent = 'üîÑ Searching...';

            try {
                const response = await fetch(`/api/search?q=${encodeURIComponent(