body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: #f1f1f1;
}

.chat-container {
  max-width: 600px;
  margin: 40px auto;
  background-color: #fff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  height: 90vh;
  overflow: hidden;
}

.chat-box {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.message {
  padding: 12px 15px;
  border-radius: 10px;
  margin-bottom: 10px;
  max-width: 80%;
  line-height: 1.4;
}

.user {
  background-color: #007bff;
  color: white;
  margin-left: auto;
  text-align: right;
}

.bot {
  background-color: #e6e6e6;
  color: #333;
  margin-right: auto;
  text-align: left;
}

#chat-form {
  display: flex;
  border-top: 1px solid #ccc;
}

#user-input {
  flex: 1;
  padding: 15px;
  font-size: 16px;
  border: none;
  outline: none;
}

#chat-form button {
  padding: 15px 20px;
  background-color: #007bff;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.typing-dots::after {
  content: " .";
  animation: dots 1.2s steps(3, end) infinite;
}

@keyframes dots {
  0% {
    content: " .";
  }
  33% {
    content: " ..";
  }
  66% {
    content: " ...";
  }
}
