#chatbot-screen {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  height: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  top: 30% !important;
  right: 0;
  z-index: 9999;
  font-family: "Segoe UI", sans-serif;
  position: fixed;
  height: auto;
  max-height: 60vh;
  min-height: 60vh;
  margin-right: 2rem;
  max-width: 350px;
  width: 100%;
  z-index: 9999;
  border-radius: 15px;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fullscreen .sugg-btn-div {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.fullscreen .chat-suggestion {
  min-height: 75px;
}
#chatbot-header {
  /* background: linear-gradient(to right, #dc4f00d6, #dc4f00d6); */
  padding: 14px 16px;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.fullscreen #chatbot-header {
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}
.chat-title {
  color: #fff;
  font-weight: bold;
}
#chat-header-icons {
  display: flex;
  gap: 18px;
  font-size: 16px;
  color: #fff;
}
#chat-header-icons i {
  cursor: pointer;
  transition: transform 0.2s ease;
}
#chat-header-icons i:hover {
  transform: scale(1.2);
  color: #e6f7ff;
}
#chat-messages {
  padding: 1px 0 10px 0;
  flex-grow: 1;
  overflow-y: auto;
  background-color: #f7f9fc;
}
#chat-input-container {
  position: unset;
  display: flex;
  border-top: 1px solid #ddd;
  padding: 10px;
  background-color: #fff;
  z-index: 1;
  bottom: 95px;
  max-width: 359px;
  width: 100%;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
}
.fullscreen #chat-input-container {
  width: 100%;
  bottom: 38px;
  margin: auto;
  max-width: 100%;
  left: 40px;
  right: 40px;
}
.fullscreen .image_logo {
  width: 16%;
}
#chat-input {
  flex: 1;
  border: none;
  border-radius: 20px;
  padding: 10px 14px;
  outline: none;
  font-size: 14px;
  background-color: #f1f1f1;
}
#send-btn {
  margin-left: 8px;
  background-color: #dc4f00;
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 2px;
  transition: background-color 0.2s ease;
}
#send-btn:hover {
  background-color: #dc4f00;
}
.chat-suggestion-container {
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  padding: 10px 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}
.chat-suggestion {
  background: linear-gradient(to right, #dc4f00, #dc4f00);
  border: none;
  color: white;
  padding: 12px 16px;
  border-radius: 30px;
  margin-top: 8px;
  width: 100%;
  text-align: left;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.chat-suggestion:hover {
  background: linear-gradient(to right, #dc4f00, #dc4f00);
}
.chat-bubble {
  display: flex;
  align-items: flex-start;
  margin: 10px;
  max-width: 85%;
}
.chat-bubble.bot {
  flex-direction: row;
  align-self: flex-start;
  gap: 10px;
}
.chat-avatar {
  width: 47px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.chat-content {
  background-color: #dc4f00;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  max-width: 80%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  margin-top: 10px;
}
.chat-bubble.user {
  background: #999999;
  color: white;
  align-self: flex-end;
  max-width: 250px;
  padding: 10px 14px;
  border-radius: 16px;
  border-bottom-right-radius: 4px;
  margin: 8px 12px 8px auto;
  word-wrap: break-word;
  display: flex;
  flex-direction: column;
}
.user-msg-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.chat-text {
  margin: 0;
  font-size: 14px;
  color: #fff;
  text-align: left;
  width: 100%;
}
.chat-time {
  font-size: 11px;
  color: #e0e0e0;
  margin-top: 4px;
  align-self: flex-end;
}
.typing-loader {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
}
.typing-loader span {
  width: 6px;
  height: 6px;
  background: #888;
  border-radius: 50%;
  animation: bounce 1s infinite ease-in-out;
}
.typing-loader span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-loader span:nth-child(3) {
  animation-delay: 0.4s;
}
#chatbot-screen.fullscreen {
  position: fixed;
  left: 20px;
  right: 20px;
  top: 10% !important;
  bottom: 87px;
  width: 100%;
  height: auto;
  max-height: 90vh;
  margin: auto;
  margin-top: 0px;
  max-width: 90%;
  z-index: 9999;
  border-radius: 15px;
  top: 13px;
}
#fullscreen-icon.fa-compress {
  transform: rotate(180deg);
}
#fullscreen.chat-bubble.user {
  background: #dc4f00;
  color: white;
  align-self: flex-end;
  max-width: 250px;
  padding: 10px 14px;
  border-radius: 16px;
  border-bottom-right-radius: 4px;
  margin: 8px 12px 8px auto;
  word-wrap: break-word;
  display: flex;
  flex-direction: column;
}
#loading-spinner {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.8);
  padding: 4px 8px;
  border-radius: 4px;
  display: none;
}
#loading-spinner::after {
  content: "";
  display: inline-block;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #dc4f00;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 2s linear infinite;
}
.down-icon {
  display: none;
  width: 30px;
  height: 30px;
  background-color: #dc4f00;
  position: absolute;
  border-radius: 23px;
  display: flex;
  justify-content: center;
  align-items: center;
  right: 19px;
  bottom: 89px;
}
.down-icon i {
  color: white;
  padding: 7px;
}
.down-icon:hover {
  background-color: #dc4f00;
}
.logout-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.logout-modal {
  background-color: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  min-width: 250px;
  font-family: sans-serif;
}
.logout-modal h3 {
  margin: 0 0 15px;
}
.logout-modal button {
  background-color: #dc4f00;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  margin: 0 5px;
  font-family: sans-serif;
}
.logout-modal button.logout-no {
  background-color: #ccc;
  color: #000;
}
.auto-suggestions {
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  max-height: 200px;
  overflow-y: auto;
  z-index: 9999;
  display: none;
  transition: all 0.2s ease-in;
  font-family: "Open Sans", sans-serif;
}
.auto-suggestions .suggestion-item {
  padding: 10px 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.auto-suggestions .suggestion-item:hover,
.auto-suggestions .suggestion-item.active {
  background-color: #f0f0f0;
}
.auto-suggestions::-webkit-scrollbar {
  width: 6px;
}
.auto-suggestions::-webkit-scrollbar-track {
  background: #f0f0f0;
}
.auto-suggestions::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}
*/ body {
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f2f5;
}
#chat-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #dc4f00;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
  z-index: 9999;
}
#chat-icon img {
  width: 30px;
}
#chat-popup {
  position: fixed;
  bottom: 85px;
  right: 20px;
  background: #fff;
  max-width: 220px;
  border-radius: 12px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0 15px;
  font-size: 14px;
  text-align: left;
  font-family: Arial, sans-serif;
  transition: opacity 0.3s ease-in-out;
  z-index: 9998;
}
.chat-popup-tail {
  position: absolute;
  bottom: -10px;
  right: 15px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #fff;
}
#chat-popup-body {
  color: #000;
  font-weight: 500;
}
#chat-popup-body p {
  margin: 8px !important;
}
.times-icon {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #dc4f00;
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
#login-modal {
  display: none;
  position: fixed;
  bottom: 87px;
  right: 30px;
  width: 90%;
  max-width: 350px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  z-index: 10000;
}
.login-container h2 {
  margin-bottom: 15px;
  font-size: 22px;
  color: #333;
}
.login-container p {
  margin-bottom: 15px;
  color: #555;
}
.login-container input {
  width: 90%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}
#login-btn {
  width: 100%;
  background: #dc4f00;
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s ease;
}
#login-btn:hover {
  background: #dc4f00;
}
#otp-modal {
  display: none;
  position: fixed;
  bottom: 87px;
  right: 30px;
  width: 90%;
  max-width: 350px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  z-index: 10000;
}
.otp-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 10px;
}
.otp-header h2 {
  margin: 0;
  font-size: 20px;
  color: #333;
}
#go-back-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 20px;
  color: #333;
}
#otp-modal p {
  color: #555;
  margin: 10px 0;
}
.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
}
.otp-box {
  width: 40px;
  height: 40px;
  text-align: center;
  font-size: 18px;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.otp-box:focus {
  border-color: #dc4f00;
  box-shadow: 0 0 5px #dc4f00;
}
#verify-otp-btn {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: none;
  border-radius: 5px;
  background-color: #dc4f00;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}
#verify-otp-btn:hover {
  background-color: #dc4f00;
}
#resend-otp-btn {
  margin-top: 15px;
  padding: 8px 7px;
  background-color: #dc4f00;
  color: #fff;
  border-radius: 4px;
  font-size: 17px;
  cursor: pointer;
  transition: background 0.3s ease;
}
#resend-otp-btn:hover {
  background-color: #dc4f00;
}
.error-message {
  color: red;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}
@media screen and (max-width: 500px) {
  #chat-icon {
    right: 10px;
    bottom: 20px;
  }
}
#chatbot-header {
  background: linear-gradient(to right, #dc4f00d6);
  padding: 14px 16px;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
#chat-header-icons {
  display: flex;
  gap: 18px;
  font-size: 16px;
  color: #fff;
}
#chat-header-icons i {
  cursor: pointer;
  transition: transform 0.2s ease;
}
#chat-header-icons i:hover {
  transform: scale(1.2);
  color: #e6f7ff;
}
#chat-input {
  flex: 1;
  border: none;
  border-radius: 20px;
  padding: 10px 14px;
  outline: none;
  font-size: 14px;
  background-color: #f1f1f1;
}
#send-btn {
  margin-left: 8px;
  background-color: #dc4f00;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 2px;
  transition: background-color 0.2s ease;
}
#send-btn:hover {
  background-color: #dc4f00;
}
.auto-suggestions {
  position: absolute;
  bottom: 11%;
  left: 0;
  width: 100%;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  max-height: 200px;
  overflow-y: auto;
  z-index: 9999;
  display: none;
  transition: all 0.2s ease-in;
  font-family: "Open Sans", sans-serif;
}
.fullscreen .auto-suggestions{
  bottom: 7%;
}
.auto-suggestions .suggestion-item {
  padding: 10px 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.auto-suggestions .suggestion-item:hover,
.auto-suggestions .suggestion-item.active {
  background-color: #f0f0f0;
}
.auto-suggestions::-webkit-scrollbar {
  width: 6px;
}
.auto-suggestions::-webkit-scrollbar-track {
  background: #f0f0f0;
}
.auto-suggestions::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}
.down-icon {
  width: 30px;
  height: 30px;
  background-color: #dc4f00;
  position: absolute;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  right: 3%;
  bottom: 20%;
  cursor: pointer;
  transition: background-color 0.2s ease;
  z-index: 100;
}
.fullscreen .down-icon {
  bottom: 15%;
}
.down-icon i {
  color: #fff;
  padding: 7px;
}
.down-icon:hover {
  background-color: #dc4f00;
}
#loading-spinner {
  text-align: center;
  padding: 10px;
  font-size: 14px;
  color: #888;
}
#loading-spinner::after {
  content: "";
  display: inline-block;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #dc4f00;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 2s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}
.logout-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.logout-modal {
  background-color: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  min-width: 250px;
  font-family: sans-serif;
}
.logout-modal h3 {
  margin: 0 0 15px;
}
.logout-modal button {
  background-color: #dc4f00;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  margin: 0 5px;
}
.logout-modal button.logout-no {
  background-color: #ccc;
  color: #000;
}
.image_logo {
  width: 23%;
}
@media (min-width: 1930px) and (max-width: 2560px) {
  #chatbot-screen {
    top: 35% !important;
    max-width: 500px;
  }
  #chat-input-container {
    max-width: 500px;
  }
  .down-icon {
    bottom: 10%;
  }
}
@media (max-width: 500px) {
  #chatbot-screen {
    max-width: 300px;
    margin-right: 1rem;
  }
  #chat-icon {
    right: 10px;
    bottom: 20px;
  }

  .login-container h2 {
    font-size: 20px;
  }
  .login-container input {
    padding: 8px;
    font-size: 14px;
  }
  #login-btn {
    font-size: 15px;
    padding: 8px;
  }
  .otp-header h2 {
    font-size: 18px;
  }
  .otp-box {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  #verify-otp-btn {
    font-size: 15px;
    padding: 8px;
  }
  #resend-otp-btn {
    font-size: 15px;
    padding: 7px 6px;
  }
  #chat-input-container {
    bottom: 79px;
  }
  #chat-icon {
    right: 10px !important;
    bottom: 20px !important;
  }
}
