// ============================================ // Toast Notification Component // ============================================ const Toast = { show(message, type = 'info', duration = 4000) { const container = Helpers.$('#toast-container'); if (!container) return; const icons = { success: 'fa-check-circle', error: 'fa-times-circle', warning: 'fa-exclamation-circle', info: 'fa-info-circle' }; const toast = document.createElement('div'); toast.className = `toast toast--${type}`; toast.innerHTML = ` ${message} `; container.appendChild(toast); setTimeout(() => { toast.classList.add('toast--hiding'); setTimeout(() => toast.remove(), 150); }, duration); } };