.chat-container {
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
  padding: 0 15px 0px;
  min-height: calc(100vh - 70px);
}

.chat-window {
  flex: 1;
  /* overflow-y: auto; */
  transition: padding-bottom 0.3s ease;
  width: 100%;
  max-width: 768px;
  display: flex;
  flex-direction: column;
}

.text-description {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  text-align: center;
  /* padding: 0 16px; */
  font-size: 20px;
}

.hide {
  display: none !important;
}

.title-form {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.message {
  padding: 10px 15px;
  line-height: 1.4;
  margin-top: 12px;
  font-size: 16px;
}

.user {
  align-self: flex-end;
  background-color: #e9e9e9;
  color: #000;
  max-width: 80%;
  width: fit-content;
  border-radius: 10px;
  white-space: pre-wrap;
  word-wrap: break-word; /* <-- giúp xuống dòng */
  word-break: break-word; /* <-- xử lý khi không có dấu cách */
}

.bot {
  background-color: unset;
  color: #333;
}

.box-form {
  position: fixed;
  width: 100%;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 0%);
  z-index: 999;
  text-align: center;
  transition: all 0.3s ease;
  max-width: 768px;
  padding: 0 12px;
  background: unset;
}

.box-form.centered {
  bottom: 10px;
  transform: translate(-50%, 0);
}

#chat-form {
  padding: 12px 0;
  padding-left: 12px;
  padding-right: 48px;
  border-radius: 28px;
  border: 1px solid #333;
  background: white;
}

.box-input {
  width: 100%;
  max-width: 768px;
  position: relative;
  display: flex;
  align-items: center;
}

/* Khi chưa có message -> căn giữa toàn màn */
/* .box-form.centered {
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%); 
} */

.box-form textarea {
  max-width: 768px;
  height: auto;
  overflow: hidden;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 16px;
  outline: none;
  resize: none;
  min-height: 24px;
  max-height: 120px;
  font-family: inherit;
}

.form-action {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

#send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0.75rem;
}

#pause-btn {
  border: unset;
  background-color: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.show-icon {
  display: block;
}

.icon-pause {
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  color: #888;
  transition: color 0.3s;
}

.icon-pause:hover {
  color: #000;
}

/* Hiệu ứng đang nhập */
.typing-indicator {
  display: inline-flex;
  align-items: center;
}

.typing-indicator span {
  height: 8px;
  width: 8px;
  float: left;
  margin: 0 1px;
  background-color: #9e9ea1;
  display: block;
  border-radius: 50%;
  opacity: 0.4;
}

.typing-indicator span:nth-of-type(1) {
  animation: 1s blink infinite 0.3333s;
}

.typing-indicator span:nth-of-type(2) {
  animation: 1s blink infinite 0.6666s;
}

.typing-indicator span:nth-of-type(3) {
  animation: 1s blink infinite 0.9999s;
}

.waiting-text {
  color: black;
  padding: 5px 0;

  /* background: linear-gradient(90deg, #000, #e3e3e3, #000) -100%/ 200%;

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
  font-size: 16px !important;
  animation: shimmer 3s linear infinite; */
}

@keyframes shimmer {
  0% {
    background-position: 100% center;
  }
  100% {
    background-position: -100% center;
  }
}

.dropdown-menu.show {
  display: flex;
  justify-content: space-between;
}

.menu-mobile {
  left: 2rem !important;
}

#search-video {
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  border-radius: 8px;
}

#intro-video {
  object-fit: cover;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  border-radius: 8px;
}

/* @media (min-width: 992px) {
  .text-description {
    top: 50%;
    transform: translateY(calc(-50%));
  }
} */

@media (min-width: 576px) {
  .text-description {
    top: 50%;
    transform: translateY(calc(-50% - 35px));
  }
}

@media (max-width: 991px) {
  .chat-container {
    /* padding-top: 150px !important; */
    min-height: calc(100vh - 140px) !important;
    margin-top: 129px !important;
  }
}

@media screen and (max-width: 575px) {
  .chat-container {
    min-height: calc(100vh - 140px) !important;
  }

  .container-video {
    width: 100% !important;
  }

  #intro-video {
    width: 100% !important;
    border-radius: 0px !important;
  }

  .text-description {
    font-size: 22px;
  }

  .menu-mobile {
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
  }
  .box-btn {
    display: none;
  }

  .header {
    justify-content: center;
  }

  .message {
    font-size: 14px !important;
  }
}

@keyframes blink {
  50% {
    opacity: 1;
  }
}
