{searchBarWidth}px`;
    }

    function updateAutocomplete(query) {
        autocompleteList.innerHTML = ""; // Clear suggestions
        highlightedIndex = -1; // Reset highlighting

        const matches = outputs.filter(output =>
            output.name.toLowerCase().includes(query.toLowerCase())
        );

        matches.forEach(match => {
            const listItem = document.createElement("li");
            listItem.textContent = match.name;
            listItem.addEventListener("click", () => {
  