   function showError(message) {
            const existingError = document.querySelector('.error-toast');
            if (existingError) {
                existingError.remove();
            }

            const errorDiv = document.createElement('div');
            errorDiv.className = 'error-toast';
            errorDiv.textContent = message;
            document.querySelector('.widget-container').appendChild(errorDiv);
            
            const timeout = message.includes('API') ? 5000 : 3000;
      