(query) {
            document.getElementById('searchInput').value = query;
            performSearch(query);
        }

        async function performSearch(query) {
            if (!query.trim()) return;

            const loadingIndicator = document.getElementById('loadingIndicator');
            const resultsSection = document.getElementById('resultsSection');
            const searchBtn = document.getElementById('searchBtn');
            const dataSize = document.getElementById('dataSizeSelect').value;