body {
  font-family: "Segoe UI", Tahoma;
  background: #f5f7fa;
}

/* HEADER */
.gov-header {
  background: #0b4ea2;
  color: white;
  padding: 14px 0;
}

.gov-logo {
  width: 48px;
}

/* CARD */
.gov-card {
  border: 1px solid #dcdcdc;
}

.gov-card-header {
  background: #eef2f7;
  font-weight: 600;
  color: #0b4ea2;
}

/* RESULT FORMAT */
.gov-result {
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 14px;
}

/* FOOTER */
.gov-footer {
  background: #e5e7eb;
  padding: 10px;
  text-align: center;
  font-size: 13px;
}

/* CHAT ICON */
#ai-chat-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0b4ea2;
  color: white;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* CHAT BOX */
#ai-chat-box {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 360px;
  height: 480px;
  background: white;
  border: 1px solid #ccc;
  display: none;
  flex-direction: column;
}

.chat-header {
  background: #0b4ea2;
  color: white;
  padding: 10px;
  display: flex;
  justify-content: space-between;
}

.chat-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #f9fafb;
}

.chat-footer textarea {
  width: 100%;
  height: 60px;
}

.chat-footer button {
  width: 100%;
  background: #0b4ea2;
  color: white;
  border: none;
  padding: 6px;
}

/* CHAT MESSAGES */
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-msg {
  max-width: 80%;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
}

.chat-user {
  align-self: flex-end;
  background: #0b4ea2;
  color: white;
}

.chat-ai {
  align-self: flex-start;
  background: #e5e7eb;
}
/* ====== KHUNG TÍNH NĂNG HỆ SINH THÁI (BỔ SUNG) ====== */
.ecosystem {
	background: #f6f7f9;
	border-top: 1px solid var(--border);
	padding: 30px 20px;
}

.ecosystem .wrap {
	max-width: 1000px;
	margin: auto;
}

.ecosystem h3 {
	margin: 0 0 16px;
	font-size: 15px;
	color: #222;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.ecosystem-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 10px 30px;
}

.ecosystem-links a {
	font-size: 13px;
	color: var(--primary);
	text-decoration: none;
	padding-left: 12px;
	position: relative;
	line-height: 1.6;
}

.ecosystem-links a::before {
	content: "▪";
	position: absolute;
	left: 0;
	top: 2px;
	color: #999;
	font-size: 14px;
}

.ecosystem-links a:hover {
	text-decoration: underline;
}

footer {
	background: #083b73;
	color: #e5ecf5;
	text-align: center;
	font-size: 12px;
	padding: 18px 10px;
}