 document.getElementById('mindmap-viewer');
        const viewerContent = document.getElementById('viewer-content');
        const editorElement = document.getElementById('markdown-editor');
        const textarea = document.getElementById('markdown-textarea');
        const editorOverlay = document.getElementById('editor-overlay');

        if (show) {
            viewerContent.style.display = 'none';
            editorElement.style.display = 'block';
            editorOverlay.style.display = 'block';
    