@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes animate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(720deg);
  }
}

@keyframes zoom-in-zoom-out {
  0% {
    scale: 100%;
  }

  50% {
    scale: 150%;
  }

  100% {
    scale: 100%;
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeOutScale {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}

@keyframes bounceClick {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.85);
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.4);
  }
  50% {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
  }
  100% {
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.4);
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes scaleDown {
  from {
    transform: scale(1.2);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slideRightLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes animate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(720deg);
  }
}

@keyframes zoom-in-zoom-out {
  0% {
    scale: 100%;
  }

  50% {
    scale: 150%;
  }

  100% {
    scale: 100%;
  }
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#chatBox * {
  margin-block-start: 0;
  box-sizing: border-box;
  justify-content: center;
}

#chat-icon {
  margin-block-start: 0;
  box-sizing: border-box;
  position: fixed;
  z-index: 9990;
  bottom: 100px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  text-align: center;
  animation: fadeInScale 0.6s ease;
}

#chat-icon.hide {
  opacity: 0;
  filter: alpha(opacity=0);
}

#chat-icon img {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#chat-icon img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

#chatBoxLoading {
  animation: rotate 5s infinite linear;
  width: 100%;
  position: absolute;
  height: 100%;
  top: 0;
  left: 0;
  background-image: url("./loading.png");
  z-index: 9995;
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
}

#chatBox {
  border-radius: 10px;
  margin-block-start: 0;
  box-sizing: border-box;
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 550px;
  min-height: 225px;
  border: none;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: -1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

#chatBox.show {
  z-index: 9991;
  opacity: 1;
  visibility: visible;
}

#chatBox-close,
#chatBox-action,
.language-switcher,
.view-transcript-button {
  width: 50px;
  height: 50px;
  border-radius: 6px !important;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  text-align: center;
  line-height: 3;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.3s ease;
}

#chatBox-close:hover,
#chatBox-action:hover,
.language-switcher:hover,
.view-transcript-button:hover {
  background: rgba(0, 0, 0, 0.5) !important;
  transform: scale(1.1);
}

#chatBox-close:active,
#chatBox-action:active,
.language-switcher:active,
.view-transcript-button:active {
  animation: bounceClick 0.3s ease;
}

.avatarContainer button {
  font-weight: 600;
  font-size: 16px;
  line-height: 16px;
  border-radius: 50px;
  text-align: center;
  padding: 8px 16px;
  margin-bottom: 0 !important;
  border: none;
  height: 50px;
  width: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatarContainer button:hover {
  transform: scale(1.1);
  animation: pulseGlow 1.5s infinite;
}

.avatarContainer button:active {
  animation: bounceClick 0.25s ease;
}

#transcriptContainer {
  position: relative;
  /* display: none; */
  width: 40%;
  max-width: 992px;
  margin: 0 auto;
  background: #ffffff;
  justify-content: space-between;
  z-index: 98;
  border-radius: 0 10px 10px 0;
  animation: slideRightLeft 0.4s ease;
}

.overlayQuestion-container.show {
  display: flex;
  animation: fadeInScale 0.4s ease;
}

.overlayQuestion-content {
  animation: fadeInUp 0.4s ease;
}

#chatBox * {
  margin-block-start: 0;
  box-sizing: border-box;
  justify-content: center;
}

#chat-icon {
  margin-block-start: 0;
  box-sizing: border-box;
  position: fixed;
  z-index: 9990;
  bottom: 100px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  text-align: center;
}

#chat-icon.hide {
  opacity: 0;
  filter: alpha(opacity=0);
}

#chat-icon img {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

#chatBoxLoading {
  animation: rotate 5s infinite linear;
  width: 100%;
  position: absolute;
  height: 100%;
  top: 0;
  left: 0;
  background-image: url("./loading.png");
  z-index: 9995;
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
}

#chatBox {
  border-radius: 10px;
  margin-block-start: 0;
  box-sizing: border-box;
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 550px;
  min-height: 225px;
  border: none;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
  z-index: -1;
  opacity: 0;
  visibility: hidden;
}

#chatBox.show {
  z-index: 9991;
  opacity: 1;
  visibility: visible;
}

#chatBox.fullwidth {
  border-radius: 0px;
  width: 100% !important;
  max-width: 100% !important;
  height: 100vh !important;
  min-height: 100vh !important;
  bottom: auto;
  right: 0;
  top: 0;
  border-radius: 0;

  display: flex;
  justify-content: center;
  align-items: center;
}

#chatBox.fullwidth #chat-widget {
  min-height: 100vh !important;
  background: rgba(0, 0, 0, 0.85);

  display: flex;
  justify-content: center;
  align-items: center;
}

#chatBox.fullwidth #transcriptContainer {
  background: #ffffff;
  border-radius: 0 16px 16px 0;
  width: 40%;
}

#chatBox.fullwidth .chatBox-action {
  background-image: url("./fullscreen.png");
}

.horizontal-boxes {
  display: flex;
  max-width: 1024px;
  width: 100%;
  background: transparent;
  border-radius: 16px;
  transition: width 0.4s ease, flex 0.4s ease;
}

#chatBox.fullwidth .avatarContainer .textInput-wrapper,
#chatBox.fullwidth .avatarContainer .listeningIcon {
  width: 100px;
}

#chat-widget {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 225px;
  border: 0;
  box-shadow: unset;
  background: transparent;
  border-radius: 10px;
  justify-content: center;
}
#chat-widget.horizontal-boxes {
  display: flex;
  width: 100%;
}

#chatBox-action {
  position: absolute;
  bottom: 6px;
  right: 6px;
  z-index: 9999;
  color: #ffffff;
  font-size: 16px;
  line-height: 3;
}

#chatBox-close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 90;
  color: #ffffff;
  font-size: 16px;
}

.fullwidth #chatBox-action .bi-fullscreen {
  display: none;
}

.fullwidth #chatBox-action .bi-arrows-angle-contract {
  display: block !important;
}

#chatBox-heading {
  border-radius: 10px 10px 0 0;
  font-size: 24px;
  position: absolute;
  text-align: center;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  background: #000000 !important;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0) 100%
  ) !important;
  padding: 10px 10px;
  color: #fff;
  box-sizing: border-box;
}

#chatBox.fullwidth .avatarContainer {
  margin: 50px auto 0;
  border-radius: 16px;
  width: 100%;
  margin-top: 0;
}

#chatBox .avatarContainer {
  border-radius: 10px;
  border: 0;
}

.avatarContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  z-index: 99;
  border: 2px solid transparent;
}

/* #audioVisualizerContainer {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
} */

#audio-visualizer {
  position: relative;
  width: 100%;
  height: 309px;
  padding: 25px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 15px;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.fullscreen-mode #avatarContainer {
  height: 70vh;
}

.fullscreen-mode #audio-visualizer {
  height: 70vh;
}

#audio-visualizer .overlay {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color: rgba(0, 0, 0, 0.5); */
}

.avatar-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
}

.avatarImg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  object-fit: cover;
}

/* Ripple effect */
.ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(0, 123, 255, 0.3);
  transform: translate(-50%, -50%);
  animation: ripple-animation 2s infinite;
  z-index: 1;
}

@keyframes ripple-animation {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }
  70% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

.avatarContainer #avatarVideo {
  width: 100%;
}

.avatarContainer .actionContainer {
  position: absolute;
  bottom: 6px;
  display: none;
  flex-direction: row;
  gap: 7px;
  width: 100%;
  justify-content: start;
  align-items: center;
  z-index: 999;
}

.fullwidth .avatarContainer .actionContainer {
  left: 0;
  justify-content: center;
}

#switchInteractionMode {
  background: none !important;
}

.avatarContainer.streamReady .actionContainer {
  display: flex;
}

.avatarContainer button:focus {
  outline: none;
  background-color: rgba(0, 0, 0, 0.5);
}

.avatarContainer #interruptTask {
  display: none;
  background-color: #1d4ed8;
  color: white;
}

.avatarContainer #interruptTask:hover {
  background-color: #1e40af;
}

.avatarContainer #interruptTask:focus-visible {
  background-color: #1d4ed8;
}

.avatarContainer #endSession {
  background-color: #ba432b;
  color: white;
  font-size: 12px;
  line-height: 12px;
}

.avatarContainer #endSession:hover {
  background-color: #b02a10;
}

.avatarContainer #endSession:focus-visible {
  background-color: #1d4ed8;
}

.avatarContainer button.dark {
  background-color: #2563eb;
}

.avatarContainer button.dark:hover {
  background-color: #1d4ed8;
}

.avatarContainer button.dark:focus-visible {
  background-color: #1d4ed8;
}

.avatarContainer img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: -1;
}

.language-switcher img {
  position: relative;
}

.avatarContainer .welcomeContainer {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.avatarContainer .chatBtnContainer {
  max-width: 19.75rem;
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.avatarContainer #startSession {
  width: 7.25rem;
  background-color: rgba(29, 78, 216, 0.5);
  color: white;
  font-size: 14px;
  line-height: 14px;
  height: 36px;
}

.avatarContainer #startSession:hover {
  background-color: #1e40af;
}

.avatarContainer #startSession:focus-visible {
  background-color: #1d4ed8;
}

.avatarContainer #startSession.dark {
  background-color: #2563eb;
}

.avatarContainer #startSession.dark:hover {
  background-color: #1d4ed8;
}

.avatarContainer #startSession.dark:focus-visible {
  background-color: #1d4ed8;
}

.avatarContainer .loadingText {
  display: none;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px 30px;
  border-radius: 50px;
  font-size: 16px;
}

.avatarContainer .loading-icon {
  display: none;
  color: teal;
  font-size: 8rem;
  animation: animate 2s infinite;
}

.avaterContainer.loading .loading-icon {
  display: block;
}

.avaterContainer.loading .chatBtnContainer {
  display: none !important;
}

.avaterContainer.streamReady .actionContainer {
  display: flex !important;
}

.avaterContainer.streamReady .welcomeContainer {
  display: none !important;
}

.avatarContainer .switchMode {
  width: 60px;
  height: 51px;
  cursor: pointer;
  text-align: center;
  color: #fff;
  font-size: 40px;
  line-height: 40px;
  background: none;
}
.avatarContainer .switchMode:hover {
  box-shadow: none !important;
}

.avatarContainer .textInput-wrapper,
.avatarContainer .listeningIcon {
  width: 100px;
  height: 36px;
  background-position: center;
  background-size: auto 60px;
  background-repeat: no-repeat;
  border-radius: 100px;
  position: relative;
}

.avatarContainer .textInput-wrapper {
  position: relative;
  display: none;
  background-color: rgba(255, 255, 255, 0.9);
}

.avatarContainer .textInput-wrapper .textInput {
  width: 100%;
  height: 100%;
  border-radius: 100px;
  background: transparent;
  padding: 5px 45px 5px 15px;
  border: 0;
  color: #111111;
}

.avatarContainer .textInput-wrapper .textInput::placeholder {
  color: rgba(0, 0, 0, 0.5) !important;
}

.text_mode .avatarContainer .textInput-wrapper {
  display: flex;
}

.avatarContainer .textInput-wrapper .speakButton {
  width: 40px;
  height: 40px;
  background-position: center;
  background-size: auto 40px;
  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 1);
  border-radius: 50px;
  cursor: pointer;
  position: absolute;
  right: 0;
  display: inline;
  text-align: center;
  font-size: 30px;
  color: #ffffff;
  line-height: 40px;
}

.text_mode .avatarContainer .listeningIcon {
  display: none;
}

.avatarContainer .listeningIcon {
  background-image: url(./streaming-listening-dark.gif);
}

#chatBox img.emoji {
  height: 24px !important;
  width: 24px !important;
  margin: 7px !important;
  z-index: 999;
}

button.exportTranscript {
  margin: 10px 0;
  padding: 7px 10px;
}

#transcriptContainer .transcript-heading {
  display: flex;
  font-size: 18px;
  font-weight: 700;
  color: #000000;
  padding: 10px;
  margin: 0;
  border-bottom: 1px solid #00000020;
  justify-content: space-between;
  align-items: center;
}

#transcriptContainer .exportTranscript {
  background: #00000015;
  color: #000;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  padding: 4px 8px;
  margin: 0;
  font-size: 12px;
  cursor: pointer;
}

#transcriptContainer p {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  position: relative;
}

p.avatar.transcript {
  text-align: left;
  padding-left: 40px !important;
}

p.user.transcript {
  text-align: right;
  padding-right: 40px !important;
}

p.transcript::before,
p.transcript::after {
  position: absolute;
  top: 7px;
}

p.avatar.transcript::before {
  content: "";
  width: 20px;
  height: 20px;
  background-image: url(./avatar.png);
  background-size: cover;
  left: 10px;
}

p.user.transcript::after {
  content: "";
  width: 20px;
  height: 20px;
  background-image: url(./user.png);
  background-size: cover;
  right: 10px;
}

.text_mode .mute-button {
  display: none !important;
}

.voice_mode .mute-button {
  display: inline !important;
}

.mute-button {
  position: absolute;
  top: 110px;
  right: 16px;
  background-color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: none;
}

.mute-button:hover {
  background: #ffffff !important;
}

.mute-button .icon {
  width: 36px;
  height: 36px;
  pointer-events: none;
  color: #000000 !important;
}

.view-transcript-button {
  position: absolute;
  bottom: 6px;
  right: 62px;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  color: #ffffff;
  font-size: 14px;
  width: 50px;
  height: 50px;
}

/* .view-transcript-button.active {
  background-color: #e63946;
} */

.streamingCountdown-container {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(000, 000, 000, 0.5);
  border: none;
  border-radius: 12px;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none;
  z-index: 1000;
  color: #fff;
  text-align: center;
  font-size: 18px;
  letter-spacing: 1px;
  padding: 3px 12px;
  font-weight: bold;
}

.streamingCountdown-container.session-ended {
  color: #ffffff !important;
  background: #ff00004d !important;
}

.language-switcher {
  position: absolute;
  bottom: 6px;
  right: 118px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  font-size: 14px;
  color: #ffffff;
}
.language-switcher-sc {
  width: 36px !important;
  height: 36px !important;
}

.language-switcher .lang-icon {
  cursor: pointer;
  user-select: none;
  margin: 0px !important;
  display: flex;
  font-size: inherit;
  align-items: center;
  justify-content: center;
}

#chatBox .language-switcher .lang-icon img.emoji {
  margin: 0 !important;
}

#chatBox #selectedLanguage img {
  vertical-align: middle !important;
}

.language-switcher .dropdown {
  display: none;
  position: absolute;
  bottom: 0px;
  right: 50px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  min-width: 100px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.language-switcher .dropdown a {
  padding: 0px;
  text-decoration: none;
  color: black;
  font-size: 14px;
  display: flex;
  justify-content: start;
  align-items: center;
}

.language-switcher .dropdown img.emoji {
  height: 20px !important;
  width: 20px !important;
  margin: 0px 5px 0px 0px !important;
}

.language-switcher .dropdown a:hover {
  background-color: #b4b4b4;
}

.overlayQuestion-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.overlayQuestion-container.show {
  display: flex;
}

.overlayQuestion-content {
  background-color: rgba(255, 255, 255, 0.9);
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.3s ease-out;
}

.overlayQuestion-header {
  background-color: rgba(255, 255, 255, 0.4);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
}

.overlayQuestion-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.closeOverlayQuestion {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #555;
  transition: color 0.2s ease;
}

.closeOverlayQuestion:hover {
  color: #e00;
}

.overlayQuestion-body {
  padding: 20px;
  font-size: 14px;
  color: #333;
}

.overlayQuestion-body .radio-option {
  display: flex;
  gap: 10px;
}

.overlayQuestion-body .radio-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.overlayQuestion-action {
  padding: 10px;
  text-align: right;
}

.overlayQuestion-action .submit-button {
  background-color: #4caf50;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.overlayQuestion-action .submit-button:hover {
  background-color: #45a049;
}

.avatarSessionStarted .language-switcher {
  display: none;
}

.avatarSessionStarted .view-transcript-button,
.avatarSessionStarted .mute-button {
  display: inline;
}

.avatarSessionStarted .mute-button {
  top: 60px;
  font-size: 22px;
}

div#streamingStatus {
  position: relative;
  font-size: 13px;
  height: 100px;
  overflow-y: scroll;
}

#voiceTranscript {
  max-height: 252px;
  overflow-y: scroll;
  margin: 10px;
}

#voiceTranscript .left {
  text-align: left;
  padding: 10px !important;
  margin: 0 0 10px !important;
  border-radius: 0 10px 10px !important;
  color: #111111 !important;
  background: #ffffff !important;
  max-width: 80%;
  border: 1px solid #dddddd;
}
#voiceTranscript .right {
  border-radius: 10px !important;
  background: #f3f3f3 !important;
  border: 0;
  width: auto;
  display: flex;
  margin-left: auto !important;
  margin-right: 0 !important;
  align-self: end;
  max-width: 80%;
  justify-self: end;
  margin-bottom: 10px !important;
  padding: 10px;
}
#transcriptContainer p {
  margin-bottom: 0;
}

.input-container input:not([type="checkbox"], [type="radio"]) {
  height: fit-content;
  padding: 4px !important;
  font-size: 16px;
  margin-right: 5px;
  margin-bottom: 0;
  border: none;
  width: 100%;
}
.input-container [type="button"] {
  padding: 4px;
  font-size: 14px;
  border-radius: 8px;
  margin-bottom: 0;
}
.input-container i {
  color: white;
}
.input-container {
  padding: 10px;
  align-items: center;
  border-top: 1px solid #00000020;
  margin-top: 10px;
}
.bi-arrow-right-short::before {
  padding: 8px;
  border-radius: 50px;
  background: #000;
}
.input-container button {
  background: none;
  padding: 0;
  border: none;
}
.actionContainer {
  position: absolute;
  bottom: 0;
  z-index: 99999;
}
.avatarContainer .actionContainerSC {
  width: auto !important;
}
.transcript-chat-box {
  background: white;
  width: 100%;
  border-radius: 0 0 16px 0;
}

.fullscreen-mode {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
}
.fullscreen-mode #voiceTranscript {
  max-height: 340px;
}
i.bi.bi-fullscreen {
  display: inline-block;
  width: 100%;
}

.input-container input:focus-visible {
  border: none;
}

#userVideo {
  width: 25%;
  border-radius: 12px;
  position: absolute;
  left: 6px;
  bottom: 6px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6),
    0 0 10px rgba(255, 255, 255, 0.3) inset;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#userVideo:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7),
    0 0 15px rgba(255, 255, 255, 0.4) inset;
}

#userVideo::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border-radius: 14px;
  box-shadow: 0 0 15px rgba(0, 200, 255, 0.6);
  pointer-events: none;
}

.desktop-icon {
  display: inline-block;
}

.mobile-icon {
  display: none;
}

.show-dropdown {
  display: block !important;
}

.hide-dropdown {
  display: none !important;
}

/* span#selectedLanguage {
  width: 50px;
} */

.videoContaine {
  display: none;
}

#chatBox.fullwidth {
  margin-top: -20px;
}

.hide {
  display: none !important;
}

/* disclaimer-styling */

.error {
  color: #b00020;
  font-size: 0.9rem;
}

.error.visible {
  display: block;
}
.valid {
  border-color: #2a9d8f;
}
.invalid {
  border-color: #e63946;
}
select {
  padding: 8px;
  font-size: 1rem;
}
button {
  padding: 8px 12px;
  font-size: 1rem;
  cursor: pointer;
}

#audioVisualizerContainer {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  /* background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); */
  position: relative;
}

/* #audioVisualizerCanvas {
  width: 90%;
  height: 150px;
}

#audioVisualizerCanvas {
  width: 80%;
  height: 200px;
  max-width: 600px;
} */

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.modal-content {
  background: white;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  padding: 24px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.modal.hide {
  display: none;
}

#userForm {
  max-width: 400px;
  margin: 50px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  padding: 24px 28px;
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease;
}

#userForm.hide {
  display: none;
}

/* --- Form Fields --- */
label {
  text-align: start;
  display: block;
  margin-top: 16px;
  font-weight: 600;
  color: #333;
}

input,
select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: 0.2s;
}

input:focus,
select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* --- Country code + Mobile field alignment --- */
#userForm div:has(#countryCode) {
  display: flex;
  gap: 8px;
}

#countryCode {
  width: 30%;
  flex-shrink: 0;
}

#mobile {
  width: 70%;
}

/* --- Error messages --- */
.error {
  color: #e11d48;
  font-size: 13px;
  margin-top: 4px;
  text-align: start;
}

.hide {
  display: none;
}

/* --- Buttons --- */
#buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}

#buttons button {
  width: 48%;
  padding: 10px 0;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: "background" 0.3s ease, transform 0.1s ease;
}

#skipBtn {
  background-color: #f3f4f6;
  color: #333;
}

#skipBtn:hover {
  background-color: #e5e7eb;
}

#nextBtn {
  background-color: #3b82f6;
  color: white;
}

#nextBtn:hover {
  background-color: #2563eb;
}

#buttons button:active {
  transform: scale(0.98);
}

/* Video Container CSS */

#video-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.85);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  width: 80%;
  max-width: 800px;
}

/* Video header */
.video-header {
  width: 100%;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 6px;
}

/* Video wrapper */
.video-wrapper {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

/* Video styling */
.protected-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

/* Optional: fade-in animation */
#video-container.show {
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -52%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Start Button Container */
#start-btn-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.85);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  width: 80%;
  max-width: 400px;
  text-align: center;
}

/* Header text */
.start-header p {
  color: #fff;
  margin: 4px 0;
  font-size: 16px;
}

/* Start button */
#start-call {
  margin-top: 15px;
  padding: 10px 25px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background-color: #4caf50; /* Green button */
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#start-call:hover {
  background-color: #45a049;
  transform: scale(1.05);
}

/* Optional fade-in */
#start-btn-container.show {
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -52%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Disclaimer */
#disclaimer-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.9);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 20px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  color: #fff;
  font-family: Arial, sans-serif;
}

/* Header */
.disclaimer-header h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #f2f2f2;
}

.disclaimer-header p {
  font-size: 15px;
  line-height: 1.5;
  color: #ccc;
  margin-bottom: 20px;
}

/* Modal actions */
.modal-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  width: 100%;
}

/* Buttons */
button.contrast {
  background-color: #4caf50;
  color: #fff;
  padding: 10px 25px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

button.contrast:hover {
  background-color: #45a049;
  transform: scale(1.05);
}

button.secondary {
  background-color: #555;
  color: #fff;
  padding: 10px 25px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

button.secondary:hover {
  background-color: #444;
  transform: scale(1.05);
}

/* Optional fade-in animation */
#disclaimer-content.show {
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -52%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* End Button Design */
#transcript-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.9);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 20px;
  width: 90%;
  max-width: 480px;
  text-align: center;
  color: #fff;
  font-family: "Inter", Arial, sans-serif;
}

/* Header */
.transcript-header h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #f2f2f2;
}

.transcript-header p {
  font-size: 15px;
  line-height: 1.6;
  color: #ccc;
  margin-bottom: 20px;
}

/* Modal actions */
.modal-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  width: 100%;
}

/* Buttons */
button.contrast {
  background-color: #4caf50;
  color: #fff;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

button.contrast:hover {
  background-color: #45a049;
  transform: scale(1.05);
}

button.secondary {
  background-color: #555;
  color: #fff;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

button.secondary:hover {
  background-color: #444;
  transform: scale(1.05);
}

/* Optional fade-in animation */
#transcript-modal.show {
  animation: fadeIn 0.3s ease forwards;
}

#background-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}

.privacyModal {
  margin-top: 0 !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -52%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 440px) {
  #chat-icon {
    bottom: 100px;
  }
  #chatBox {
    bottom: 105px;
    width: 370px;
    right: 10px;
  }
  #chatBox.fullwidth #chat-widget {
    position: relative;
    bottom: auto;
  }
  #chatBox.fullwidth #transcriptContainer {
    width: 100%;
  }
  .horizontal-boxes {
    width: 100% !important;
  }
  .avatarContainer .welcomeContainer {
    gap: 0;
  }
  .avatarContainer #startSession {
    height: 32px;
    font-size: 14px;
    width: 8rem;
  }
  .input-container {
    padding: 8px 8px 0 8px;
  }
  .actionContainer {
    bottom: 0;
  }
}

@media (min-width: 441px) and (max-width: 767px) {
  #chat-icon {
    bottom: 100px;
  }
  #chatBox {
    bottom: 105px;
    width: 380px;
    right: 10px;
    min-height: 215px;
  }
  #chat-widget {
    min-height: 215px;
  }
  #chatBox.fullwidth #chat-widget {
    position: relative;
    bottom: auto;
  }
  #chatBox.fullwidth #transcriptContainer {
    width: 100%;
  }
  #chatBox.fullwidth .avatarContainer .listeningIcon {
    display: none;
  }
  #chatBox-action {
    display: none;
  }
}

@media (min-width: 441px) and (max-width: 1023px) {
  #chatBox.fullwidth #transcriptContainer {
    width: 100%;
  }
  #chatBox {
    bottom: 105px;
    width: 380px !important;
    right: 10px;
    min-height: 215px;
  }
  #transcriptContainer {
    width: 100%;
  }
  .fullscreen-mode {
    width: 90%;
  }
  .language-switcher {
    width: 32px;
    height: 32px;
    right: 44px;
  }
}

@media (max-width: 1023px) {
  .desktop-icon {
    display: none;
  }
  .mobile-icon {
    display: inline-block;
  }
  #chatBox.fullwidth .avatarContainer .listeningIcon {
    display: none;
  }
  #chatBox-action {
    display: none;
  }
  #chat-icon img {
    cursor: pointer;
  }
  .avatarContainer .switchMode {
    font-size: 24px;
    width: 33px;
    height: 33px;
  }
  .avatarContainer button {
    width: 32px;
    height: 32px;
    padding: 2px 6px;
    font-size: 12px;
    line-height: 12px;
    right: 20px;
    bottom: 40px;
  }
  #chatBox-close {
    width: 32px;
    height: 32px;
    font-size: 14px;
    line-height: 2.3;
    top: 32px !important;
    right: 20px !important;
  }
  #chatBox-action {
    width: 32px;
    height: 32px;
    font-size: 12px;
    line-height: 2.65;
  }
  .view-transcript-button {
    right: 6px;
    bottom: 4px;
  }
  .avatarContainer .actionContainer {
    bottom: 36px;
    gap: 6px;
  }
  #chatBox.fullwidth #transcriptContainer {
    border-radius: 0;
  }
  .transcript-chat-box {
    border-radius: 0 0 16px 16px;
  }
  .language-switcher {
    width: 32px;
    height: 32px;
    right: 68px;
    bottom: 40px;
  }
  .language-switcher .dropdown a {
    font-size: 10px;
  }
  .horizontal-boxes {
    display: block;
    animation: slideDown 0.4s ease;
    width: inherit;
    background: #fff;
    height: 100vh;
    display: flex;
    flex-direction: column;
  }
  #audio-visualizer {
    height: 100%;
  }
  #transcriptContainer {
    width: 100%;
    animation: slideDown 0.4s ease;
  }
  #chatBox.fullwidth {
    margin-top: -20px;
  }
  .streamingCountdown-container {
    top: 34px;
    left: 20px;
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 6px;
  }
  .avatarContainer #micToggler {
    font-size: 16px;
    line-height: 2.5;
    width: 40px;
    height: 40px;
  }
  .avatarContainer #cameraToggler {
    font-size: 16px;
    line-height: 2.5;
    width: 40px;
    height: 40px;
  }
  .avatarContainer #endSession {
    font-size: 16px;
    line-height: 2.5;
    width: 40px;
    height: 40px;
  }
  .avatarContainer {
    height: 100vh;
    transition: height 0.3s ease;
  }
  #transcriptContainer {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
  }
  .horizontal-boxes.transcript-open .avatarContainer {
    height: 60vh;
  }
  .horizontal-boxes.transcript-open #transcriptContainer {
    height: 40vh;
  }
  .avatarContainer #avatarVideo {
    height: 100vh !important;
    width: auto;
  }
  #chatBox-heading {
    padding: 28px 8px 8px 8px;
    font-size: 22px;
    line-height: 40px;
  }
  #userVideo {
    width: 22%;
    bottom: 40px;
  }
  #voiceTranscript {
    max-height: 85%;
    height: 100%;
    margin: 8px;
  }
}

@media (min-width: 1024px) {
  .horizontal-boxes.fullscreen-mode #voiceTranscript,
  #chatBox.fullwidth #voiceTranscript {
    max-height: 340px !important;
  }
}
