=> {
            const cell = e.target.closest('.cell');
            if (cell) {
                selectCell(cell.dataset.cellId);
            }
        });
        
        // Initialize
        document.addEventListener('DOMContentLoaded', () => {
            // Load theme
            const savedTheme = localStorage.getItem('notebook-theme') || 'light';
            document.body.dataset.theme = savedTheme;
            
            // Initialize first cell editor
            initializeEditor('cell-1');
    