#chat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid #ccc;
  height: 400px;
  overflow-y: auto;
  background: #fafafa;
  border-radius: 8px;
}

.message {
  max-width: 75%;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  line-height: 1.4;
  word-wrap: break-word;
}
.message.user {
  align-self: flex-end;
  background: #d1eaff;
  color: #03456f;
}
.message.bot {
  align-self: flex-start;
  background: #e8eaf6;
  color: #1c2646;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-style: italic;
  gap: 0.5rem;
}
.loading i.fa-spinner {
  font-size: 1rem;
}

#input,
button {
  font-size: 1rem;
  padding: 0.6rem;
  border-radius: 6px;
}
#input {
  flex: 1;
  border: 1px solid #ccc;
  margin-right: 0.5rem;
}
button {
  background: #3670cd;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover {
  background: #2751a3;
}
form {
  display: flex;
  margin-top: 1rem;
}
#quick-buttons {
  display: flex;
  gap: 0.5rem;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.quick-btn {
  display: block;
  width: 100%;
  margin-bottom: 0.5rem;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.quick-btn:hover {
  background: #0069d9;
}

#lang-select {
  margin-bottom: 1rem;
}
.lang-btn {
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  margin-right: 0.5rem;
  cursor: pointer;
}
.lang-btn.selected {
  background: #3670cd;
  color: #fff;
}