/* importing the font from google font */
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oxygen:wght@300;400;700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: 0;
  font-family: "Roboto", sans-serif;
}
html {
  scroll-behavior: smooth;
}
body {
  /* display: flex;
  align-items: center;
  justify-content: center; */
  height: 100vh;
  background-color: #000001 ;
  /* background: linear-gradient(#fffefe, #c8c7ff); */
}
/* 1E2A5E */
#chatbot-toggler {
  position: fixed;
  bottom: 30px;
  right: 35px;
  width: 50px;
  border: none;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  background-color: #5CB338;
  transition: all 0.2s ease;
}
body.show-chatbot #chatbot-toggler {
  transform: rotate(90deg);
}
#chatbot-toggler i {
  color: #fff;
  position: absolute;
  font-size: large;
}
/* this below code is the how to handle two img add n remove  */
body.show-chatbot #chatbot-toggler i:first-child,
#chatbot-toggler i:last-child {
  opacity: 0;
}
body.show-chatbot #chatbot-toggler i:last-child {
  opacity: 1;
}
/* this is the chat bot header */
.chatbot-popup {
  position: fixed;
  right: 35px;
  bottom: 90px;
  width: 460px;
  background-color: #fff;
  overflow: hidden;
  border-radius: 15px;
  opacity: 0;
  transform: scale(0.2);
  transform-origin: bottom right;
  pointer-events: none;
  box-shadow: 0 0 128px 0 rgba(0, 0, 0, 0.2),
    0 32px 64px -48px rgba(0, 0, 0, 0.5);
  transition: all 0.1s ease;
}

body.show-chatbot .chatbot-popup {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.chat-header {
  display: flex;
  align-items: center;
  background: #5CB338;
  /* background: #5350c4; */
  padding: 15px 22px;
  justify-content: space-between;
}

.chat-header .header-info {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-info .chatbot-logo {
  height: 40px;
  width: 40px;
  padding: 6px;
  fill: #5CB338;
  /* fill: #5350c4; */
  flex-shrink: 0;
  background-color: #fff;
  border-radius: 50%;
}
.header-info .logo-text {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 60;
  font-family:"Bebas Neue", serif;
}

.chat-header button {
  border: none;
  color: #fff;
  height: 40px;
  width: 40px;
  font-size: 1.9rem;
  margin-right: -10px;
  padding-top: 2px;
  cursor: pointer;
  border-radius: 50%;
  background: none;
  transition: 0.2s;
}
.chat-header button:hover {
  background-color: #154a15;
}

/* this the chat bot  */
/* 1D1616 */
.chat-body {
  padding: 25px 22px;
  display: flex;
  gap: 20px;
  height: 390px;
  overflow-y: auto;
  flex-direction: column;
  background-color: #1D1616
}
.chat-body .message {
  display: flex;
  gap: 11px;
  align-items: center;
}
.chat-body .body-avatar {
  border: none;
  height: 30px;
  width: 30px;
  font-size: small;
  align-self: flex-end;
  border-radius: 50%;
  background-color: #5CB338;
  color: #fff;
  fill: #fff;
  padding: 6px;
}

.chat-body .user-message {
  flex-direction: column;
  align-items: flex-end;
}
.chat-body .message .message-text {
  padding: 12px 16px;
  max-width: 75%;
  font-size: 0.95rem;
}
.chat-body .bot-message.thinking .message-text {
  padding: 2px 16px;
}
.chat-body .bot-message .message-text {
  background-color: #d1f6c2;
  border-radius: 13px 13px 13px 3px;
}
.chat-body .user-message .message-text {
  color: #faf5f5;
  background-color: #5CB338;
  border-radius: 13px 13px 3px 13px;
}

.chat-body .user-message .attachment {
  width: 50%;
  margin-top: -7px;
  border-radius: 13px 3px 13px 13px;
}
.chat-body .bot-message .thinking-indicator {
  display: flex;
  gap: 4px;
  padding-block: 15px;
}

.chat-body .bot-message .thinking-indicator .dot {
  height: 7px;
  width: 7px;
  opacity: 0.7;
  border-radius: 50%;
  background-color: #5CB338;
  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;
}
@keyframes dotPulse {
  0% {
    transform: translateY(0);
  }
  28% {
    opacity: 0.4;
    transform: translateY(-4px);
  }
  44% {
    opacity: 0.2;
  }
}

/* footer  */

.chat-footer {
  /* position: absolute; */
  bottom: 0;
  width: 90%;
  background-color: #1D1616;
  padding: 10px 22px 20px;
}

.chat-footer .chat-form {
  display: flex;
  position: relative;
  align-items: center;
  background-color: #1D1616;;
  border-radius: 32px;
  outline: 2px solid #cbcbcd;
}
.chat-footer .chat-form:focus-within {
  outline: 3px solid #6fa956;
}
.chat-form .message-input {
  display: flex;
  justify-content: center;
  border: none;
  outline: none;
  /* height: 47px; */
  width: 100%;
  resize: none;
  font-size: 0.9rem;
  padding: 0 15px 5px 14px;
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 15px;
  /* padding-bottom: 10px; */
  background-color: #1D1616;
  color: #fff;
}

.chat-form .chat-controls {
  display: flex;
  /* height: 47px; */
  gap: 8px;
  /* align-items: center; */
  /* align-self: flex-end; */
  padding-right: 15px;
  /* margin-bottom: 13px; */
}

.chat-form .chat-controls button {
  height: 35px;
  width: 35px;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  color: #5CB338;
  background-color: #fffefe;
  border-radius: 50%;
}
.chat-form .chat-controls #send-message {
  
  display: none;
  /* background: #5350c4; */
}
.chat-form .message-input:valid ~ .chat-controls #send-message {
  display: block;
}
.chat-form .chat-controls button:hover {
  color: #dddcdc;
  background-color: #5CB338;
}

/*  */
.chat-form .file-upload-wrapper {
  height: 36px;
  width: 35px;
  position: relative;
}



/* for close the upload button */
/* .chat-form .file-upload-wrapper :where(img, button) {
  position: absolute;
}
.chat-form .file-upload-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.chat-form .file-upload-wrapper #file-cancel {
  color: #ff0000;
  background: #fff;
}

.chat-form
  .file-upload-wrapper
  :where(img, #file-cancel)
  .chat-form
  .file-upload-wrapper
  #file-upload {
  display: none;
}

.chat-form .file-upload-wrapper .file-uploaded img,
.chat-form .file-upload-wrapper :hover #file-cancel img {
  display: block;
} */

.chat-form .file-upload-wrapper {
  position: relative;
  display: inline-block;
} 

.chat-form .file-upload-wrapper img {
  width: 40px; /* Adjust size as needed */
  height: 40px; /* Adjust size as needed */
  object-fit: cover;
  border-radius: 50%;
  display: none; /* Hide by default */
}

.chat-form .file-upload-wrapper #file-cancel {
  position: absolute;
  top: -10px;
  right: -3px;
  color: #ff1212;
  background: #e0fee2;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  cursor: pointer;
  display: none; /* Hide by default */
}

.chat-form .file-upload-wrapper.file-uploaded img {
  display: block; /* Show when file is uploaded */
}

.chat-form .file-upload-wrapper.file-uploaded #file-cancel {
  display: block; /* Show when file is uploaded */
}

.chat-form .file-upload-wrapper.file-uploaded #file-upload {
  display: none; /* Hide upload button when file is uploaded */
}

/*  */
em-emoji-picker {
  position: absolute;
  left: 50%;
  top: -337px;
  width: 100%;
  max-width: 350px;
  max-height: 330px;
  visibility: hidden;
  transform: translateX(-50%);
}
body.show-emoji-picker em-emoji-picker {
  visibility: visible;
}







/* Styles for mobile devices in portrait mode */

/* Default styles for mobile */
/* .chatbot-popup {
  width: 300px;
  height: 600px;
} */

/* Styles for larger screens (e.g., tablets and desktops) */
@media (pointer: coarse) {
  .chatbot-popup {
    width: 320px;
    height: 600px;
    right: 20px;
  }
  #chatbot-toggler{
    right: 20px;

  }
}

@keyframes slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.chatbot-popup {
  animation: slide-up 0.3s ease;
}


