-navigation', label: 'Top Navigation' }
    ];

    // Get DOM elements
    const codeEditor = document.getElementById('codeEditor');
    const preview = document.getElementById('preview');
    const updatePreviewBtn = document.getElementById('updatePreview');
    const sandboxControls = document.getElementById('sandboxControls');

    // Set initial editor content
    codeEditor.value = defaultHtml;

    // Create sandbox checkboxes
    sandboxOptions.forEach(option => {
      const div = document.createEl