/* Importing Google Fonts - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  width: 100%;
  min-height: 80vh;
  background-color: rgb(8, 8, 8);
}

.all {
  justify-content: center;
  align-items: center;
  margin-left: 20%;
}

img {
  border-radius: 50%;
}

#chatbot-toggler {
  position: fixed;
  bottom: 30px;
  right: 35px;
  border: none;
  height: 50px;
  width: 50px;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #030303;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

body.show-chatbot #chatbot-toggler {
  transform: rotate(90deg);
}

#chatbot-toggler span {
  color: #080808;
  position: absolute;
}

#chatbot-toggler span:last-child,
body.show-chatbot #chatbot-toggler span:first-child {
  opacity: 0;
}

body.show-chatbot #chatbot-toggler span:last-child {
  opacity: 1;
}

.chatbot-popup {
  position: fixed;
  right: 35px;
  bottom: 90px;
  width: 420px;
  overflow: hidden;
  background: #fff;
  border-radius: 15px;
  opacity: 0;
  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: all 0.1s ease;
}

body.show-chatbot .chatbot-popup {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.chat-header {
  display: flex;
  align-items: center;
  padding: 15px 22px;
  margin-bottom: 50px;
}

.chat-header .header-info {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-right:1000px;
}

.header-info .chatbot-logo {
  width: 35px;
  height: 35px;
  padding: 6px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 50%;
}

.header-info .logo-text {
  color: #fff;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.02rem;
  margin-left: 500px;
}

.chat-header #close-chatbot {
  border: none;
  color: #fff;
  height: 40px;
  width: 40px;
  font-size: 1.9rem;
  margin-right: -5px;
  padding-top: 2px;
  cursor: pointer;
  border-radius: 50%;
  background: none;
  transition: 0.2s ease;
}

.chat-header #close-chatbot:hover {
  background: #3d39ac;
}

.chat-body {
  padding: 2px 22px;
  gap: 20px;
  display: flex;
  flex-direction: column;
  height: calc(35vh - 35px); /* Dynamic height for chat body */
  max-height: calc(70vh - 50px); /* Increased max-height for more space */
  overflow-y: auto;
  margin-top: 50px;
  transition: height 0.3s ease; /* Smooth transition for height */
  flex-grow: 1; /* Allows the chat body to grow with content */
}

.chat-body .message {
  display: flex;
  gap: 11px;
  align-items: center;
}

.chat-body .message .bot-avatar {
  width: 35px;
  height: 35px;
  padding: 6px;
  flex-shrink: 0;
  margin-bottom: 2px;
  border-radius: 50%;
  background: #030303;
}

.chat-body .message .message-text {
  padding: 12px 16px;
  max-width: 75%;
  font-size: 0.95rem;
}

.chat-body .bot-message .message-text {
  color: white;
  background: #3a3a3a;
  border-radius: 13px 13px 13px 3px;
}

h2 {
  color: white;
  margin-right: 270px;
  margin-bottom: 20px;
}

.chat-body .user-message {
  flex-direction: column;
  margin-left: 30%;
}

.chat-body .user-message .message-text {
  color: #fcfbfb;
  background: #272727;
  border-radius: 13px 13px 3px 13px;
}

.chat-footer {
  width: 100%;
  background: transparent;
  padding: 15px 22px 20px;
  position: relative;
  margin-top: auto;
}

.chat-footer .chat-form {
  margin-left: 8%;
  margin-top: 32px;
  width: 60%;
  height: 110px;
  display: flex;
  align-items: center;
  position: relative;
  border-radius: 15px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.06);
}

::placeholder {
  color: rgb(167, 167, 167);
}

.chat-form:focus-within {
  outline: 2px solid #030303;
}

.chat-form .message-input {
  width: 100%;
  height: 100%;
  outline: none;
  resize: none;
  border: none;
  max-height: 180px;
  background-color: rgb(44, 43, 43);
  border-radius: inherit;
  font-size: 0.95rem;
  color: white;
  padding: 14px 0 12px 18px;
}

.chat-form .chat-controls {
  gap: 3px;
  height: 47px;
  display: flex;
  padding-right: 6px;
  align-items: center;
  align-self: flex-end;
}

.chat-form .chat-controls button {
  height: 35px;
  width: 35px;
  border: none;
  cursor: pointer;
  color: #424242;
  border-radius: 50%;
  font-size: 1.15rem;
  background: none;
  transition: 0.2s ease;
}

.chat-form .chat-controls button:hover {
  color: gray;
  background: #f1f1ff;
}

.chat-form .chat-controls #send-message {
  color: #000000;
  background: #bbbbbb;
  margin-right: 1px;
  margin-top: -10px;
  font-size: 20px;
}

.chat-form .chat-controls #send-message:hover {
  background: #ffffff;
  color: rgb(10, 10, 10);
}

.chat-form .file-upload-wrapper {
  position: relative;
  height: 35px;
  width: 35px;
  margin-right: 500px;
}

em-emoji-picker {
  position: absolute;
  left: 50%;
  top: -337px;
  width: 100%;
  max-width: 350px;
  visibility: hidden;
  max-height: 330px;
  transform: translateX(-50%);
}

body.show-emoji-picker em-emoji-picker {
  visibility: visible;
}

.disclaimer {
  font-size: 0.7rem;
  color: #b9b9b9;
  margin-top: 100px;
  margin-right: 300px;
}

.smalldivcontainer {
  display: flex;
  padding-left: 80px;
  margin-top: 20px;
}

.smalldiv {
  width: auto;
  height: 40px;
  border: 1px solid rgb(63, 62, 62);
  margin-right: 10px;
  border-radius: 15px;
  text-align: center;
  padding: 10px;
  color: rgb(114, 113, 113);
  cursor: pointer;
}

.smalldiv:hover {
  background-color: rgb(82, 83, 83);
  color: #000000;
}

/* Responsive media query for mobile screens */
@media (max-width: 520px) {
  .chat-body {
    height: calc(90% - 55px); /* More space for messages */
    padding: 25px 15px;
  }

  .chat-footer {
    padding: 10px 15px 15px;
  }

  .chat-form {
    width: 80%; /* Take up more space on small screens */
  }

  .chat-footer .disclaimer {
    margin-left: 20px;
  }
}
