tent = document.createElement('div');
            botContent.className = 'message-content';
            botContent.textContent = response;
            botMsg.appendChild(botContent);

            document.getElementById('chat-container').appendChild(botMsg);
          }, 500);

          input.value = '';
        }
      });

      // Allow Enter key to send
      document.getElementById('chat-input').addEventListener('keypress', function (e) {
        if (e.key === 'Enter') {
          document.getElementB