:root { 
  --background-color: #ffffff; 
  --default-color: #111111; 
  --heading-color: #3e5055; 
  --accent-color: #388da8; 
  --surface-color: #ffffff; 
  --contrast-color: #ffffff; 
  --first-color: #d2242a;
  --second-color: #ffcc00;
  
}
#chatbot-toggler {
  position: fixed;
  bottom: 30px;
  right: 35px;
  border: none;
  height: 65px;
  width: 65px;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--default-color);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  z-index: 99;
}
.notif{
  position: fixed;
  content: '';
  height: 17px;
  width: 17px;
  bottom: 73px;
  right: 85px;
  border-radius: 50%;
  background-color: var(--second-color);
  opacity: 1;
  visibility: visible;
}
.notif-text{
  position: relative;
  max-width: 350px;
  background-color: var(--background-color);
  position: fixed;
  bottom: 30px;
  right: 110px;
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
  z-index: 99;
  transition: .3s;
  opacity: 1;
  visibility: visible;
}
.notif-text p{
  font-size: 1rem;
  text-align: start;
}
.notif-text span{
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: color-mix(in srgb, var(--default-color), var(--contrast-color) 50%);
  color: var(--contrast-color);
  left: -5px;
  top: -5px;
  opacity: 0;
  visibility: hidden;
  border-radius: 50%;
  transition: all 0.3s;
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.notif-text:hover span{
  opacity: 1;
  visibility: visible;
}
.notif-text span:hover{
  background-color: var(--default-color);
}
body.show-chatbot #chatbot-toggler {
  transform: rotate(90deg);
}
#chatbot-toggler span {
  color: var(--contrast-color);
  position: absolute;
  font-size: 1.8rem;
}
#chatbot-toggler span:last-child,
body.show-chatbot #chatbot-toggler span:nth-child(2){
  opacity: 0;
}
body.show-chatbot #chatbot-toggler span:last-child {
  opacity: 1;
}
.chatbot-popup {
  position: fixed;
  right: 35px;
  bottom: 100px;
  width: 420px;
  overflow: hidden;
  background: var(--background-color);
  border-radius: 15px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.2);
  transform-origin: bottom right;
  box-shadow: 0 0 128px 0 rgba(0, 0, 0, 0.1),
    0 32px 64px -48px rgba(0, 0, 0, 0.5);
  transition: .3s ease;
  z-index: 200;
}
body.show-chatbot .chatbot-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}
.chat-header {
  display: flex;
  align-items: center;
  padding: 15px 22px;
  background: var(--default-color);
  justify-content: space-between;
}
.chat-header .header-info {
  display: flex;
  gap: 10px;
  align-items: center;
}
.header-info .chatbot-logo {
  width: 35px;
  height: 35px;
  padding: 6px;
  fill: var(--second-color);
  flex-shrink: 0;
  background: var(--background-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-info .chatbot-logo img{
  width: 25px;
  height: 25px;
}
.header-info .logo-text {
  color: var(--contrast-color);
  font-weight: 600;
  font-size: 1.31rem;
  letter-spacing: 0.02rem;
}
.chat-header #close-chatbot {
  border: none;
  color: var(--contrast-color);
  height: 40px;
  width: 40px;
  font-size: 1.9rem;
  margin-right: -10px;
  padding-top: 2px;
  cursor: pointer;
  border-radius: 50%;
  background: none;
  transition: 0.2s ease;
}
.chat-header #close-chatbot:hover {
  background: color-mix(in srgb, var(--contrast-color), transparent 70%);
}
.chat-body {
  padding: 25px 22px;
  gap: 2px;
  display: flex;
  height: 400px;
  overflow-y: auto;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--second-color), transparent 60%) transparent;
}
.chat-body .message {
  display: flex;
  gap: 11px;
  align-items: center;
}
.chat-body .message:nth-child(4){
  padding: 15px 0;
}
.chat-body .message .bot-avatar {
  width: 35px;
  height: 35px;
  padding: 6px;
  fill: var(--contrast-color);
  flex-shrink: 0;
  margin-bottom: 2px;
  align-self: flex-end;
  border-radius: 50%;
  background: var(--default-color);
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-body .bot-message#boss .bot-avatar,
.chat-body .bot-message#search2 .bot-avatar{
  display: none;
}
.chat-body .message .bot-avatar img{
  width: 25px;
  height: 25px;
}
.chat-body .message .message-text {
  padding: 12px 16px;
  max-width: 75%;
  font-size: 0.95rem;
}
.chat-body .message .message-text a{
  color: var(--default-color);
  text-decoration: underline;
}
.chat-body .bot-message.thinking .message-text {
  padding: 2px 16px;
}
.chat-body .bot-message .message-text {
  color: var(--default-color);
  background: color-mix(in srgb, var(--default-color), transparent 95%);
  border-radius: 13px 13px 13px 3px;
  animation: appearbottom .3s;
}
@keyframes appearbottom {
  from{
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
  }
  to{
    margin-top: 0;
    opacity: 1;
    visibility: visible;
  }
}
.chat-body .bot-message#boss .message-text,
.chat-body .bot-message#search2 .message-text{
  margin-left: 46px;
}
.chat-body .bot-message#biss .message-text,
.chat-body .bot-message#search1 .message-text{
  border-radius: 3px 13px 13px 13px;
}
.chat-body .user-message {
  flex-direction: column;
  align-items: flex-end;
  animation: appearleft .3s;
}
@keyframes appearleft {
  from{
    margin-right: -10px;
    opacity: 0;
    visibility: hidden;
  }
  to{
    margin-right: 0;
    opacity: 1;
    visibility: visible;
  }
}
.chat-body .message.user-message:nth-child(5){
  margin-top: -15px;
}
.chat-body .user-message .message-text {
  color: var(--default-color);
  background-color: transparent;
  border: 2px solid var(--default-color);
  border-radius: 30px;
  transition: 0.3s ease;
  cursor: pointer;
}
.chat-body .user-message .message-text:hover,
.chat-body .user-message.active .message-text{
  color: var(--second-color);
  background-color: var(--default-color);
}
.chat-body .bot-message .thinking-indicator {
  display: flex;
  gap: 4px;
}
.chat-body .bot-message .thinking-indicator .dot {
  height: 7px;
  width: 7px;
  opacity: 0.7;
  border-radius: 50%;
  background: var(--default-color);
  animation: dotPulse 1.8s ease-in-out infinite;
}
.chat-body .bot-message .thinking-indicator .dot:nth-child(1) {
  animation-delay: 0.2s;
}
.chat-body .bot-message .thinking-indicator .dot:nth-child(2) {
  animation-delay: 0.3s;
}
.chat-body .bot-message .thinking-indicator .dot:nth-child(3) {
  animation-delay: 0.4s;
}
.date{
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 15px;
  font-size: 14px;
  cursor: pointer;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  animation: appearbottom .5s;
}
.init{
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 25px;
  font-size: 14px;
  cursor: pointer;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  animation: appearbottom .5s;
}
@keyframes dotPulse {
  0%,
  44% {
    transform: translateY(0);
  }
  28% {
    opacity: 0.4;
    transform: translateY(-4px);
  }
  44% {
    opacity: 0.2;
  }
}

@media (max-width: 520px) {
  #chatbot-toggler {
    right: 20px;
    bottom: 20px;
  }
  .notif{
    bottom: 62px;
    right: 70px;
  }
  .notif-text{
    bottom: 20px;
    right: 97px;
    max-width: 220px;
  }
  .notif-text p{
    font-size: 14px;
  }
  .chatbot-popup {
    right: 0;
    bottom: 0;
    height: 100%;
    border-radius: 0;
    width: 100%;
  }
  .chatbot-popup .chat-header {
    padding: 12px 15px;
  }
  .chat-body {
    height: calc(90%);
    padding: 25px 15px;
  }
  .chat-body .message .message-text {
    font-size: 0.9rem;
  }
  .init,
  .date{
    font-size: 13px;
  }
}