@import url("https://fonts.googleapis.com/css2?family=Gabarito&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #1e1e1e;
  background-color: #18141c;
  height: 100vh;
  position: relative;
  background-color: #18141C;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* font-weight: 600; */
  /* font-family: 'Gabarito', sans-serif; */
  /* opacity: 0; */
  /* transition: opacity 0.5s ease-in-out; */
}

.hidden {
  display: none !important;
  pointer-events: none !important;
}

#content-container {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

/* Class to activate smooth appearance */
.fade-in {
  opacity: 1 !important;
}

.plugin-window {
  margin: 0 auto;
  width: 430px;
  overflow: hidden;
  /* position: absolute; */
  /* bottom: 30px; */
  /* right: 30px; */
  /* width: 466px; */
  /* height: 614px; */
  background-color: #18141c;
  color: #ffffff;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* backdrop-filter: blur(100px); */
  /* box-shadow: 0px 0px 35px 0px #00000059; */
  font-weight: 600;
  font-family: "Gabarito", sans-serif;
  max-width: 600px;
  min-height: 505px;
  margin: 0 auto;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  font-size: 14px;
  border-bottom: 1px #2b2631 solid;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-button,
.close-button {
  background: none;
  border: none;
  color: #625a69;
  font-size: 1.5em;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.menu-button:hover svg,
.close-button:hover svg {
  color: #fff;
}

.expand-button {
  display: flex;
  align-items: center;
  color: #fff;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  padding: 7px 10px;
  border-radius: 4px;
  transition: background-color 0.25s ease-in-out;
}

.expand-button:hover {
  background-color: #2e2834;
}

.icon {
  width: 16px;
  height: 16px;
  margin-left: 8px;
}

.loading {
  margin: 0 auto;
  position: relative;
}

.welcome,
.allow {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 64px;
  text-align: center;
}

.welcome p,
.allow p {
  padding-top: 24px;
  font-size: 24px;
}

.allow span {
  padding-top: 8px;
  color: #f45182;
  text-decoration: none;
}

.allow-btn {
  margin-top: 32px;
  background: linear-gradient(262.1deg, #90b4f9 -10.4%, #3c38f1 92.48%);
  width: fit-content;
  padding: 14px 24px;
  font-size: 18px;
  color: #fff;
  border: none;
  border-radius: 25px;
}

.allow-btn:hover {
  background: linear-gradient(262.83deg, #90b4f9 -133.24%, #3c38f1 92.47%);
}

.chat-wrapper {
  position: relative;
  height: 100%;
}

.intro {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-top: 40px;
  /* margin-bottom: 10px; */
  /* height: 90px;*/
}

.intro-logo {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 170px;
  pointer-events: none;
}

.intro-text {
  position: relative;
  font-size: 20px;
  font-weight: 600;
  z-index: 2;
  margin-top: 80px;
  text-align: center;
}

.chat-input {
  position: relative;
  display: flex;
  margin: 0 auto;
  max-width: 382px;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
  padding: 0 42px;
}

.quick-action-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 12px;
  background-color: #211c26;
  border-radius: 12px;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: 400;
}

.quick-action-button:hover {
  background-color: #2e2834;
}

.quick-action-button img {
  width: 32px;
  height: 32px;
}

.footer-buttons {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #141017;
  padding: 12px 80px;
  display: flex;
  justify-content: space-between;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}

.footer-button {
  position: relative;
  background-color: transparent;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.footer-button:hover {
  background-color: #2e2834;
}

.footer-button img {
  width: 28px;
  height: 28px;
}

.footer-button .tooltip {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-bottom: 8px;
  background-color: #000;
  color: #fff;
  padding: 6px 12px;
  font-size: 14px;
  white-space: nowrap;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.footer-button:hover .tooltip {
  opacity: 1;
}

.active-chat-input {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) !important;
  width: 382px;
  margin-bottom: 0;
}

#message-input {
  flex: 1;
  border-radius: 28px;
  background-color: #211c26;
  color: #8f8996;
  caret-color: #6877ff;
  border: none;
  outline: none;
  padding: 20px 56px 20px 24px;
  font-size: 14px;
}

#message-input.active {
  color: #ffffff;
  border: none;
  outline: none;
  background-color: #211c26;
}

.send-button {
  background: none;
  border: none;
}

.input-icon {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: #888888;
  cursor: pointer;
}

.chat-body {
  flex-grow: 1;
  min-width: 466px;
  max-height: 460px;
  overflow-y: auto;
  display: flex;
  flex-direction: column-reverse;
  transform: translateY(-3%);
}

.messages {
  font-family: Inter;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 42px;
}

.message {
  max-width: 80%;
  padding: 9px;
  font-size: 14px;
  line-height: 1.3;
  border-radius: 8px;
}

.message.user {
  align-self: flex-end;
  background-color: #29222f;
  max-width: 80%;
  padding: 8px 9px 8px 9px;
  border-radius: 12px 2px 12px 12px;
}

.message.bot {
  align-self: flex-start;
  position: relative;
  color: white;
  white-space: pre-wrap;
  background-color: rgb(25, 27, 47);
  margin-left: 28px;
  border-radius: 2px 12px 12px;
}

.message.bot::before {
  position: absolute;
  top: 0;
  left: -32px;
  margin-right: 8px;
  flex-shrink: 0;
  align-self: center;
  content: "";
  position: absolute;
  top: -8px;
  left: -58px;
  width: 60px;
  height: 60px;
  display: block;
  background: url(/assets/chat-logo.svg) center center / cover no-repeat;
}

.dot-flashing {
  margin: 5px 18px;
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 5px;
  background-color: #6877ff;
  color: #6877ff;
  animation: dot-flashing 1s infinite linear alternate;
  animation-delay: 0.5s;
}

.dot-flashing::before,
.dot-flashing::after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 0;
}

.dot-flashing::before {
  left: -15px;
  width: 8px;
  height: 8px;
  border-radius: 5px;
  background-color: #6877ff;
  color: #6877ff;
  animation: dot-flashing 1s infinite alternate;
  animation-delay: 0s;
}

.dot-flashing::after {
  left: 15px;
  width: 8px;
  height: 8px;
  border-radius: 5px;
  background-color: #6877ff;
  color: #6877ff;
  animation: dot-flashing 1s infinite alternate;
  animation-delay: 1s;
}

@keyframes dot-flashing {
  0% {
    background-color: #6877ff;
  }

  50%,
  100% {
    background-color: rgba(152, 128, 255, 0.2);
  }
}

/* Definition of smooth appearance animation*/
  .slide-up-content {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s ease-out forwards;
  }

  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* General style for scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  ::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }

  ::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.5);
  }