body {
  margin: 0;
  font-family: sans-serif;
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

header {
  background: #f0f0f0;
  padding: 1rem;
  text-align: center;
  font-weight: bold;
  font-size: 1.4rem;
  border-bottom: 1px solid #ddd;
}

main {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border-top: 1px solid #ddd;
  background: #fff;
  gap: 0.5rem;
}

textarea {
  width: 100%;
  max-width: 600px;
  height: 80px;
  padding: 0.75rem;
  font-size: 1rem;
  resize: none;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
}

button {
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
}

.message {
  padding: 0.75rem;
  border-radius: 10px;
  max-width: 70%;
}

.user {
  background: #d9eaff;
  align-self: flex-end;
}

.bot {
  background: #eeeeee;
  align-self: flex-start;
}

.typing .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 2px;
  background-color: #555;
  border-radius: 50%;
  animation: blink 1.4s infinite both;
}

.typing .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%, 80%, 100% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
}
