  </div>
                        </div>
                    `;
                    
                    document.body.appendChild(dialog);
                    
                    // Add event listeners
                    dialog.querySelector('.close-button').addEventListener('click', () => dialog.remove());
                    dialog.querySelector('.modal-button.primary').addEventListener('click', () => dialog.remove());
                    dialog.querySelector('.modal-button.secondary').addEventListener(