document.addEventListener('DOMContentLoaded', () => {
  const shouldShowToast = document.body.dataset.showToast === '1';
  const toastEl = document.getElementById('saveToast');

  if (shouldShowToast && toastEl && window.bootstrap) {
    const toast = new window.bootstrap.Toast(toastEl, { delay: 3500 });
    toast.show();
  }
});
