bute('download', exportFileDefaultName);
            linkElement.click();
        }

        function copyJSON() {
            const json = JSON.stringify(measuresDB, null, 2);
            navigator.clipboard.writeText(json).then(() => {
                alert('JSON copied to clipboard!');
            });
        }

        // Form submission
        document.getElementById('measureForm').onsubmit = (e) => {
            e.preventDefault();
            
            const measure = measuresDB[currentCategory][