body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.chat-container {
  background: #ffffff;
  border: 2px solid #6a0dad;
  border-radius: 12px;
  width: 95%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.chat-header {
  background: #6a0dad;
  color: white;
  padding: 12px;
  text-align: center;
}

.chat-window {
  padding: 10px;
  height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f9f9f9;
}

.user-message, .bot-message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 20px;
  line-height: 1.4;
  font-size: 14px;
}

.user-message {
  background: #d1e7ff;
  align-self: flex-end;
}

.bot-message {
  background: #e7d6ff;
  align-self: flex-start;
}

form {
  display: flex;
  border-top: 1px solid #ccc;
}

input[type="text"] {
  flex: 1;
  padding: 10px;
  border: none;
  font-size: 14px;
}

button {
  background: #6a0dad;
  color: white;
  border: none;
  padding: 0 16px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: #580aa4;
}
