/* ===== Reset và font chung ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #d7e4fa; /* màu nền cũ */

  /* lớp phủ màu + ảnh nền */
  background-image: linear-gradient(
      rgba(189, 208, 240, 0.58),
      rgba(189, 208, 240, 0.58)
    ),
    url("../img/nen_1.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* nếu muốn hiệu ứng cuộn parallax nhẹ */
}

/* ===== Layout tổng ===== */
html,
body {
  height: 100%;
  min-height: 100vh;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #d7e4fa;
}

.layout-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

header {
  background: linear-gradient(90deg, #4b88eb 0%, #a3dafc 100%);

  color: #fff;
  position: relative;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 6px 36px rgba(54, 100, 247, 0.08),
    0 2px 12px rgba(0, 0, 0, 0.03);
  min-height: 110px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
  padding: 0;
}

header .logo {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  height: 68px;
  width: auto;
  max-width: 82px;
  border-radius: 11px;
  box-shadow: 0 2px 18px rgba(42, 122, 255, 0.09);
  background: #fff;
  padding: 8px 10px;
  object-fit: contain;
  transition: transform 0.22s;
  z-index: 2;
}

header h1 {
  margin: 0;
  padding: 0 80px; /* chừa khoảng cho logo bên trái */
  font-size: 2.16rem;
  font-weight: 800;
  text-align: center;
  width: 100%;
  letter-spacing: 0.01em;
  color: #fff;
  line-height: 1.18;
  text-shadow: 0 2px 12px rgba(54, 108, 255, 0.16),
    0 2px 7px rgba(0, 0, 0, 0.06);
  transition: color 0.22s;
}

/* Responsive */
@media (max-width: 700px) {
  header {
    min-height: 56px;
    border-radius: 0 0 20px 20px;
  }
  header .logo {
    height: 36px;
    left: 10px;
    padding: 3px 5px;
    max-width: 50px;
  }
  header h1 {
    font-size: 1.06rem;
    padding: 0 48px;
  }
}

/* ===== Main layout ===== */
main {
  flex: 1 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
}

/* ===== Chatbot Container ===== */
.chatbot-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 55vh;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  background: transparent;
}

.message-content p {
  margin: 6px 0;
  line-height: 1.6;
}

.message-content ol,
.message-content ul {
  padding-left: 20px;
  margin: 10px 0;
}

.message-content li {
  margin-bottom: 6px;
  line-height: 1.5;
}

.message-content strong {
  font-weight: bold;
  color: #0b3d91;
}

/* ===== Header của chatbot & avatar không rung ===== */
.bot-header {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: -36px; /* Kéo header xuống sát vào chat-window, xoá khoảng trống thừa khi header hiện */
}

.bot-icon {
  width: 110px;
  margin-bottom: 20px;
  display: block;
}

.bot-header-txtblock {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 105px;
  justify-content: flex-start;
  width: 100%;
}

.bot-header-dummy {
  height: 0;
  visibility: hidden;
  pointer-events: none;
  white-space: pre;
}

#typing-title {
  min-height: 32px;
  display: block;
  width: 100%;
  text-align: center;
}

h2 {
  margin: 0 0 36px 0;
  font-size: 1.7rem;
  color: #000;
  text-align: center;
}

#typing-title,
.suggestion {
  width: 100%;
  display: block;
  text-align: center;
  line-height: 1.25;
}

/* ===== Suggestion ===== */
.suggestion {
  font-size: 1.19rem;
  color: #2467ec;
  margin-bottom: 4px;
  font-style: italic;
  text-align: center;
  letter-spacing: 0.02em;
  opacity: 0.94;
  min-height: 28px;
  display: block;
}

/* ===== Khung chat ===== */
#chat-window {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  flex: 1 1 auto;
  padding-bottom: 8px;
  padding-top: 48px; /* Đảm bảo lúc nào cũng có khoảng trống trên cùng */
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition: min-height 0.22s;
}

#chat-window.chat-empty {
  min-height: 68px; /* hoặc giá trị bạn muốn khi chat trống */
}

.input-group textarea::placeholder {
  font-size: 0.95rem;
  color: #555151;
  opacity: 1;
  font-style: normal;
}

/* ===== Tin nhắn ===== */
.message-content,
.user-content,
.bot-content {
  max-width: 87%;
  font-size: 1.07rem;
  word-break: break-word;
}
.message.user {
  display: flex;
  justify-content: flex-end;
}
.user-content {
  background: #dcf0ff;
  color: #12396b;
  border-radius: 14px 14px 4px 18px;
  padding: 11px 18px;
  margin-right: 3px;
  font-style: normal;
  box-shadow: 0 2px 10px rgba(80, 120, 180, 0.05);
  align-self: flex-end;
  text-align: left;
}
.message.bot {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 9px;
}
.bot-icon,
.message.bot .avatar {
  box-shadow: none;
  background: #d7e4fa;
  border-radius: 0;
}
.bot-avatar-wrap {
  display: flex;
  align-items: flex-end;
  height: 100%;
}
.bot-content {
  background: #f0f1f6;
  color: #18426d;
  border-radius: 16px 16px 16px 5px;
  padding: 11px 18px;
  margin-left: 3px;
  font-style: normal;
  box-shadow: 0 2px 10px rgba(80, 120, 180, 0.04);
  align-self: flex-end;
  text-align: left;
}

.message.bot .avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e6f2ff;
  padding: 5px;
  box-sizing: border-box;
  object-fit: cover;
}

.message.user .avatar,
.message.user img.avatar {
  display: none !important;
}

/* ===== Ô nhập câu hỏi ===== */
.input-group {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 -2px 10px rgba(40, 80, 120, 0.07);
  padding: 0;
  margin: 4px auto 6px auto;
  max-width: 700px;
  width: 100%;
}
.input-group > * {
  flex: 1;
}

.input-group textarea {
  min-height: 46px;
  max-height: 120px;
  flex: 1 1 auto;
  width: 100%;
  font-size: 1rem;
  border-radius: 10px;
  padding: 10px 18px;
  border: none;
  resize: none;
  outline: none;
  box-sizing: border-box;
  direction: ltr;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-y: auto;
}

.input-group textarea:focus {
  box-shadow: none;
  outline: none;
}

.send-button {
  margin-left: 8px;
  min-width: 46px;
  min-height: 46px;
  border-radius: 8px;
  background: none;
  border: none;
  font-size: 1.53rem;
  cursor: pointer;
  color: #05618f;
}
.send-button:hover {
  background: #e3e9f9;
  color: #478cbb;
}

.paper-plane-icon {
  width: 28px; /* Có thể chỉnh nhỏ/lớn tùy ý */
  height: 28px;
  transition: transform 0.17s, filter 0.14s;
  display: block;
  margin: 0 auto;
}

.send-button:hover .paper-plane-icon {
  transform: scale(1.22) rotate(-36deg);
  filter: drop-shadow(0 3px 8px #1565c055);
}

#typing-suggestions {
  font-size: 1.22rem;
  padding-top: 1px;
  font-weight: bold;
}
/* ===== Cảnh báo ===== */
.word-warning {
  color: #f84733;
  margin-top: 3px;
  font-size: 1.08rem;
  min-height: 18px;
  text-align: left;
  padding-left: 4px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.18s;
}
.word-warning.red {
  color: #fc2a13;
}
.word-warning.orange {
  color: #e65f05;
}
.word-warning.green {
  color: #27ae60;
}

/* ===== Thông tin giới thiệu ===== */
.site-info-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.site-info {
  max-width: 700px;
  margin: 20px auto 60px auto;
  background: #e4f3ff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.09);
  padding: 34px 32px 26px 32px;
  color: #11315d;
  font-size: 1.07rem;
  line-height: 1.7;
  transition: transform 1.1s cubic-bezier(0.42, 0, 0.58, 1),
    opacity 1.1s cubic-bezier(0.42, 0, 0.58, 1), height 1.1s, min-height 1.1s,
    padding 1.1s, margin 1.1s;
  transform-origin: 50% 50%;
  will-change: transform, opacity, height, min-height, padding, margin;
  display: block;
}
.site-info h3 {
  margin: 0 0 12px 0;
  font-size: 1.52rem;
  text-align: center;
  color: #064377;
  font-weight: bold;
  letter-spacing: 0.5px;
}
.site-info .site-desc {
  margin: 0 0 20px 0;
  font-size: 1.04rem;
  line-height: 1.65;
  color: #204570;
}
.site-info-img {
  display: block;
  max-width: 460px;
  width: 100%;
  height: auto;
  margin: 0 auto 18px auto;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
/* Hiệu ứng thu nhỏ site-info */
.site-info.shrunk {
  transform: scale(0.08);
  opacity: 0;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 auto !important;
  pointer-events: none;
  overflow: hidden;
}
.site-info.expanded {
  transform: scale(1);
  opacity: 1;
  height: auto !important;
  min-height: 260px;
  padding: 32px 30px 20px 30px;
  margin: 0 auto 48px auto;
  pointer-events: auto;
  overflow: visible;
}

.contact-list li {
  margin-bottom: 13px;
  display: flex;
  gap: 9px;
  font-size: 1rem;
  flex-wrap: wrap;
  line-height: 1.6;
  align-items: flex-start;
  color: #184983;
}

.contact-icon {
  color: #5390c2;
  width: 21px;
  height: 21px;
  margin-right: 10px;
  vertical-align: middle;
  display: inline-block;
}

.contact-link {
  color: #05618f;
  text-decoration: none;
  padding-bottom: 1px;
  transition: color 0.16s, border-color 0.15s;
  font-weight: 500;
  word-break: break-all;
}
.contact-link:hover,
.contact-link:focus {
  color: #135269;
  text-decoration: none;
}

.contact-label {
  font-weight: 600;
  min-width: 90px;
  color: #184983;
  display: inline-block;
  margin-right: 0;
}
.site-info-banner {
  width: 100%;
  max-width: 670px;
  display: block;
  margin: 0 auto 20px auto; /* Căn giữa, cách dưới 20px */
  border-radius: 14px; /* Bo góc mềm mại */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06); /* Đổ bóng nhẹ */
}

.contact-label {
  margin-right: 3px;
}

.contact-list li span:last-child {
  color: #184983;
  font-weight: 400;
}

.chat-action-row {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Responsive nhỏ hơn */
@media (max-width: 500px) {
  .contact-icon {
    width: 18px;
    height: 18px;
    margin-right: 7px;
  }
  .contact-label {
    min-width: 60px;
    font-size: 0.96rem;
  }
  .contact-list li {
    font-size: 0.94rem;
  }
}

/* Nút thu gọn site-info */
.shrink-btn {
  display: block;
  margin: 32px auto 0 auto;
  padding: 10px 36px;
  background: #1565c0;
  color: #fff;
  border: none;
  border-radius: 22px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.08);
  transition: background 0.2s, transform 0.17s;
}
.shrink-btn:hover {
  background: #0d47a1;
  transform: scale(1.07);
}

.clear-history-btn {
  margin: 25px auto 0 auto;
  padding: 13px 32px 13px 24px;
  background: #f5dfdf;
  color: #203a70;
  border: none;
  border-radius: 16px;
  font-size: 1.14rem;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  box-shadow: 0 2px 8px rgba(192, 66, 66, 0.06);
  transition: background 0.18s, color 0.18s;
}

.clear-history-btn:hover,
.clear-history-btn:focus {
  background: #d64949;
  color: #e3ebf5;
}

.clear-history-btn:active {
  /* Không scale/phóng to */
  transform: none;
}

.clear-history-icon {
  width: 29px;
  height: 29px;
  vertical-align: middle;
  margin-right: 6px;
  margin-bottom: 2px;
  filter: none; /* bỏ mọi filter nếu có cũ */
}

/* ===== Nút favicon mở lại site-info ===== */
.site-info-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  right: 25px; /* chỉnh SỐ PX CÁCH LỀ PHẢI TÙY Ý */
  bottom: 137px; /* chỉnh SỐ PX CÁCH FOOTER TÙY Ý */
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  color: #2269b5;
  font-size: 2.32rem;
  box-shadow: 0 2px 12px rgba(40, 60, 100, 0.09);
  border: none;
  cursor: pointer;
  z-index: 102;
  opacity: 1;
  transition: opacity 0.3s;
  margin-right: 36px;
  margin-bottom: 0;
}

.address,
.contact-link {
  color: #184983; /* hoặc #05618f như các dòng khác */
}

.site-info-toggle:hover {
  background: #f0f4fb; /* Màu nền khi hover */
  box-shadow: 0 4px 16px rgba(50, 100, 180, 0.17);
}
.site-info-mail-icon {
  width: 42px; /* Điều chỉnh kích thước icon ảnh PNG */
  height: 42px;
  display: block;
  object-fit: contain;
  pointer-events: none; /* Đảm bảo bấm được cả vào hình */
  /* Nếu muốn màu xám khi disabled, có thể dùng filter: grayscale(1); */
}
@media (max-width: 600px) {
  .site-info-toggle {
    width: 48px;
    height: 48px;
    right: 9px;
    bottom: 65px;
  }
  .site-info-mail-icon {
    width: 25px;
    height: 25px;
  }

  #chat-window.chat-empty {
    min-height: 54px;
  }
}
@media (max-width: 410px) {
  .site-info-toggle {
    width: 36px;
    height: 36px;
    right: 3px;
    bottom: 37px;
  }
  .site-info-mail-icon {
    width: 19px;
    height: 19px;
  }
}
.footer-actions {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  margin-bottom: 50px;
}
.site-info-toggle.active {
  opacity: 1;
  pointer-events: auto;
  animation: pop-icon 0.36s;
}
@keyframes pop-icon {
  0% {
    transform: translateX(-50%) scale(0.2);
  }
  75% {
    transform: translateX(-50%) scale(1.15);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}
/* Responsive cho mobile */
@media (max-width: 600px) {
  .site-info-toggle {
    right: 12px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
  }
}

/* ===== Footer ===== */
footer {
  background-color: #00224d;
  color: white;
  text-align: center;
  padding: 26px 10px 20px 10px;
  margin-top: auto;
  flex-shrink: 0;
}
.footer-top p {
  margin: 4px 0;
}
.footer-social {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-social a {
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}
.footer-social a:hover,
.footer-social a:focus {
  color: #40a9ff;
  transform: scale(1.12);
}
.footer-social .social-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: inline-block;
  margin-right: 4px;
  vertical-align: middle;
}
.email-link:hover {
  color: #00c8ff;
}
.email-link:hover i {
  color: #00c8ff;
}
.email-link {
  display: inline-flex;
  align-items: center;
  color: #9fcce0;
  text-decoration: none !important;
}
.email-link i {
  margin-right: 11px;
  vertical-align: middle;
}

a.address-content {
  text-decoration: none; /* Bỏ gạch chân */
  color: #184983; /* Tuỳ chọn: màu đồng nhất với chữ địa chỉ */
}

a.address-content:hover,
a.address-content:focus {
  text-decoration: none; /* Tuỳ chọn: khi hover có thể gạch chân */
  color: #0b3d91; /* Tuỳ chọn: đổi màu khi hover */
}

/* ===== Responsive mobile & tablet ===== */
@media (max-width: 800px) {
  .site-info {
    padding: 18px 7px;
    max-width: 97vw;
    font-size: 0.97rem;
  }
  .site-info h3 {
    font-size: 1rem;
  }
  .contact-list li {
    font-size: 0.96rem;
  }
}

/* Responsive mobile */

@media (max-width: 700px) {
  header {
    min-height: 56px;
    border-radius: 0 0 20px 20px;
  }
  header .logo {
    height: 36px;
    left: 10px;
    padding: 3px 5px;
    max-width: 50px;
  }
  header h1 {
    font-size: 1.06rem;
    padding: 0 48px;
  }
}

@media (max-width: 600px) {
  .footer-actions {
    margin-bottom: 18px;
  }
  .site-info-toggle {
    margin-right: 10px;
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
  }
}

@media (max-width: 500px) {
  .bot-header {
    margin-top: 24px;
  }
  h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }
  .bot-icon {
    width: 70px;
  }
  .footer-social .social-icon {
    width: 24px;
    height: 24px;
  }
  .footer-social .zalo-link span {
    font-size: 1rem;
  }
  .user-content,
  .bot-content {
    font-size: 0.95rem;
    padding: 8px 8px;
  }
  .message.bot .avatar {
    width: 30px;
    height: 30px;
  }
}

.input-group.margin-down {
  margin-top: 60px !important; /* KHOẢNG CÁCH Ô NHẬP CÂU HỎI NGƯỜI DÙNG VỚI CÂU TRẢ LỜI CHATBOT*/
  transition: margin 0.3s;
}

.scroll-down-btn:hover {
  opacity: 1;
  background: #bdd6f8;
}

.scroll-down-btn img {
  width: 65%;
  height: 65%;
  display: block;
  margin: auto;
}

@media (max-width: 600px) {
  .scroll-down-btn {
    right: 12px;
    bottom: 90px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* ======================== */
/* 1. Responsive < 1200px   */
/* ======================== */
@media (max-width: 1200px) {
  .container {
    max-width: 94vw;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ======================== */
/* 2. Responsive Tablet <900px */
/* ======================== */
@media (max-width: 900px) {
  .container {
    max-width: 100vw;
    padding: 10px 6px;
  }
  .bot-header {
    margin-top: 12px;
  }
  .chat-window {
    padding-left: 0;
    padding-right: 0;
    min-height: 250px;
  }
  .footer {
    font-size: 1rem;
    padding: 10px 0 10px 0;
  }
  .site-info-toggle {
    right: 18px;
    bottom: 105px;
    width: 54px;
    height: 54px;
    font-size: 1.6rem;
  }
  .message.bot .avatar {
    width: 42px;
    height: 42px;
  }
}

/* ======================== */
/* 3. Responsive Mobile <600px */
/* ======================== */
@media (max-width: 600px) {
  html,
  body {
    font-size: 15px;
    /* Đảm bảo không vỡ dòng chữ */
  }
  .container {
    max-width: 100vw;
    padding: 3px 1.5vw;
  }
  header {
    padding-bottom: 3px;
  }
  .logo {
    height: 38px;
    max-width: 85px;
  }
  .bot-header {
    margin-top: 6px;
  }
  .bot-icon {
    width: 64px;
    margin-bottom: 16px;
  }
  #typing-title {
    font-size: 1.18rem;
  }

  .chat-window {
    padding: 3px 0 2px 0;
    min-height: 120px;
    font-size: 1rem;
    border-radius: 13px;
  }
  .message {
    padding: 6px 0;
    font-size: 1rem;
  }
  .message.bot .avatar {
    width: 34px;
    height: 34px;
    margin-right: 6px;
    padding: 2px;
  }
  .message-content {
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 1rem;
  }
  .input-group {
    flex-direction: column;
    gap: 8px;
    padding: 0 0 4px 0;
  }
  .input-group textarea {
    font-size: 1rem;
    padding: 7px 8px;
    min-height: 38px;
    border-radius: 11px;
  }
  #sendBtn {
    padding: 7px 12px;
    font-size: 1.14rem;
    border-radius: 12px;
    width: 100%;
    margin-left: 0;
  }
  #word-warning {
    font-size: 0.94rem;
    padding-top: 2px;
  }
  .site-info-toggle {
    width: 46px;
    height: 46px;
    right: 8px;
    bottom: 70px;
    font-size: 1.3rem;
  }
  .footer {
    font-size: 0.88rem;
    padding: 7px 0 5px 0;
  }
}

/* ======================== */
/* 4. Siêu nhỏ: <410px      */
/* ======================== */
@media (max-width: 410px) {
  .container {
    padding-left: 0;
    padding-right: 0;
  }
  .chat-window {
    border-radius: 6px;
    font-size: 0.95rem;
    min-height: 80px;
  }
  .bot-header {
    margin-top: 2px;
  }
  .bot-icon {
    width: 44px;
    margin-bottom: 8px;
  }
  .logo {
    height: 30px;
    max-width: 60px;
  }
  .footer {
    font-size: 0.8rem;
    padding: 5px 0 3px 0;
  }
}

/* ======================== */
/* 5. Fix nút mũi tên cuộn xuống ở mọi cỡ màn */
/* ======================== */
.scroll-down-btn {
  position: fixed;
  right: 40px;
  bottom: 110px;
  z-index: 1001;
  display: none;
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(40, 60, 100, 0.12);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-size: 2.3rem;
  color: #2269b5;
  transition: background 0.25s, box-shadow 0.25s;
}
@media (max-width: 900px) {
  .scroll-down-btn {
    right: 12px;
    bottom: 66px;
    width: 40px;
    height: 40px;
    font-size: 1.55rem;
  }
}
@media (max-width: 410px) {
  .scroll-down-btn {
    right: 4px;
    bottom: 43px;
    width: 32px;
    height: 32px;
    font-size: 1.12rem;
  }
}

/* ======================== */
/* 6. Một số fix giao diện mobile */
/* ======================== */
@media (max-width: 600px) {
  .site-info {
    border-radius: 14px;
    padding: 11px 8px 16px 8px;
  }
  #site-info-toggle {
    font-size: 1.1rem;
  }
  .site-info .shrink-btn {
    font-size: 1.2rem;
    top: 6px;
    right: 6px;
  }
}

.send-button.disabled,
.send-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

#thinking-typing {
  font-style: italic; /* In nghiêng */
  font-weight: bold; /* In đậm */
  font-size: 1.15rem; /* Tăng cỡ chữ (có thể đổi: 16px, 18px, 1.2em...) */
  color: #0b3d91; /* (Tuỳ chọn) chỉnh màu chữ nếu muốn */
  letter-spacing: 0.5px; /* (Tuỳ chọn) giãn cách chữ nhẹ */
}

.grecaptcha-badge,
.grecaptcha-badge * {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  display: none !important;
  z-index: -9999 !important;
}

@media (max-width: 700px) {
  .chatbot-container,
  #chat-window,
  .input-group {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
  }
}
.logo {
  position: absolute;
  left: 20px;
  top: 10px;
  height: 82px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
}
@media (max-width: 600px) {
  .logo {
    height: 38px !important;
    max-width: 85px !important;
    width: auto !important;
  }
}
@media (max-width: 410px) {
  .logo {
    height: 28px !important;
    max-width: 50px !important;
    width: auto !important;
  }
}

/* Custom màu thanh scrollbar cho đẹp trên mọi nền */
::-webkit-scrollbar {
  width: 7px;
  background: #96c5fa; /* Màu nền thanh cuộn */
}
::-webkit-scrollbar-thumb {
  background: #81b7f8; /* Màu thanh kéo */
  border-radius: 9px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3d8fec;
}
::-webkit-scrollbar-track {
  background: #e3f0ff;
}

.admin-login-row {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.admin-login-btn {
  margin: 22px auto 0 auto;
  padding: 13px 34px 13px 24px;
  background: linear-gradient(90deg, #e6f1fd 0%, #bad7fd 100%);
  color: #2467ec;
  border: none;
  border-radius: 16px;
  font-size: 1.16rem;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(36, 103, 236, 0.08);
  transition: background 0.21s, color 0.17s, transform 0.13s;
  outline: none;
}

.admin-login-btn .admin-icon {
  width: 30px;
  height: 30px;
  display: inline-block;
  vertical-align: middle;
  transition: filter 0.17s, transform 0.16s;
}

.admin-login-btn:hover,
.admin-login-btn:focus {
  background: linear-gradient(90deg, #2467ec 0%, #8fc8ff 100%);
  color: #fff;
  transform: translateY(-3px) scale(1.04);
}

.admin-login-btn:hover .admin-icon,
.admin-login-btn:focus .admin-icon {
  filter: brightness(1.8) drop-shadow(0 2px 6px #62a0fd99);
  transform: scale(1.16) rotate(-6deg);
}

@media (max-width: 500px) {
  .admin-login-btn {
    font-size: 1rem;
    padding: 11px 10px 11px 9px;
    border-radius: 12px;
  }
  .admin-login-btn .admin-icon {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 700px) {
  html, body {
    width: 100vw !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    /* Giữ nguyên nền mờ */
    background-color: #d7e4fa !important;
    background-image: linear-gradient(
      rgba(215, 228, 250, 0.82),
      rgba(215, 228, 250, 0.82)
    ),
    url("../img/nen_1.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
  .layout-wrapper {
    max-width: 100vw !important;
    width: 100vw !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .chatbot-container,
  main {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}

