etElementById('examplesDropdown');
            const button = event.target.closest('.examples-dropdown');
            
            if (!button) {
                dropdown.classList.remove('show');
            }
        });

        // Keyboard shortcuts
        document.addEventListener('keydown', function(event) {
            if ((event.ctrlKey || event.metaKey) && event.key === 'Enter') {
                event.preventDefault();
                runCode();
            }
        });

        // Initialize
  