* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
body {
  background-color: #f5f5f5;
  padding: 10px;
  display: flex;
  justify-content: center;
  height: 100vh;
}

.chat-container {
  width: 100%;
  max-width: 1000px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Header tiêu đề */
.header-title {
  text-align: center;
  padding: 15px 10px 5px;
}
.header-title h1 {
  color: #d9534f;
  font-size: 26px;
  font-weight: bold;
}
.header-title p {
  color: #f0ad4e;
  font-size: 13px;
  margin-top: 4px;
}

/* Banner thanh xanh */
.chat-header {
  background-color: #0b3c85;
  color: white;
  text-align: center;
  padding: 10px;
  font-weight: bold;
  font-size: 16px;
  margin: 10px 15px 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Khung nội dung chat */
.chat-box {
  flex: 1;
  padding: 20px 15px;
  min-height: 350px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.message-row.user {
  justify-content: flex-end;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #e67e22;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 13px;
  flex-shrink: 0;
}
.avatar.user-avt {
  background-color: #0b3c85;
}

.bubble {
  max-width: 60%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  word-break: break-word;
}
.bot .bubble {
  background-color: #f1f3f4;
  border: 1px solid #e0e0e0;
}
.user .bubble {
  background-color: #0b3c85;
  color: white;
}

/* Khung nhập liệu */
.input-area {
  padding: 15px;
  display: flex;
  gap: 10px;
  border-top: 1px solid #eee;
}
.input-area input {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid #ccc;
  border-radius: 25px;
  outline: none;
  font-size: 14px;
}
.input-area button {
  background-color: #0b3c85;
  color: white;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.2s;
}
.input-area button:hover {
  background-color: #082a5e;
}

/* Thẻ lưu ý chân trang */
.disclaimer {
  margin: 10px 15px 15px;
  padding: 10px;
  background-color: #fff8e1;
  border-left: 4px solid #ffa000;
  font-size: 12px;
  color: #555;
  border-radius: 4px;
}
.footer-text {
  text-align: center;
  font-size: 11px;
  color: #888;
  padding-bottom: 15px;
}
