@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Manrope:wght@200..800&family=Roboto+Condensed:wght@100..900&display=swap");

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: rgb(47, 62, 107);
  font-family: "Inter", sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

#chatbot-toggler{
  position: fixed;
  bottom: 30px;
  right: 35px;
  border: none;
  height: 50px;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  background: #2f2f36; 
  transition: all 0.2s ease;
}

body.show-chatbot #chatbot-toggler{
  transform: rotate(90deg);
}

#chatbot-toggler span{
  color: #fff;
  position: absolute;

}

body.show-chatbot #chatbot-toggler span:first-child,
#chatbot-toggler span:last-child{
  opacity: 0;
}

body.show-chatbot #chatbot-toggler span:last-child{
  opacity: 1;
}



#bgvideo {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 1;
}

.chatbot-popup {
  position: relative;
  width: 420px;
  background: rgb(240, 242, 244, 0.3);
  bottom: 10px;
  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(255, 255, 255, 0.1),
    0 32px 64px -48px rgba(255, 255, 255, 0.5); /* box-shadow: offset-x offset-y blur-radius spread-radius color;*/
    transition: all 0.1s ease;
}

body.show-chatbot .chatbot-popup{
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.chat-header {
  display: flex;
  height: 50px;
  align-items: center;
  background: rgb(194, 191, 191, 0.3);
  padding: 6px 22px; /* padding : vertical horizontal*/
  justify-content: space-between;
}

.chat-header .header-info {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.header-info .chatbot-logo {
  height: 35px;
  width: 35px;
  padding: 6px;
  fill: aqua;
  flex-shrink: 0;
  background-color: aliceblue;
  border-radius: 50%;
}

.header-info .logo-text {
  color: #2894c2; /* You can change this to something brighter like #a076f9 or #9370DB */
  font-size: 1.6rem;
  font-weight: 700;
  text-shadow: 0 0 5px rgba(83, 72, 234, 0.8), 0 0 10px rgba(89, 80, 201, 0.7),
    0 0 15px rgba(55, 46, 188, 0.6);
  letter-spacing: 0.5px;
}

.chat-header #close-chatbot {
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(66, 99, 128);
  background: rgb(221, 236, 248, 0.6);
  font-size: 1.9rem;
  height: 30px;
  width: 30px;
  padding-top: 2px;
  cursor: pointer;
  border-radius: 50%;
  transition: 0.3s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0); /* no shadow by default */
}

.chat-header #close-chatbot:hover {
  background: rgba(230, 237, 243, 0.1); /* optional light background */
  box-shadow: 0 0 12px rgba(246, 247, 248, 0.8),
    0 0 20px rgba(159, 208, 249, 0.6), 0 0 28px rgba(79, 173, 255, 0.4);
  color: rgb(41, 151, 248);
}

.chat-body {
  padding: 25px 22px;
  display: flex;
  padding-bottom: 80px;
  gap: 20px;
  height: 350px;
  margin-bottom: 22px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ccccf5 transparent;
  flex-direction: column; /*It tells the flex container to stack its children vertically or horzonatlly if =(row), from top to bottom.*/
}

.chat-body .message {
  display: flex;
  gap: 11px;
  align-items: center;
}

.chat-body .bot-message .bot-avatar {
  height: 28px;
  width: 28px;
  padding: 6px;
  fill: aqua;
  align-self: flex-end;
  margin-bottom: 2px;
  flex-shrink: 0;
  background-color: rgb(202, 202, 203);
  border-radius: 50%;
}

.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;
  background: #f2f2ff;
  border-radius: 9px;
}

.chat-body .bot-message .thinking .message-text {
  padding: 2px 16px;
}

.chat-body .bot-message .message-text {
  background: #f2f2ff;
  border-radius: 13px 13px 13px 3px;
}

.chat-body .user-message .message-text {
  color: #f2f2ff;
  background: #655cea;
  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: 3px;
  padding-block: 15px;
}

.chat-body .bot-message .thinking-indicator .dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  opacity: 0.7;
  background: #655cea;
  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%,
  44% {
    transform: translateY(0);
  }
  28% {
    opacity: 0.4;
    transform: translateY(-4px);
  }
  44% {
    opacity: 0.2;
  }
}

.chat-footer {
  opacity: 0.8;
  position: absolute;
  width: 378px;
  bottom: 0;
  background: #fff;
  padding: 15px 22px 10px;
}

.chat-footer .chat-form {
  display: flex;
  align-items: center;
  position: relative;
  background: #fff;
  border-radius: 32px 32px;
  outline: 1px solid#CCCCE5;
}

.chat-footer .chat-form:focus-within {
  outline: 2px solid #8179ea;
}

.chat-form .message-input {
  border: none;

  outline: none;
  height: 20px;
  width: 100%;
  font-size: 0.95rem;
  resize: none;
  padding: 14px 0 13px 18px;
  border-radius: inherit;
}

.chat-form .chat-controls {
  display: flex;
  height: 26px;
  align-items: center;
  gap: 2px;
  align-self: flex-end;
  padding-bottom: 10px;
  padding-right: 6px;
}

.chat-form .chat-controls button {
  height: 30px;
  width: 30px;
  border: none;
  cursor: pointer;
  font-size: 1.15rem;
  background: none;
  color: #655cea;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: 0.2s ease;
}

.chat-form .chat-controls #send-message {
  color: #fff;
  background: #655cea;
  display: none;
}

.chat-form .message-input:valid ~ .chat-controls #send-message {
  display: block;
}

.chat-form .chat-controls #send-message:hover {
  background: #3c35a2;
}

.chat-form .chat-controls button:hover {
  background: #f1f1ff;
  box-shadow: 0 0 12px rgba(52, 151, 249, 0.8), 0 0 20px rgba(41, 113, 171, 0.6),
    0 0 28px rgba(19, 56, 88, 0.4);
}

.chat-form .file-upload-wrapper {
  height: 30px;
  width: 30px;
  position: relative;
}

.chat-form .file-upload-wrapper :where(img,button){
  position: absolute;
}

.chat-form .file-upload-wrapper img {
  position: absolute;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.chat-form .file-upload-wrapper #file-cancel{
  color: #ff0101;
  background: #000000 transparent;


}

.chat-form .file-upload-wrapper :where(img,#file-cancel),
.chat-form .file-upload-wrapper.file-uploaded #file-upload{
  display: none;
}

.chat-form .file-upload-wrapper.file-uploaded img ,
.chat-form .file-upload-wrapper.file-uploaded:hover  #file-cancel{
  display: block;
}



em-emoji-picker{
  position: absolute;
  left: 50%;
  top: -337px;
  width: 100%;
  max-width: 350px;
  max-height: 330px;
  visibility: hidden;
  transform: translateX(-50%);
  transition: 0.1s ease;
}

body.show-emoji-picker em-emoji-picker{
  visibility: visible;
}