   const items = document.getElementById('items').value;
            if (items) measure.items = parseInt(items);
            
            const waves = document.getElementById('waves').value;
            measure.waves = waves ? waves.split(',').map(w => parseInt(w.trim())) : [];
            
            renderMeasuresList();
            alert('Changes saved!');
        };

        // Search functionality
        document.getElementById('searchBox').oninput = renderMeasuresList;

        // Initial render
  