body {
  font-family: sans-serif;
  background: #f9f9f9;
  margin: 0;
  padding: 20px;
}

#chat-container {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#chat-box {
  border: 1px solid #ddd;
  height: 400px;
  overflow-y: auto;
  padding: 10px;
  margin-bottom: 10px;
  background: #fafafa;
  border-radius: 6px;
}

.message {
  margin: 8px 0;
  padding: 10px;
  border-radius: 6px;
  max-width: 80%;
}

.message.user {
  background: #e0f7fa;
  align-self: flex-end;
  text-align: right;
  margin-left: auto;
}

.message.assistant {
  background: #fffef8;
  font-family: "Georgia", serif;
  font-size: 1rem;
  line-height: 1.65;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  margin-top: 12px;
}

#chat-form {
  display: flex;
  gap: 10px;
}

#user-input {
  flex: 1;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button[type="submit"] {
  padding: 10px 20px;
  font-size: 1rem;
  background: #007acc;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button[type="submit"]:hover {
  background: #005fa3;
}

.citation {
  display: inline-block;
  background: #f1f1f1;
  color: #444;
  font-size: 0.75rem;
  font-family: Menlo, Monaco, Consolas, monospace;
  padding: 2px 6px;
  border-radius: 4px;
  margin: 0 4px;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  white-space: nowrap;
}