body {
  font-family: "Arial", sans-serif;
  display: flex;
  height: 100vh;
  margin: 0;
  justify-content: center;
  align-items: center;
  background: #f0f2f5;
}

.chat-container {
  background: white;
  padding: 20px;
  border-radius: 12px;
  width: 400px;
  max-height: 90vh;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

#chat {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 8px;
}

.message {
  margin: 8px 0;
  animation: fadeIn 0.3s ease;
}

.message strong {
  display: block;
  margin-bottom: 2px;
}

#typing-indicator {
  font-style: italic;
  color: gray;
  margin-bottom: 10px;
}

.input-area {
  display: flex;
  gap: 5px;
}

#user-input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

button {
  padding: 10px 15px;
  border: none;
  background-color: #4caf50;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #45a049;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
