.wrapper {
  height: 100vh;
  overflow: hidden;
  display: flex;
  width: 100%;
}

html.eai-loading,
html.eai-loading body {
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  font-family: sans-serif;
}

html.eai-loading #wrapper {
  display: none;
}

.chat-bubble {
  position: relative;
  background: #fff;
  border-radius: 25px;
  padding: 10px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chat-bubble::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 25px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-top-color: #fff;
}

.typing {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  background: #999;
  border-radius: 50%;
  animation: blink 1s infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {

  0%,
  40% {
    opacity: 0.2;
  }

  20% {
    opacity: 1;
  }
}


@media (min-width: 768px) {
  #wrapper {
    flex-direction: row;
  }
}

.header-bar {
  border-bottom: 1px solid #D1D5DB;
}

.header-bar #toggleSidebarBtn:active {
  border-color: transparent;
}

.sidebar {
  height: 100%;
  width: 300px;
  border: 1px solid #D1D5DB;
  background-color: #F4F7FB;
  padding-top: 15px;
  overflow-y: auto;
  position: fixed;
  top: 0;
  left: -300px;
  transition: left 0.3s ease;
  z-index: 1000;
}

.list-group-item:first-child {
  padding-top: 0;
}

.sidebar .list-group li>span label {
  cursor: pointer;
}

.sidebar .list-group li {
  border: none;
  background: transparent;
}

.sidebar .list-group li.has-child .list-group li {
  padding-right: 0;
  font-size: 14px;
}

.sidebar .list-group li.has-child .list-group li span {
  border: none;
  padding-right: 0;
}

.sidebar .list-group li>span {
  gap: 10px;
  display: flex;
  align-items: baseline;
  border-radius: 8px;
  border: 1px solid #E8E8E8;
  width: 100%;
  padding: 8px 16px;
}

.sidebar .list-group li.has-child>span {
  margin-bottom: 15px;
}

.sidebar .list-group li>span:before {
  content: '';
  border: 1px dashed #E8E8E8;
  border-radius: 100%;
  width: 12px;
  height: 12px;
  display: inline-block;
  cursor: pointer;
}

.sidebar .list-group li.active>span:before {
  border: 1px dashed #636363;
  background: #636363;
}

.sidebar .list-group li.active,
.sidebar .list-group li:hover {
  color: initial;
}

@media (min-width: 768px) {
  .sidebar {
    left: 0;
  }
}

.chat-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-left: 0;
  padding-bottom: 0;
  transition: margin-left 0.3s ease;
}

@media (min-width: 768px) {
  .chat-section {
    margin-left: 300px;
  }
}

.chat-box {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex: auto;
  padding: 20px;
  height: 100%;
}

.chat-message {
  display: flex;
  align-items: start;
  gap: 10px;
  max-width: 85%;
  border-radius: 10px;
}

.chat-message:not(:last-child) {
  margin-bottom: 20px;
}

.bot-message-text {
  display: inline-block;
  white-space: pre-wrap;
}

.chat-message.user-message {
  padding: 10px;
  background-color: #ececec;
}

.chat-message p {
  margin-bottom: 0;
}

.chat-message .date-wrapper {
  margin-bottom: 24px;
  font-size: 0.8rem;
  opacity: 0.8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-message.user-message .date-wrapper {
  text-align: right;
}

.chat-message .ceo-img {
  width: 20px;
}

.chat-message .generate-response-speech {
  cursor: pointer;
}

.user-message {
  align-self: flex-end;
}

.chat-form-wrapper {
  padding-bottom: 10px !important;
}

.chat-form-wrapper input#messageInput {
  scrollbar-width: none;
  border-radius: 0px;
  border: none;
}

.chat-form-wrapper input#messageInput:focus {
  box-shadow: none;
  border: initial;
}

div::-webkit-scrollbar,
.chat-form-wrapper input#messageInput::-webkit-scrollbar {
  display: none;
}

.generate-response-speech-wrapper {
  cursor: pointer;
}

.generate-response-speech-wrapper[data-state="init"] i.generate-response-speech-init {
  display: inline-block;
}

.generate-response-speech-wrapper[data-state="init"] i.generate-response-speech-generating,
.generate-response-speech-wrapper[data-state="init"] i.generate-response-speech-stop {
  display: none;
}

.generate-response-speech-wrapper[data-state="generating"] i.generate-response-speech-generating {
  display: inline-block;
}

.generate-response-speech-wrapper[data-state="generating"] i.generate-response-speech-init,
.generate-response-speech-wrapper[data-state="generating"] i.generate-response-speech-stop {
  display: none;
}

.generate-response-speech-wrapper[data-state="playing"] i.generate-response-speech-stop {
  display: inline-block;
}

.generate-response-speech-wrapper[data-state="playing"] i.generate-response-speech-init,
.generate-response-speech-wrapper[data-state="playing"] i.generate-response-speech-generating {
  display: none;
}

@media (max-width: 767px) {
  .chat-section {
    padding-bottom: 113px;
  }

  .chat-form-wrapper {
    position: fixed;
    bottom: 0px;
    padding: 20px;
    background: #fff;
  }

  .chat-box {
    padding: 20px;
  }

  .chat-message {
    max-width: 95%;
  }
}

.smart-prompts-wrapper {
  margin-bottom: 15px;
  overflow-x: scroll;
  display: flex;
}

.smart-prompts-wrapper .smart-prompt {
  background-color: #EFEFEF;
  color: #000;
  font-weight: 400;
  cursor: pointer;
  padding-top: 0.75em;
  padding-bottom: 0.75em;
}

.smart-prompts-wrapper .smart-prompt:not(:last-child) {
  margin-right: 0.5em;
}

#errorContainer {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: -1;
  min-width: 250px;
}

#errorContainer.show {
  z-index: 1;
}