.chat-input-container.hidden-form {
  display: none;
}

.chat-toggle-button img {
  width: 40px;
  filter: invert(0);
  background: #f3f3f3;
  border-radius: 500px;
  padding: 0;
  margin: 0;
}

.chat-app-container-header svg {
  display: none;
}

.chat-app-container-header {
  box-shadow: none;
  background: #f9f9f900;
  color: #000;
  border-bottom: 1px solid #b28b3d14;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.message-bubble {
  background: #ffffff87;
  border: 2px solid #ffffff7d;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.04);
  max-width: 20rem;
  padding: 0.75rem;
  border-radius: 1.5rem;
}

@media (min-width: 640px) {
  .message-bubble {
    max-width: 24rem;
  }
}

@media (min-width: 768px) {
  .message-bubble {
    max-width: 28rem;
  }
}

@media (min-width: 1024px) {
  .message-bubble {
    max-width: 32rem;
  }
}

.chat-input-container {
  background: #ffffff00;
  box-shadow: none;
  border-top: 2px solid #ffffff47;
  z-index: 9;
  padding: 1rem;
}

.chat-app-container {
  background: linear-gradient(
    325deg,
    rgba(250, 244, 241, 0) 0%,
    rgba(231, 230, 251, 0) 100%
  );
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background-color: #051912;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-radius: 1rem;
  border: 1px solid #ffffff0f;
}

@media (min-width: 768px) {
  .chat-app-container {
    max-width: 28rem;
    margin: 2rem auto;
    height: 90vh;
  }
}

.messages-container {
  background: linear-gradient(
    325deg,
    rgba(250, 244, 241, 0) 0%,
    rgba(231, 230, 251, 0) 100%
  );
  position: relative;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1rem;
}

h1.text-xl.font-bold {
  text-align: left;
  font-size: 1.25rem;
  font-weight: 700;
}

.gradient-text {
  background: linear-gradient(
    270deg,
    #e73f64,
    #d83566,
    #b82e68,
    #7c2d65,
    #4a336d,
    #2e3a74,
    #22386e,
    #2c4c8c,
    #3d5ea7,
    #4c72c3
  );
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: animateGradient 6s ease infinite;
}

@keyframes animateGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.round.one {
  width: 500px;
  height: 500px;
  position: absolute;
  background: #001a2aa1;
  border-radius: 500px;
  filter: blur(80px);
  animation: move1 6s infinite alternate;
}

.round.two {
  width: 300px;
  height: 300px;
  position: absolute;
  background: #eca71c3b;
  border-radius: 500px;
  filter: blur(80px);
  bottom: -20%;
  right: -20%;
  animation: move2 10s infinite alternate;
}

#chat-app-container {
  position: fixed;
  z-index: 9999;
  bottom: -1rem;
  right: 1rem;
}

#chat-app-container input {
  background: #ffffff;
  border: 2px solid #f1f1f1 !important;
  flex-grow: 1;
  padding: 1rem;
  border-radius: 9999px;
  border-width: 0;
  font-size: 1rem;
  line-height: 1.5rem;
  color: #4b5563;
  transition-property: all;
  transition-duration: 200ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

#chat-app-container input:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

@keyframes move1 {
  0% {
    transform: translate(0%, 0%);
  }

  50% {
    transform: translate(50%, 50%);
  }

  10% {
    transform: translate(0%, 0%);
  }
}

@keyframes move2 {
  0% {
    transform: translate(0%, 0%);
  }

  50% {
    transform: translate(-50%, -50%);
  }

  10% {
    transform: translate(0%, 0%);
  }
}

.mainLogo img {
  width: 32px;
  border-radius: 500px;
  margin-top: -18px;
}

.mainLogo {
  display: flex;
  align-content: center;
  align-items: center;
  gap: 5px;
}

.send-button,
.chat-toggle-button {
  background: #c08927;
  padding: 1rem;
  border-radius: 9999px;
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition-property: all;
  transition-duration: 200ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.send-button svg {
  width: 1.5rem;
  height: 1.5rem;
}

.logoIn {
  display: flex;
  flex-direction: column;
}

.logoIn h1 {
  margin: 0;
}

.logoIn p {
  font-size: 8px;
  margin-top: -2px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.7;
  color: #fff;
}
.chat-button-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
}
.chat-app-container-header .mainLogo h3 {
  font-weight: 600;
  color: #fff !important;
  margin: 0;
  margin-bottom: -6px;
}

.user-message-bubble {
  border-bottom-right-radius: 0.375rem;
  background: linear-gradient(
    to top left,
    rgb(255 255 255 / 11%),
    rgb(255 255 255 / 0%)
  );
  color: #ffffff;
  border: 1px solid #ffffff3d;
}
.bot-message-bubble {
  background: linear-gradient(
    to top left,
    rgb(255 255 255 / 11%),
    rgb(255 255 255 / 0%)
  );
  color: #ffffff;
  border-bottom-left-radius: 0.375rem;
  border: 1px solid #ffffff3d;
}

.clear-button {
  border: 0;
  padding: 0.5rem;
  margin-right: 0.5rem;
  font-size: 0.875rem;
  border-radius: 9999px;
  color: #4b5563;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 99;
}

.clear-button:hover {
  background-color: #e5e7eb;
}

.close-button {
  padding: 0.5rem;
  border-radius: 9999px;
  transition: all 0.2s;
  width: 30px;
  height: 30px;
  background: #e8e8e8;
  display: flex;
  position: relative;
  align-items: center;
  border: 0;
  justify-content: center;
}

.close-button:hover {
  background-color: #e5e7eb;
}

.close-button svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #4b5563;
}

.messages-list {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  row-gap: 1rem;
  padding: 1rem;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.message-text {
  font-size: 0.875rem;
  line-height: 1.5rem;
  word-wrap: break-word;
}

@media (min-width: 768px) {
  .message-text {
    font-size: 1rem;
  }
}

.chat-input-container {
  padding: 1rem;
  background-color: #083022;
  box-shadow: 0 -20px 25px -5px rgba(0, 0, 0, 0.1),
    0 -10px 10px -5px rgba(0, 0, 0, 0.04);
  border-bottom-left-radius: 1.5rem;
  border-bottom-right-radius: 1.5rem;
  border-top: 0px solid #e5e7eb;
}

.chat-form {
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
}

button#send-button {
  border: 0;
}

/* Mobile styles */
@media (max-width: 991px) {
  #chat-app-container {
    right: unset;
    bottom: 1rem;
    width: calc(100vw - 2rem);
    top: unset;
    height: 85vh;
    right: 0;
    left: 1rem;
  }

  #chat-app-container input {
    width: 50%;
  }

  .chat-app-container-overlay {
    background: #ffffff6e;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    backdrop-filter: blur(20px);
    display: none;
  }

  .chat-app-container-overlay.active {
    display: block;
  }
}

/* Utility classes */
.hidden {
  display: none;
}

.flex {
  display: flex;
}

.messages-list .flex {
  display: flex;
  justify-content: flex-end;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-center: center;
}

.fixed {
  position: fixed;
}

.right-8 {
  right: 2rem;
}

.bottom-8 {
  bottom: 2rem;
}

.z-50 {
  z-index: 50;
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.text-white {
  color: white;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-t-2xl {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.rounded-b-2xl {
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

.flex-grow {
  flex-grow: 1;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-y-auto {
  overflow-y: auto;
}

.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1rem;
}

.p-4 {
  padding: 1rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.my-8 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.chat-button-container {
  position: unset !important;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
}

.chat-toggle-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 0;
  padding: 0 !important;
  position: fixed;
  right: 48px;
  transform: scale(0.6) translate(13px, -6px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) transform;
}

.chat-toggle-button:hover {
  transform: scale(0.7) translate(13px, -6px);
}
