/* Base styles and font imports */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");
/* Namespace: ai-agent-form */
.yaraa-ai-container .chat-button.video-loaded {
  background-image: none;
}

.yaraa-ai-container #avatar-container img {
  border-radius: 50%;
  object-fit: cover;
}

.yaraa-ai-container #avatar-logo[src=""],
#avatar-logo:not([src]) {
  display: none;
}

.yaraa-ai-container .chat-button img[src=""],
.yaraa-ai-container .chat-button img:not([src]) {
  display: none !important;
}

.yaraa-ai-container .chat-preview-bubble {
  position: fixed;
  bottom: 195px;
  right: 30px;
  background: #ffffff;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 290px;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 9999;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

/* Smooth appear */
.yaraa-ai-container .chat-preview-bubble.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
  display: flex !important;
}

/* Avatar wrapper */
.yaraa-ai-container .chat-preview-bubble .bubble-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 2px #857979;
  overflow: hidden;
}

/* Avatar image */
.yaraa-ai-container .chat-preview-bubble .bubble-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  display: block;
}

/* Text */
.yaraa-ai-container .chat-preview-bubble .bubble-text {
  margin: 0;
  color: #222;
  line-height: 1.4;
  font-weight: 500;
  flex: 1;
}

/* Close icon — now floating outside top-right */
.yaraa-ai-container .close-bubble {
  position: absolute;
  top: 3px; /* Move slightly above the bubble */
  right: 4px; /* Move slightly to the right */
  width: 22px;
  height: 22px;
  /* background: #ffffff; */
  border-radius: 50%;
  /* box-shadow: 0 2px 6px rgba(0,0,0,0.1); */
  font-size: 22px;
  color: black;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10000;
}

.yaraa-ai-container .close-bubble:hover {
  background: #f5f5f5;
  color: #333;
}

/* Subtle arrow under the bubble */
.yaraa-ai-container .chat-preview-bubble::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 65px;
  width: 12px;
  height: 12px;
  background: #fff;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.08);
  transform: rotate(45deg);
  border-radius: 2px;
  z-index: -1;
}
.yaraa-ai-container .ai-agent-form-container {
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}
#universal-audio-control.muted svg {
  opacity: 0.5;
  filter: grayscale(100%);
}

.yaraa-ai-container #chat-button.cursor-disabled {
  cursor: not-allowed !important;
}
.yaraa-ai-container .ai-agent-form-group input::placeholder {
  color: rgb(73, 73, 73) !important;
  opacity: 1; /* ensures placeholder is fully visible */
  font-style: normal; /* optional, if you want normal style instead of italic */
}
.yaraa-ai-container .ai-agent-form-title {
  margin: 0 0 15px;
  font-size: 16px;
  font-weight: 600;
  color: #333 !important;
  text-align: center;
  text-transform: initial !important;
}

.yaraa-ai-container .ai-agent-form-group {
  margin-bottom: 10px;
}

.yaraa-ai-container .ai-agent-form-group input {
  width: 100% !important;
  padding: 10px !important;
  border: 1px solid #ccc !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  box-sizing: border-box;
  float: none;
  color: black;
}

.yaraa-ai-container .ai-agent-form-terms {
  margin-bottom: 15px;
  font-size: 12px;
  text-align: left;
  color: #555;
}

.yaraa-ai-container .ai-agent-form-terms input[type="checkbox"] {
  margin-right: 5px !important;
}

.yaraa-ai-container .ai-agent-form-terms a {
  color: #0d6efd !important;
  text-decoration: none !important;
}

.yaraa-ai-container .ai-agent-form-btn {
  width: 100% !important;
  padding: 12px !important;
  background: #5383d5 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  text-align: center !important;
}

.yaraa-ai-container * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.yaraa-ai-container .yaraa-disclaimer {
  text-align: center;
}
.yaraa-ai-container .yaraa-disclaimer p {
  font-size: 12px;
  color: #555;
  line-height: 1.4;
  margin-top: 8px;
}
/* Mobile responsiveness */
/* Center chat UI on small screens */
@media (max-width: 480px) {
  .yaraa-ai-container .chat-container {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    margin: 0 auto !important;
    width: 95% !important; /* keep responsive width */
  }
}

@media screen and (max-width: 800px) {
  .yaraa-ai-container .chat-container {
    width: 95% !important; /* take almost full width */
    height: 80% !important; /* reduce height for mobile */
    right: 2.5% !important; /* center horizontally */
    bottom: 10px !important; /* small gap at bottom */
    border-radius: 16px !important;
    margin-right: 20px;
  }

  /* Make form inside scale */
  .yaraa-ai-container #text-form {
    width: 100% !important;
    margin: 0 !important;
  }
}
@media screen and (max-width: 480px) {
  .yaraa-ai-container .dropdown.collapsed {
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
}

@media screen and (max-width: 480px) {
  .yaraa-ai-container .chat_history {
    border-radius: 0 !important;
    /* margin: 0 !important;   optional: remove side gaps */
  }
}
/* Mobile view */
@media (max-width: 600px) {
  .yaraa-ai-container .yaraa-disclaimer p {
    font-size: 10px; /* smaller text */
    padding: 0 6px;
    margin-top: 10px; /* spacing on sides */
  }
}
.yaraa-ai-container #mic-control:hover {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
  outline: none !important;
  cursor: default !important;
}

/* Updated Audio control button styles */
body .yaraa-ai-container #audio-control-container #universal-audio-control {
  background: transparent !important;
  border: none !important;
  border-radius: 50% !important;
  padding: 5px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
body
  .yaraa-ai-container
  #audio-control-container
  #universal-audio-control
  .btn-icon {
  margin-top: -40px;
  z-index: 20;
  background: rgb(252, 252, 252);
  border-radius: 15px;
  padding: 2px;
  width: 20px !important;
  height: 20px !important;
  stroke: #2a3663 !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  fill: none !important;
  scale: 1.4;
  opacity: 1;
}
@media (max-width: 768px) {
  body
    .yaraa-ai-container
    #audio-control-container
    #universal-audio-control
    .btn-icon {
    width: 22px !important;
    height: 22px !important;
    padding: 1px;
    scale: 1.2;
    margin-top: 20px;
    margin-left: -20px;
  }
}

@media (max-width: 480px) {
  body
    .yaraa-ai-container
    #audio-control-container
    #universal-audio-control
    .btn-icon {
    width: 20px !important;
    height: 20px !important;
    padding: 1px;
    scale: 1.1;
    margin-top: 125px;
    margin-left: -147px;
  }
}
@media (max-width: 380px) {
  body
    .yaraa-ai-container
    #audio-control-container
    #universal-audio-control
    .btn-icon {
    width: 14px !important;
    height: 14px !important;
    padding: 1px;
    scale: 1.1;
    margin-top: 67px;
    margin-left: -76px;
  }
}
@media (max-width: 367px) {
  body
    .yaraa-ai-container
    #audio-control-container
    #universal-audio-control
    .btn-icon {
    width: 14px !important;
    height: 14px !important;
    padding: 1px;
    scale: 1.1;
    margin-top: 67px;
    margin-left: -70px;
  }
}
@media (max-width: 355px) {
  body
    .yaraa-ai-container
    #audio-control-container
    #universal-audio-control
    .btn-icon {
    width: 14px !important;
    height: 14px !important;
    padding: 1px;
    scale: 1.1;
    margin-top: 67px;
    margin-left: -86px;
  }
}
body
  .yaraa-ai-container
  #audio-control-container
  #universal-audio-control
  .sound-wave {
  opacity: 1 !important;
}

body
  .yaraa-ai-container
  #audio-control-container
  #universal-audio-control
  .mute-line {
  stroke: #292929 !important;
  stroke-width: 2 !important;
  display: none !important;
}

body
  .yaraa-ai-container
  #audio-control-container
  #universal-audio-control.muted
  .mute-line {
  display: block !important;
}
video::-webkit-media-controls {
  display: none !important;
}

video::-webkit-media-controls-enclosure {
  display: none !important;
}

video::-webkit-media-controls-panel {
  display: none !important;
}

.yaraa-ai-container .stop-command-hint {
  /* position: fixed; */
  /* bottom: 70px; */
  right: 30px;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  padding: 8px 15px;
  border-radius: 20px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  transition: opacity 0.5s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
/* end-chat-btn container */
/* End Chat Button Styles */
.yaraa-ai-container .end-chat-container {
  display: flex;
  justify-content: center;
}
.yaraa-ai-container #confirm-end-chat:focus {
  border: 1px solid black;
}
/* #end-chat{
    opacity: 0.5;
    cursor: not-allowed;
} */

/* #end-chat-btn {
    display: flex;
    position: absolute;
    bottom: 16vh;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #f8f8f8;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: none ;
    transition: all 0.2s ease;
}

#end-chat-btn:hover {
    background-color: #f0f0f0;
    color: #333;
} */
.yaraa-ai-container #end-chat {
  background: linear-gradient(135deg, #2a3663 0%, #1a2544 100%);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(42, 54, 99, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.yaraa-ai-container .confirmation-content {
  padding: 20px;
}

.yaraa-ai-container #end-chat:hover {
  background: linear-gradient(135deg, #1a2544 0%, #131b32 100%);
  transform: translateY(-1px);
}

/* #end-chat-btn .btn-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
} */

/* End Chat Button Styles
.end-chat-btn {
    margin-left: 8px;
    background-color: #f44336;
    color: white;
}

.end-chat-btn:hover {
    background-color: #d32f2f;
}

.end-chat-btn .btn-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
} */

/* Confirmation Popup Styles */
.yaraa-ai-container .confirmation-popup-chat {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(255, 255, 255, 0.95) !important;
  border: none !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  z-index: 1000 !important;
  margin: 0 !important;
  padding: 0 !important;
  animation: fadeIn 0.3s ease-out !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.yaraa-ai-container .confirmation-content {
  background-color: #d1e7ffe3;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  max-width: 80%;
}

.yaraa-ai-container .confirmation-content p {
  margin-bottom: 20px;
  font-size: 18px;
  color: #333;
  font-weight: 500;
}

.yaraa-ai-container .confirmation-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.yaraa-ai-container .confirmation-popup-chat input[type="email"] {
  width: 100%;
  padding: 10px;
  margin: 15px 0;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  transition: border-color 0.3s ease;
}

.yaraa-ai-container .confirmation-popup-chat input[type="email"]:focus {
  outline: none;
  border-color: #5181d4;
}

.yaraa-ai-container .confirmation-popup-chat input[type="email"].error {
  border-color: #ff4444;
}

/* Update confirmation buttons styling */
.yaraa-ai-container .confirmation-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.yaraa-ai-container .confirm-btn,
.cancel-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
}

.yaraa-ai-container .confirm-btn {
  background: linear-gradient(135deg, #2a3663 0%, #1a2544 100%);
  color: white;
}

.yaraa-ai-container .confirm-btn:hover {
  background: linear-gradient(135deg, #1a2544 0%, #131b32 100%);
  transform: translateY(-1px);
}

.yaraa-ai-container .cancel-btn {
  background: #f44336;
  color: white;
}

.yaraa-ai-container .cancel-btn:hover {
  background: #d32f2f;
  transform: translateY(-1px);
}

/* Confirmation Popup Styles */
.yaraa-ai-container .confirmation-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  padding: 20px;
  z-index: 1100;
  text-align: center;
  width: 300px;
}

.yaraa-ai-container .confirmation-popup p {
  margin-bottom: 20px;
  font-size: 16px;
  color: #333;
}

.yaraa-ai-container .confirmation-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.yaraa-ai-container .confirm-btn,
.cancel-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.yaraa-ai-container .confirm-btn {
  background-color: #5684d1;
  color: white;
}

.yaraa-ai-container .confirm-btn:hover {
  background-color: #3270b3;
}

.yaraa-ai-container .cancel-btn {
  background-color: #e0e0e0;
  color: #333;
}

.yaraa-ai-container .cancel-btn:hover {
  background-color: #bdbdbd;
}

.yaraa-ai-container .popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1050;
}

/* Typography classes */
.yaraa-ai-container .chat-container,
.chat-button,
.chat-bubble,
.welcome-message,
.property-card,
textarea,
button {
  font-family: "Poppins", sans-serif;
}

/* Welcome message styles */
.yaraa-ai-container .chat-bubble.bot.welcome-message {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 15px;
  opacity: 0;
  animation: fadeInFromRight 0.5s forwards;
}

/* Chat bubble animations */
@keyframes fadeInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInFromRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Chat button styles */
.yaraa-ai-container .chat-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 100px;
  height: 100px;
  border: 3px solid #5c6ac4;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 10000;
  transition: transform 0.3s ease;
  overflow: hidden;
}

/* Chat container styles */
.yaraa-ai-container .chat-container {
  display: none;
  position: fixed;
  right: 30px;
  width: 650px;
  height: 550px;
  background: #fff;
  border-radius: 24px;
  z-index: 10000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  bottom: 30px;
}

.yaraa-ai-container .chat-container.active {
  display: block;
  animation: slideIn 0.3s ease-out;
}
.yaraa-ai-container #close-btn23 {
  position: fixed;
  /* bottom: 570px; 
    right: 30px; */
  bottom: 562px; /* Position from bottom to align with top of chat */
  right: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 3px;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 1001; /* Higher than chat-container */
  display: none;
}

.yaraa-ai-container #close-btn23:hover svg path {
  stroke: #000000;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Close button styles */
/* Show close button when chat is active */
.yaraa-ai-container .chat-container.active ~ #close-btn23 {
  display: block; /* Force display when chat is active */
}

/* Title styles */
.yaraa-ai-container .top-title {
  text-align: center;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  padding-top: 20px;
}

.yaraa-ai-container .top-title img {
  width: 75%;
  max-height: 150px;
}

.yaraa-ai-container #avatar-logo {
  width: 150px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto;
}
@media screen and (max-width: 480px) {
  .yaraa-ai-container #audio-control-container {
    padding: 0 !important;
  }
}
@media (max-width: 768px) {
  .yaraa-ai-container #avatar-logo {
    height: 50px;
    width: 90px;
    margin-right: 20px;
  }
}
@media (max-width: 480px) {
  .yaraa-ai-container #avatar-logo {
    height: 50px;
    width: 110px;
    margin-right: 32px;
  }
}
@media (max-width: 355px) {
  .yaraa-ai-container #avatar-logo {
    height: 50px;
    width: 85px;
    margin-right: 18px;
  }
}

/* .top-title hr {
    margin: 0;
    padding: 0;
    width: 60%;
    border: 3px solid #e2e2e2;
} */

/* Avatar styles */
.yaraa-ai-container .avatar-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  align-items: center;
  background: linear-gradient(to bottom, #5181d4, #b8d4f0);
}

.yaraa-ai-container .avatar-container {
  width: 185px;
  height: 185px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  position: relative;
  z-index: 1;
  right: 0;
  box-shadow: 20px 10px 100px #2a366379, 0 0 50px #2a366345,
    inset 0 2px 10px rgba(255, 255, 255, 0.5);
}
.yaraa-ai-container #avatar-avtar_name-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: #303030;
}
.yaraa-ai-container #avatar-name {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  margin-right: 10px;
}
.yaraa-ai-container #avatar-name-text {
  font-size: 28px;
  font-weight: 700;
  color: black;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 0;
  text-align: center;
}
.yaraa-ai-container #avatar-designation-text {
  font-size: 14px;
  font-weight: 500;
  color: black;
  letter-spacing: 0.3px;
  margin: 0;
  text-align: center;
}

/* Layout structure */
.yaraa-ai-container .bootm {
  display: flex;
  width: 100%;
  height: 100%;
}

.yaraa-ai-container .l {
  width: 40%;
  height: 100%;
}

.yaraa-ai-container .r {
  width: 60%;
  height: 100%;
  background: linear-gradient(to bottom, #5181d4, #b8d4f0);
}
.yaraa-ai-container .stlp {
  height: 10%;
  background: transparent;
  display: flex;
  align-items: flex-end;
  padding-bottom: 2%;
  justify-content: center;
  span {
    color: #666;
    font-size: 12px;
    font-family: "Poppins", sans-serif;
  }
  a {
    color: #2a3663;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    font-family: "Poppins", sans-serif;
    transition: color 0.3s ease;
  }
}

/* Chat history styles */
.yaraa-ai-container .chat_history {
  position: relative;
  height: 78%;
  padding: 15px;
  overflow-y: auto;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #dbdbdb;
  margin: 4px;
  border-radius: 5px 20px 5px 5px;
  z-index: 0 !important;
  h3 {
    font-size: 14px;
    font-weight: 500;
  }
  ul {
    /* list-style-type: disc; */
    list-style: disc !important;
  }
}

/* Chat bubble styles */
.yaraa-ai-container .chat-bubble {
  margin: 8px 0;
  padding: 12px 16px;
  border-radius: 16px;
  max-width: 85%;
  word-wrap: break-word;
  line-height: 1.4;
  font-size: 12px;
  width: fit-content;
}

.yaraa-ai-container .chat-bubble.user {
  background: #abc8e6;
  color: rgb(0, 0, 0);
  margin-left: auto;
  border-bottom-right-radius: 4px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(181, 159, 120, 0.3);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  animation: fadeInFromLeft 0.5s forwards;
}

.yaraa-ai-container .chat-bubble.bot {
  background: transparent !important;
  color: rgb(0, 0, 0) !important;
  max-width: 100% !important;
  margin-right: auto;
  border-bottom-left-radius: 4px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* border: 1px solid rgba(42, 54, 99, 0.3); */
  border: none;
  /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
  opacity: 0;
  animation: fadeInFromRight 0.5s forwards;
}
.yaraa-ai-container .chat-bubble.bot a {
  text-decoration: underline !important;
  color: blue !important;
}
/* Input area styles */
.yaraa-ai-container .dropdown {
  background: #fff;
  border-radius: 20px;
  margin: 3px 3px;
}

.yaraa-ai-container #text-form {
  background: #fff;
  border-top: 1px solid #eef2f7;
  border: 1px solid #dbdbdb;
  margin-bottom: 7px;
  padding: 5px 5px 0px 5px;
  border-radius: 5px 5px 20px 5px;
}

/* @media (max-width: 358px) {
    #text-form {
        padding: 6px 8px 2px 8px;
        border-radius: 5px 5px 16px 5px;
        height: 115px;
        width: 327px;
        margin-left: 0px !important;
    }
} */
@media (max-width: 480px) {
  .yaraa-ai-container #text-form {
    padding: 6px 8px 2px 8px;
    border-radius: 5px 5px 16px 5px;
    /* height: 115px; */
    height: 106%;
    width: 100%;
    margin-left: 0px !important;
  }
}

/* Tablet (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .yaraa-ai-container #text-form {
    padding: 6px 8px 2px 8px;
    border-radius: 5px 5px 16px 5px;
    height: 100%;
    width: 100%; /* or any suitable width like 600px */
    margin-left: 0px !important;
  }
}
@media (max-width: 768px) {
  .yaraa-ai-container #avatar-container {
    width: 80px;
    height: 80px;
  }
}

/* Mobile screens */
@media (max-width: 480px) {
  .yaraa-ai-container #avatar-container {
    width: 70px;
    height: 70px;
  }
}
/* Mobile screens */
@media (max-width: 480px) {
  .yaraa-ai-container #text-form {
    padding: 8px 10px 4px 10px;
    border-radius: 4px 4px 14px 4px;
    margin-left: 5px;
    margin-right: 5px;
  }
}
.yaraa-ai-container #text {
  width: 70%;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  resize: none;
  outline: none;
  font-size: 12px;
  background: #f8fafc;
  transition: border-color 0.2s;
  color: black;
}

.yaraa-ai-container #text:focus {
  border-color: #4299e1;
}

/* Form controls */
.yaraa-ai-container .form-belowline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding: 0 10px; */
  width: 100%;
  min-height: 8px;
}

.yaraa-ai-container .form-belowline2 {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 100%;
  justify-content: space-between;
}

.yaraa-ai-container .form-belowline2 img {
  width: 50px;
  height: 50px;
  padding: 8px;
  border-radius: 50%;
  background: #f8fafc;
  cursor: pointer;
  transition: background 0.2s;
}

.yaraa-ai-container .form-belowline2 img:hover {
  background: #edf2f7;
}

/* Button styles */
.yaraa-ai-container button[type="submit"] {
  /* margin-left: 10px; */
  background: #2a3663;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.yaraa-ai-container .new-chat-btn {
  position: relative;
  z-index: 10; /* Ensure button is above other elements */
  pointer-events: auto; /* Make sure clicks are enabled */
}

/* #new-chat {
    background: linear-gradient(135deg, #2A3663 0%, #1a2544 100%);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(42, 54, 99, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

#new-chat:hover {
    background: linear-gradient(135deg, #1a2544 0%, #131b32 100%);
    transform: translateY(-1px);
} */

/* Icon styles */
.yaraa-ai-container .btn-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Button variants */
.yaraa-ai-container .control-btn {
  background: aliceblue;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.yaraa-ai-container .end-chat-btn {
  background: #2a3663;
  color: #ffffff;
}

.yaraa-ai-container .end-chat-btn:hover {
  background: #1a2544;
}

/* Scrollbar styles */
.yaraa-ai-container .chat_history::-webkit-scrollbar {
  width: 6px;
}

.yaraa-ai-container .chat_history::-webkit-scrollbar-track {
  background: transparent;
}

.yaraa-ai-container .chat_history::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.yaraa-ai-container .sltp {
  display: none;
}

.yaraa-ai-container .stlpp {
  display: none;
  font-size: 8px;
  color: white;
  font-weight: 200;
  span {
    color: #666;
    font-size: 12px;
    font-family: "Poppins", sans-serif;
  }
  a {
    color: #2a3663;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    font-family: "Poppins", sans-serif;
    transition: color 0.3s ease;
  }
}

/* Chat end line styles */
.yaraa-ai-container .chat-end-line {
  text-align: center;
  padding: 15px 0;
  margin: 0;
  border-top: 1px solid #e4e6eb;
  color: #65676b;
  font-size: 13px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  position: sticky;
  bottom: 0;
  background: #fff;
  width: 100%;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}

.yaraa-ai-container .chat-end-line.visible {
  opacity: 1;
  visibility: visible;
}

.yaraa-ai-container .chat-end-line:hover {
  color: #1a1a1a;
  background: #f8f9fa;
}

.yaraa-ai-container .chat-end-line::before {
  content: "•";
  color: #dc3545;
  margin-right: 6px;
  font-size: 16px;
}

/* Video styling */
.yaraa-ai-container #avatar-video,
#avatar-idle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 768px) {
  .yaraa-ai-container #avatar-container {
    width: 80px;
    height: 80px;
  }
}

/* Mobile screens */
@media (max-width: 480px) {
  .yaraa-ai-container #avatar-container {
    width: 120px;
    height: 120px;
  }
}

.yaraa-ai-container #avatar-video {
  display: none;
}

/* Loading animation styles */
.yaraa-ai-container .chat-bubble.bot.loading {
  /* background: rgba(42, 54, 99, 0.842); */
  background: transparent;
  backdrop-filter: blur(5px);
  /* border: 1px solid rgba(42, 54, 99, 0.1); */
  border: none;
  min-width: 60px;
  max-width: 80px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* box-shadow: 0 2px 10px rgba(42, 54, 99, 0.1); */
}

.yaraa-ai-container .typing-dots {
  display: flex;
  gap: 4px;
  padding: 0 8px;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
}

.yaraa-ai-container .typing-dot {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #333 0%, #1f1f1f 100%);
  border-radius: 50%;
  opacity: 0.7;
  animation: typingAnimation 1.2s ease-in-out infinite;
  box-shadow: 0 2px 5px rgba(42, 54, 99, 0.2);
}

.yaraa-ai-container .typing-dot:nth-child(1) {
  animation-delay: 0s;
}

.yaraa-ai-container .typing-dot:nth-child(2) {
  animation-delay: 0.2s;
  background: linear-gradient(135deg, #333 0%, #1f1f1f 100%);
}

.yaraa-ai-container .typing-dot:nth-child(3) {
  animation-delay: 0.4s;
  background: linear-gradient(135deg, #333 0%, #1f1f1f 100%);
}

@keyframes typingAnimation {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

.yaraa-ai-container .stop-btn {
  background-color: #ff4444;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 8px;
  cursor: pointer;
  display: none !important;
}

.yaraa-ai-container .stop-btn:hover {
  background-color: #cc0000;
}

.yaraa-ai-container .stop-btn .btn-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* #audio-control-container:hover{
    background: #aaaaaa;
} */
.yaraa-ai-container #audio-control-container {
  border-radius: 50%;
  padding: 6px;
}

/* Add these styles for the mic button */
.yaraa-ai-container .mic-control-btn {
  background: transparent !important;
  border: none !important;
  padding: 8px !important;
  cursor: pointer !important;
  border-radius: 50% !important;
  width: 40px;
  height: 50px;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
}

.yaraa-ai-container .mic-control-btn:hover {
  background: #aaaaaa !important;
}

.yaraa-ai-container .mic-control-btn .btn-icon {
  width: 24px !important;
  height: 24px !important;
  stroke: #2a3663 !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  fill: none !important;
}

.yaraa-ai-container .mic-control-btn .mic-body,
.mic-control-btn .mic-stand,
.mic-control-btn .mic-base {
  stroke: #2a3663 !important;
}

.yaraa-ai-container .mic-control-btn .mute-line {
  stroke: #2a3663 !important;
  stroke-width: 2;
  display: block;
}

.yaraa-ai-container .mic-control-btn.active .mute-line {
  display: none;
}

/* Add animation for active state */
.yaraa-ai-container .mic-control-btn.active {
  animation: pulseAnimation 1.5s ease-in-out infinite;
}

@keyframes pulseAnimation {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(42, 54, 99, 0.4);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(42, 54, 99, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(42, 54, 99, 0);
  }
}

/* Update audio button animation */
.yaraa-ai-container .audio-control-btn.playing .sound-wave {
  animation: soundWaveAnimation 1.5s ease-in-out infinite;
}

@keyframes soundWaveAnimation {
  0% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.3;
  }
}

.yaraa-ai-container .registration-form {
  padding: 20px;
  text-align: center;
}

.yaraa-ai-container .registration-form h3 {
  margin-bottom: 20px;
  color: #2a3663;
}

.yaraa-ai-container .form-step {
  display: none;
  margin-bottom: 15px;
}

.yaraa-ai-container .form-step.active {
  display: block;
}

.yaraa-ai-container .form-step input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #dbdbdb;
  border-radius: 5px;
}

.yaraa-ai-container .next-btn,
.submit-btn {
  background: #2a3663;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.yaraa-ai-container .next-btn:hover,
.submit-btn:hover {
  background: #1a2544;
}

/* Thank You Message Styles */
.yaraa-ai-container .thank-you-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #5181d4, #b8d4f0);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow: hidden;
  animation: gradientAnimation 5s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.yaraa-ai-container .thank-you-content {
  text-align: center;
  padding: 40px;
  max-width: 80%;
  position: relative;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.yaraa-ai-container .thank-you-icon-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  animation: scaleIn 0.5s ease forwards, pulse 2s infinite;
  opacity: 0;
  transform: scale(0.5);
}

.yaraa-ai-container .thank-you-icon {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
  transform: rotate(180deg);
}

.yaraa-ai-container .thank-you-title {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  transform: translateY(20px);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.yaraa-ai-container .thank-you-message {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
  transform: translateY(20px);
}

.yaraa-ai-container .thank-you-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  animation: fadeInUp 0.8s ease 0.5s forwards;
  opacity: 0;
  transform: translateY(20px);
}

.yaraa-ai-container .decoration-line {
  height: 2px;
  width: 60px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
}

.yaraa-ai-container .decoration-dot {
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
  margin: 0 10px;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.yaraa-ai-container .particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.yaraa-ai-container .particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  animation: float 3s infinite ease-in-out;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Fade out animation for thank you message */
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.yaraa-ai-container .fade-out {
  animation: fadeOut 1s ease forwards;
}

/* //////////////////////////////////////////////////////////////////////////// */
.yaraa-ai-container .email-capture-modal {
  position: absolute;
  bottom: 20px;
  left: 10px;
  right: 10px;
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.yaraa-ai-container .email-capture-content p {
  margin: 0 0 10px;
  font-size: 14px;
}

.yaraa-ai-container .email-input-container {
  position: relative;
  margin-bottom: 15px;
}

.yaraa-ai-container .error-message {
  color: #ff4444 !important;
  font-size: 10px !important;
  margin: 2px 0 0 0 !important;
  padding: 0;
  display: none;
  text-align: center !important;
  font-weight: normal;
}

.yaraa-ai-container #submit-email-btn {
  background-color: #1d2747;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.yaraa-ai-container #submit-email-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  opacity: 0.7;
}

.yaraa-ai-container #cancel-email-btn {
  background-color: #1d2747;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.yaraa-ai-container #user-email-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  margin-bottom: 0;
}

.yaraa-ai-container #user-email-input:focus {
  outline: none;
  border-color: #4caf50;
}

.yaraa-ai-container #user-email-input.invalid {
  border-color: #ff4444;
}

.yaraa-ai-container .confirmation-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

.yaraa-ai-container .confirmation-content {
  padding: 20px;
}

/* /////////////////////////////////////////// */
.yaraa-ai-container .error-message {
  color: #ff4444;
  font-size: 12px;
  margin: 5px 0;
  display: none;
  text-align: left;
}

.yaraa-ai-container #submit-email-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  opacity: 0.7;
}

.yaraa-ai-container #user-email-input {
  width: 100%;
  padding: 10px;
  margin-bottom: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.yaraa-ai-container #user-email-input:focus {
  outline: none;
  border-color: #4caf50;
}

.yaraa-ai-container #user-email-input.invalid {
  border-color: #ff4444;
}

.yaraa-ai-container .confirmation-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

/* code for the animation button */

.yaraa-ai-container #speech-to-text-container {
  width: 50px;
  height: 50px;
  margin: 5px;
}
.yaraa-ai-container #speech-to-text-control svg {
  width: 100%;
  height: 100%;
}

/* Button styling */
.yaraa-ai-container #speech-to-text-control {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #f5f5f5;
  border: 2px solid #2a3663;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: #1a0933; /* Match the dark purple background */
  /* box-shadow: 0 0 30px rgba(138, 43, 226, 0.5); */
}

.yaraa-ai-container #speech-to-text-control:hover {
  /* background-color: #e9e9e9;
    transform: scale(1.08);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15); */
  background-color: #2d1152; /* Slightly lighter purple on hover */
  transform: scale(1.08);
  /* box-shadow: 0 0 20px rgba(138, 43, 226, 0.5); */
}

/* Active state styling */
.yaraa-ai-container .active1 {
  /* background-color: #d4e2ff !important;
    border-color: #1a4cde !important;
    box-shadow: 0 0 10px rgba(26, 76, 222, 0.5) !important; */
  background-color: #2d1152 !important;
  border-color: #ff00ff !important; /* Magenta border when active */
  /* box-shadow: 0 0 25px rgba(255, 0, 255, 0.7) !important;  */
}

/* Rectangle animations with enhanced visibility */
/* @keyframes rect1Animation {
    0% { height: 6px; y: 9; fill: #2A3663; }
    50% { height: 16px; y: 4; fill: #4169E1; }
    100% { height: 6px; y: 9; fill: #2A3663; }
  }
  
  @keyframes rect2Animation {
    0% { height: 14px; y: 5; fill: #2A3663; }
    50% { height: 24px; y: 0; fill: #4169E1; }
    100% { height: 14px; y: 5; fill: #2A3663; }
  }
  
  @keyframes rect3Animation {
    0% { height: 18px; y: 3; fill: #2A3663; }
    50% { height: 24px; y: 0; fill: #4169E1; }
    100% { height: 18px; y: 3; fill: #2A3663; }
  }
  
  @keyframes rect4Animation {
    0% { height: 14px; y: 5; fill: #2A3663; }
    50% { height: 24px; y: 0; fill: #4169E1; }
    100% { height: 14px; y: 5; fill: #2A3663; }
  }
  
  @keyframes rect5Animation {
    0% { height: 6px; y: 9; fill: #2A3663; }
    50% { height: 16px; y: 4; fill: #4169E1; }
    100% { height: 6px; y: 9; fill: #2A3663; }
  } */
@keyframes rect1Animation {
  0% {
    height: 6px;
    y: 9;
    fill: #a0a8ff;
  } /* Light blue */
  50% {
    height: 16px;
    y: 4;
    fill: #ff00ff;
  } /* Magenta */
  100% {
    height: 6px;
    y: 9;
    fill: #a0a8ff;
  } /* Light blue */
}

@keyframes rect2Animation {
  0% {
    height: 14px;
    y: 5;
    fill: #b28aff;
  } /* Light purple */
  50% {
    height: 24px;
    y: 0;
    fill: #ff40ff;
  } /* Bright magenta */
  100% {
    height: 14px;
    y: 5;
    fill: #b28aff;
  } /* Light purple */
}

@keyframes rect3Animation {
  0% {
    height: 18px;
    y: 3;
    fill: #c372ff;
  } /* Medium purple */
  50% {
    height: 24px;
    y: 0;
    fill: #ff00ff;
  } /* Magenta */
  100% {
    height: 18px;
    y: 3;
    fill: #c372ff;
  } /* Medium purple */
}

@keyframes rect4Animation {
  0% {
    height: 14px;
    y: 5;
    fill: #b28aff;
  } /* Light purple */
  50% {
    height: 24px;
    y: 0;
    fill: #ff40ff;
  } /* Bright magenta */
  100% {
    height: 14px;
    y: 5;
    fill: #b28aff;
  } /* Light purple */
}

@keyframes rect5Animation {
  0% {
    height: 6px;
    y: 9;
    fill: #a0a8ff;
  } /* Light blue */
  50% {
    height: 16px;
    y: 4;
    fill: #ff00ff;
  } /* Magenta */
  100% {
    height: 6px;
    y: 9;
    fill: #a0a8ff;
  } /* Light blue */
}

/* Pulse animation for active button */
@keyframes buttonPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 0, 255, 0.7);
  } /* Magenta glow */
  70% {
    box-shadow: 0 0 20px 10px rgba(255, 0, 255, 0.3);
  } /*  Magenta glow fade  */
  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 255, 0);
  } /*   No glow*/
}

/* Pulse animation for active button */
/* @keyframes buttonPulse {
    0% { box-shadow: 0 0 0 0 rgba(26, 76, 222, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(26, 76, 222, 0); }
    100% { box-shadow: 0 0 0 0 rgba(26, 76, 222, 0); }
  } */

.yaraa-ai-container .button-pulse {
  animation: buttonPulse 2s ease-in-out infinite;
}
.yaraa-ai-container #speech-to-text-control svg {
  filter: drop-shadow(0 0 5px rgba(255, 0, 255, 0.7));
}

/* Animated rectangle classes with faster speed */
.rect-animated-1 {
  animation: rect1Animation 0.7s ease-in-out infinite;
}

.rect-animated-2 {
  animation: rect2Animation 0.7s ease-in-out infinite 0.1s;
}

.rect-animated-3 {
  animation: rect3Animation 0.7s ease-in-out infinite 0.2s;
}

.rect-animated-4 {
  animation: rect4Animation 0.7s ease-in-out infinite 0.3s;
}

.rect-animated-5 {
  animation: rect5Animation 0.7s ease-in-out infinite 0.4s;
}

/* loader animation start's from here*/
.yaraa-ai-container .loader-dots {
  display: none;
  gap: 4px;
  align-items: center;
  justify-content: center;
  height: 24px;
}

.yaraa-ai-container .loader-dots span {
  width: 6px;
  height: 6px;
  background-color: #2a3663;
  border-radius: 50%;
  animation: dotBounce 1s infinite ease-in-out;
}

.yaraa-ai-container .loader-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.yaraa-ai-container .loader-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotBounce {
  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.4;
  }
  40% {
    transform: scale(1.3);
    opacity: 1;
  }
}

/* Tooltip styles */
.yaraa-ai-container .tooltip-text {
  visibility: hidden;
  width: 150px;
  background-color: rgba(42, 54, 99, 0.9);
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;

  /* ✅ Position on left */
  top: 50%;
  left: -160px; /* Adjust to fit width */
  transform: translateY(-50%);

  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
  font-size: 12px;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.yaraa-ai-container .tooltip-text::after {
  content: "";
  position: absolute;

  /* ✅ Arrow on right side */
  top: 50%;
  right: -5px;
  transform: translateY(-50%);

  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(42, 54, 99, 0.9);
}

/* .tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
} */

/* Function to show tooltip programmatically */
.yaraa-ai-container .tooltip-visible .tooltip-text {
  visibility: visible;
  opacity: 1;
}

@media screen and (max-width: 343px) {
  .yaraa-ai-container .stlpp {
    margin-right: 11px;
  }
}
/* Responsive styles */
@media screen and (max-width: 800px) {
  .yaraa-ai-container .chat-container {
    width: 48%;
    right: 2.5%;
    left: 49%;
    height: 75%;
  }
  .yaraa-ai-container .confirmation-content {
    padding: 10px 20px;
    p {
      margin: 0;
      font-size: 15px;
    }
  }
  .yaraa-ai-container .chat_history {
    flex-grow: 1;
    border-radius: 0px !important;
  }
  .yaraa-ai-container .dropdown {
    margin: 2px 5px;
  }

  .yaraa-ai-container .bootm {
    flex-direction: column;
    width: 100%;
    height: 73%;
    right: 0;
    justify-content: flex-start;
  }
  .yaraa-ai-container .l {
    width: 100%;
    max-height: 25%;
  }
  /* .r {
        width: 100%;
        height: 75%;
    } */
  .yaraa-ai-container .r {
    width: 100%;
    display: flex;
    height: 75%;
    flex-direction: column;
  }
  .yaraa-ai-container .dropdown {
    height: 26%;
    min-height: 110px;
    margin-bottom: 10px;
    background: transparent;
  }
  .yaraa-ai-container .stlp {
    display: none;
  }
  /* .sltp {
        display: block;
        font-size: 10px;
        color: white;
        font-weight: 200;
    } */
  .yaraa-ai-container .stlpp {
    display: block;
    font-size: 8px;
    color: #666;
    font-weight: 200;
    margin-right: 11px;
    span {
      color: #666;
      font-size: 12px;
      font-family: "Poppins", sans-serif;
    }
    a {
      color: #2a3663;
      text-decoration: none;
      font-weight: 500;
      font-size: 8px;
      font-family: "Poppins", sans-serif;
      transition: color 0.3s ease;
      margin-right: 10px;
    }
  }

  .yaraa-ai-container .avatar-wrapper {
    flex-direction: row-reverse;
    justify-content: space-around;
    height: 100%;
  }

  .yaraa-ai-container .avatar-container {
    width: 120px;
    height: 120px;
    margin-left: 10px;
  }

  .yaraa-ai-container .top-title {
    padding-top: 0px;
  }
  .yaraa-ai-container #avatar-avtar_name-container {
    flex-direction: row;
    margin-left: 5px;
  }

  .yaraa-ai-container #avatar-designation-text {
    font-size: 12px;
    color: black;
    margin-bottom: 0px !important;
  }

  .yaraa-ai-container .chat-button {
    width: 80px;
    height: 80px;
    bottom: 20px;
    right: 20px;
  }
  .yaraa-ai-container #text-form {
    border-radius: 5px 5px 20px 20px;
  }

  .yaraa-ai-container #text {
    border: none;
    background: transparent;
  }
  /* #new-chat {
        border: none;
        padding: 4px 10px;
        border-radius: 25px;
        font-size: 11px;
        box-shadow: none;
        display: flex;
        align-items: center;
        gap: 2px;
    } */
  .yaraa-ai-container .form-belowline2 img {
    width: 45px;
    height: 45px;
  }
  .yaraa-ai-container button[type="submit"] {
    border: none;
    padding: 5px 18px;
    border-radius: 20px;
  }
  /* #close-btn23 {
        bottom: 78%;
        right: 3%; */
  /* #close-btn23 {
        bottom: 76%;
        right: 3px;
    } */
  .yaraa-ai-container #close-btn23 {
    bottom: 77%;
    right: 20px;
  }
  .yaraa-ai-container .thank-you-icon-container {
    width: 80px;
    height: 80px;
  }
  .yaraa-ai-container .thank-you-content {
    padding: 15px;
  }
}

@media screen and (max-width: 800px) and (min-width: 700px) {
  .yaraa-ai-container #audio-control-container {
    margin-left: -75px !important;
    margin-top: 120px !important;
  }
  .yaraa-ai-container .yaraa-disclaimer p {
    left: 60px !important;
  }
  .yaraa-ai-container .top-title {
    padding-right: 7px !important;
  }
  .yaraa-ai-container #avatar-name {
    margin-left: 85px !important;
  }
  .yaraa-ai-container #avatar-name-text {
    margin: 5px !important;
    font-size: 20px !important;
  }
  .yaraa-ai-container .avatar-container {
    width: 90px !important;
    height: 90px !important;
    margin-left: 5px;
  }
}
@media screen and (max-width: 600px) and (min-width: 500px) {
  .yaraa-ai-container #audio-control-container {
    margin-left: -75px !important;
    margin-top: 120px !important;
  }
  .yaraa-ai-container .yaraa-disclaimer p {
    left: 60px !important;
  }
  .yaraa-ai-container .top-title {
    padding-right: 7px !important;
  }
  .yaraa-ai-container #avatar-name {
    margin-left: 75px !important;
  }
  .yaraa-ai-container #avatar-name-text {
    margin: 5px !important;
    font-size: 20px !important;
  }
  .yaraa-ai-container .avatar-container {
    width: 90px !important;
    height: 90px !important;
    margin-left: 5px;
  }
}

@media screen and (max-width: 600px) {
  .yaraa-ai-container .chat-container {
    width: 65%;
    left: 32%;
  }
  .yaraa-ai-container #close-btn23 {
    bottom: 77.5vh;
    right: -3px;
  }
  /* #close-btn23 {
        bottom: 64.5vh;
        right: 1px;
    } */

  /* End Chat Button Styles */
  /* .end-chat-container {
    display: flex;
    justify-content: center;
} */

  /* #end-chat-btn {
    bottom: 12vh;
}

#end-chat-btn .btn-icon {
    width: 12px;
    height: 12px;
} */
}

@media screen and (max-width: 480px) {
  .yaraa-ai-container .chat-container {
    height: 75vh;
    bottom: 20px;
    width: 90%;
    left: 5%;
  }
  /* #close-btn23 {
        /* bottom: 81%;
        right: 7px; */
  /*bottom: 64.5vh;
        right: 1px;
    } */
  .yaraa-ai-container #close-btn23 {
    /* bottom: 65.5vh; */
    bottom: 80.5vh;
    right: -2px;
  }

  .yaraa-ai-container .form-belowline {
    gap: 10px;
  }
  .yaraa-ai-container #speech-to-text-container {
    width: 30px;
    height: 30px;
    margin: 5px;
  }

  .yaraa-ai-container #end-chat {
    width: 50%;
    justify-content: center;
    span {
      font-size: 10px;
    }
  }
  .yaraa-ai-container .dropdown {
    height: 22%;
    min-height: 110px;
    margin-bottom: 11px;
    background: transparent;
  }

  /* .form-belowline2 {
        width: 70%;
        justify-content: flex-end;
    } */

  .yaraa-ai-container .avatar-container {
    width: 120px;
    height: 120px;
  }
  .yaraa-ai-container #avatar-avtar_name-container {
    width: 70%;
    margin-left: 10px;
  }

  .yaraa-ai-container #avatar-name-text {
    font-size: 16px;
  }
  .yaraa-ai-container #pavatar-designation-text {
    font-size: 12px;
  }

  /* .chat_history{
        height: 68%;
    } */

  .yaraa-ai-container .top-title h2 {
    font-size: 20px;
  }

  .yaraa-ai-container #text {
    font-size: 12px;
    height: 60px;
  }

  .yaraa-ai-container .chat-bubble {
    font-size: 11px;
    padding: 10px 12px;
  }
  .yaraa-ai-container .form-belowline2 img {
    width: 42px;
    height: 42px;
  }
  .yaraa-ai-container .btn-icon {
    width: 15px;
    height: 15px;
  }

  /* .end-chat-container {
        display: flex;
        justify-content: center;
    } */

  .yaraa-ai-container #end-chat-btn {
    bottom: 12vh;
  }

  .yaraa-ai-container #end-chat-btn .btn-icon {
    width: 12px;
    height: 12px;
  }
}
@media (min-width: 480px) and (max-width: 800px) {
  /* Chat container should fit inside tablet screen */
  .yaraa-ai-container .chat-container {
    width: 90% !important;
    max-width: 600px !important;
    height: 75% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 20px !important;
    border-radius: 16px !important;
  }

  /* Top title becomes column: logo on top, avatar+name below */
  .yaraa-ai-container .top-title {
    display: flex !important;
    flex-direction: column !important; /* stack logo + avatar row */
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 15px !important;
    gap: 12px !important;
  }

  /* Logo on top */
  .yaraa-ai-container #avatar-logo {
    width: 90px !important;
    height: auto !important;
    object-fit: contain;
    margin-bottom: 5px !important;
    margin-left: 0px;
  }

  /* Avatar + Name side (below logo) */
  .yaraa-ai-container #avatar-avtar_name-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  .yaraa-ai-container #avatar-container {
    width: 130px !important;
    height: 130px !important;
    flex-shrink: 0;
  }

  .yaraa-ai-container #avatar-name-text {
    font-size: 18px !important;
    text-align: left !important;
  }

  .yaraa-ai-container #avatar-designation-text {
    font-size: 13px !important;
    text-align: left !important;
  }
}
/* Default dropdown style */
@media screen and (max-width: 800px) {
  .yaraa-ai-container .dropdown {
    height: 26%;
    min-height: 110px;
    margin-bottom: 10px;
    background: transparent;
    transition: all 0.3s ease; /* smooth collapse */
  }

  /* Collapsed state while form is active */
  .yaraa-ai-container .dropdown.collapsed {
    height: 0 !important;
    min-height: 0 !important;
    margin-bottom: 0 !important;
    overflow: hidden;
  }
}
@media (min-width: 336px) and (max-width: 356px) {
  body
    .yaraa-ai-container
    #audio-control-container
    #universal-audio-control
    .btn-icon {
    width: 14px !important;
    height: 14px !important;
    padding: 1px;
    scale: 1.1;
    margin-top: 67px;
    margin-left: -86px;
  }
}
@media (min-width: 356px) and (max-width: 380px) {
  body
    .yaraa-ai-container
    #audio-control-container
    #universal-audio-control
    .btn-icon {
    width: 14px !important;
    height: 14px !important;
    padding: 1px;
    scale: 1.1;
    margin-top: 67px;
    margin-left: -86px;
  }
}

@media (max-width: 428px) {
  .yaraa-ai-container #avatar-container {
    width: 120px; /* 👈 adjust size if needed */
    height: 120px;
  }
}
@media (max-width: 428px) {
  .yaraa-ai-container #avatar-logo {
    height: 50px; /* 👈 smaller for very small screens */
    width: 90px;
    margin-right: 32px;
  }
}

@media (max-width: 400px) {
  .yaraa-ai-container #avatar-logo {
    height: 40px;
    width: 75px;
    margin-right: 28px;
  }
}
@media (max-width: 400px) {
  .yaraa-ai-container #avatar-container {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 400px) {
  body
    .yaraa-ai-container
    #audio-control-container
    #universal-audio-control
    .btn-icon {
    width: 18px !important; /* 👈 slightly smaller for tiny screens */
    height: 18px !important;
    padding: 1px;
    scale: 1; /* 👈 reset scale */
    margin-top: 102px; /* 👈 adjusted position */
    margin-left: -127px;
  }
}
@media (max-width: 388px) {
  body
    .yaraa-ai-container
    #audio-control-container
    #universal-audio-control
    .btn-icon {
    width: 20px !important; /* 👈 slightly smaller for very small screens */
    height: 20px !important;
    padding: 1px;
    scale: 1;
    margin-top: 103px; /* 👈 adjusted position */
    margin-left: -123px;
  }
}
@media (max-width: 372px) {
  .yaraa-ai-container #avatar-container {
    width: 90px; /* 👈 smaller for very small screens */
    height: 90px;
  }
}
@media (max-width: 372px) {
  body
    .yaraa-ai-container
    #audio-control-container
    #universal-audio-control
    .btn-icon {
    width: 18px !important;
    height: 18px !important;
    padding: 1px;
    scale: 1;
    margin-top: 92px;
    margin-left: -123px;
  }
}
@media (max-width: 360px) {
  body
    .yaraa-ai-container
    #audio-control-container
    #universal-audio-control
    .btn-icon {
    width: 18px !important;
    height: 18px !important;
    padding: 1px;
    scale: 1;
    margin-top: 92px;
    margin-left: -114px;
  }
}
@media (max-width: 340px) {
  body
    .yaraa-ai-container
    #audio-control-container
    #universal-audio-control
    .btn-icon {
    width: 18px !important;
    height: 18px !important;
    padding: 1px;
    scale: 1;
    margin-top: 92px;
    margin-left: -102px;
  }
}
@media (min-width: 769px) and (max-width: 810px) {
  body
    .yaraa-ai-container
    #audio-control-container
    #universal-audio-control
    .btn-icon {
    width: 22px !important;
    height: 22px !important;
    padding: 1px;
    scale: 1.2;
    margin-top: 20px;
    margin-left: -20px;
  }
}
@media (min-width: 602px) and (max-width: 695px) {
  body
    .yaraa-ai-container
    #audio-control-container
    #universal-audio-control
    .btn-icon {
    width: 22px !important;
    height: 22px !important;
    padding: 1px;
    scale: 1.2;
    margin-top: 124px;
    margin-left: -170px;
  }
}
