p {
  margin: 0;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-circle {
  width: fit-content;
  background-color: #151515;
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 101;
  cursor: pointer;
  border-radius: calc(infinity * 1px);
  font-size: 1.5rem;
  color: white;
  font-weight: 600;
  padding: 12px 32px;
  gap: 8px;
}

.ai-modal {
  max-width: 500px;
  width: 100%;
  height: 70%;
  display: none;
  flex-direction: column;
  position: fixed;
  bottom: 80px;
  right: 80px;
  z-index: 1021;
}

.ai-modal.open {
  display: flex;
}

.ai-modal-content {
  background-color: #fdfdfd;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 1px solid #e4e4e4;
  border-right: 1px solid #e4e4e4;
  border-left: 1px solid #e4e4e4;
  padding: 48px 16px 80px;
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
  gap: 16px;
  overflow: auto;
}

.ai-modal-button-container {
  padding: 20px 24px;
  background-color: #fdfdfd;
  border: 2px solid #e2e8f0;
  border-radius: calc(infinity * 1px);
  position: relative;
  top: -40px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ai-chat-bubble-bot {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 90%;
}

.chat-bubble {
  background-color: #f1f5fa;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-radius: 0.75rem;
  border-top-left-radius: 0;
  word-break: break-word;
}

.chat-bubble p {
  margin: 0;
}

.send-input {
  width: 100%;
  border: none;
  outline: none;
  color: black;
}

.send-button {
  width: fit-content;
  height: fit-content;
  border-radius: calc(infinity * 1px);
  padding: 12px;
  display: flex;
  flex-direction: column;
  background-color: #061c53;
}

.send-icon {
  height: auto;
  color: transparent;
  max-width: 100%;
  cursor: pointer;
  /* object-fit: contain; */
}

.avatar-container {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: calc(infinity * 1px);
  overflow: hidden;
}

.avatar {
  width: 100%;
  height: 100%;
}

.chat-row {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  margin-left: auto;
  max-width: 80%;
}

.chat-user {
  display: flex;
  flex-direction: column;
  margin-left: auto;
}

.chat-user-name {
  font-weight: 600;
  text-align: right;
  color: #000;
  margin: 0px;
}

.chat-bubble-user {
  background-color: #334054;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-radius: 0.75rem;
  border-top-right-radius: 0;
  color: #e6e9ee;
}

#chat-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: #555;
  font-size: 14px;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 4px solid #ccc; /* light gray */
  border-top-color: #4a90e2; /* blue highlight */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 8px;
}

.mic-button,
.lang-button {
  cursor: pointer;
  margin-left: 8px;
  display: flex;
  align-items: center;
  padding: 5px;
  border-radius: 50%;
}

.mic-button.listening {
  background-color: #ffcccc;
}

.lang-button {
  background: #eee;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
}
.tts-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
}
.tts-btn:hover {
  color: #007bff;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
