@font-face {
  font-family: "DiodrumArabicMedium";
  src: url("https://mim.labeah.ai/fonts/DiodrumArabicMedium.ttf");
}


body {
  overscroll-behavior: none; /* Prevent overscroll effects outside the bot window */
}

/* Floating Chatbot Button */
#chatbot-button {
  position: fixed;
  bottom: 10px;
  right: 10px;
  height: 70px;
  width: 80px;

  /* background-color: #00bfa6;  */
  /* color: white;  */
  /* padding: 15px; */
  /* border-radius: 50%; */
  font-size: 24px;
  cursor: pointer;
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999999;
  transition: background-color 0.3s; /* Transition for hover effect */
}

/* #chatbot-container {
  position: fixed;
  bottom: 95px; 
  right: 25px;
  width: 350px;
  min-width: 330px;
  max-width: 350px;
  height: 500px; 
  background-color: rgb(252, 250, 250);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: none; 
  flex-direction: column;
  z-index: 10000;
  overflow: hidden; 
} */

/* Chatbot Container */
#chatbot-container {
  pointer-events: auto;
  position: fixed;
  bottom: 95px; 
  right: 25px;
  min-width: 280px;
  max-width: 90%; 
  width: 350px; 
  height: 500px; 
  background-color: rgb(252, 250, 250);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: none; 
  flex-direction: column;
  z-index: 10000;
  overflow: hidden;
  direction: rtl !important;
  float: right !important;
  /* background-color: gray !important; */
}

@media (max-width: 768px) {
  #chatbot-container {
    min-width: 250px;
    max-width: 85%;

  }
}

@media (max-width: 480px) {
  #chatbot-container {
    min-width: 220px;
    max-width: 90%;
  }
}




/* Chatbot Header */
#chatbot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 20px;
  background-color: #4a3d8e; /* Header color */
  color: white;
  font-weight: bold;
  border-top-left-radius: 10px; /* Rounded corners */
  border-top-right-radius: 10px;
}

#chatbot-header h2 {
  margin: 0;
  font-size: 16px;
}

#chatbot-header span {
  cursor: pointer;
  font-size: 18px;
  transition: transform 0.2s; /* Transition for close button */
}

#chatbot-header span:hover {
  transform: scale(1.1); /* Slightly scale up on hover */
}

/* Chat Messages */
#chat-window {
  /* flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px;
  max-height: 320px;
  overflow-y: auto !important;
  direction: rtl !important; 
  scroll-behavior: smooth;  */


  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px;
  max-height: 300px;
  overflow-y: auto; /* Allow vertical scrolling */
  scroll-behavior: smooth;

}

.message {
  margin: 5px 0;
  border-radius: 10px;
  max-width: 80%;
  background-color: white;
  border: 1px gray;

  /* margin: 5px 0;
  border-radius: 10px;
  max-width: 80%;
  background-color: white;
  border: 1px gray; */
}

.bot-message {
  align-self: flex-start; /* Align bot messages to the left */
  background-color: #f6f6f7; /* Light background color */
  text-align: center; /* Center align the text */
  font-size: 13px; /* Font size */
  color: #667085; /* Dark gray text color */
  border: 0.5px solid rgb(227, 227, 227);
  text-align: right;
  border-radius: 10px; /* Cover bottom-right corner */
  padding: 10px;
}

.user-message {
  padding: 10px;
  font-size: 13px; /* Font size */
  background-color: #15b1a2; /* User message color */
  color: white; /* Text color for user messages */
  align-self: flex-end; /* Align user messages to the right */
  margin: 2px;
  border-radius: 10px; /* Cover bottom-right corner */
}

/* Chat Header */
#chat-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #5f5da5, #413761);
  color: white;
  padding: 15px 15px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  direction: ltr !important
}

.header-left {
  display: flex;
  align-items: center;
  direction: rtl !important;
}

.menu-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 10px;
}

.menu-icon .dot {
  width: 5px;
  height: 5px;
  background-color: white;
  border-radius: 50%;
  margin: 1px 0;
}

.icon {
  /* float: right !important; */
  direction: rtl !important;
  position: relative !important;
  margin-right: 15px;
  display: inline-block; /* Ensure it aligns nicely in a row if needed */
}

.icon img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: block; /* Prevents any inline alignment issues */
}

.status-dot {
  position: absolute !important;
  bottom: 4px; /* Align at the bottom edge of the image */
  right: 6px; /* Align at the right edge of the image */
  transform: translate(
    50%,
    50%
  ); /* Adjusts position to sit cleanly outside the border */
  width: 12px;
  height: 12px;
  background-color: #268750; /* Green status indicator */
  border-radius: 50%;
  border: 2px solid #4a3d8e; /* Matches image background color */
}

.header-text h2 {
  padding-right: 5px;
  margin: 0; /* Remove default margin */
  font-size: 16px;
  text-align: right;
}

.header-text p {
  padding-right: 5px;
  margin: 0; /* Remove default margin */
  font-size: 10px;
  color: #e0e0e0; /* Lighter color for subtitle */
  text-align: right;
}

.header-text {
  display: flex;
  flex-direction: column; /* Stack items vertically */
  /* gap: 5px; */
}

.close-btn {
  font-size: 20px;
  cursor: pointer;
  transition: color 0.3s;
}

.close-btn:hover {
  color: #ccc;
}

/* Chat Input Container */
.chat-input-container {
  /* position: absolute; 
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%; */
  align-items: center;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0; /* Light gray border at the top */
  padding: 10px 30px 10px 3px; /* Padding inside the container */
  /* box-shadow: 0px -2px 4px rgba(0, 0, 0, 0.1); Subtle shadow at the top */
  /* display: flex; */
}

/* Chat Input */
.chat-input {
  flex: 1; /* Takes up the remaining width */
  border: none; /* Remove default border */
  outline: none; /* Remove outline on focus */
  padding: 8px; /* Inner padding for text */
  font-size: 16px; /* Font size */
  color: #606b85; /* Text color */
  text-align: right; /* Right-align for Arabic text */
  /* font-family: Arial, sans-serif;  */
  float: right;
  direction: rtl;

  /* width: 100%; */
}

.send-icon {
  float: left !important;
  /* transform: rotate(-20deg); */
  margin-left: 10px;
  margin-bottom: auto;
  margin-top: auto;
  cursor: pointer;
  background-color: transparent;
}

/* #container {
  position: relative;
  text-align: center !important;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  align-items: center;
  margin-top: 50px;
  margin-left: 15px !important;
  margin-right: 15px !important;
} */

.logo {
  position: absolute;
  top: -30px;
  left: 0px;
  right: 0px;
}

.logo img {
  width: 40px;
  height: 40px;
  background-color: #413659;
  border-radius: 50%;
  padding: 10px;
}

.text p {
  font-size: 20px;
  color: #4a4a4a;
  line-height: 1.6;
  margin-bottom: 20px;
  padding-top: 25px;
  padding: 20px;
}

.start-button {
  display: inline-block;
  width: 90%;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-size: 18px;
  color: #ffffff;
  background-color: #15b1a2;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.start-button:hover {
  background-color: #129a8d;
}

#view-step-two {
  display: none;
  /* background-color: #f5f5f5; */
  background-color: white;
  flex-direction: column;
  height: 73%;
  overflow-y: scroll !important;
}

.bottom-chat {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: white;
}

.bot-header {
  display: flex;
  align-items: center;
  margin-top: 5px;
}

.bot-image {
  width: 20px !important; 
  height: 20px !important;
  border-radius: 50%; /* Cover bottom-right corner */
  margin-right: 1px;
  border: 1px solid rgb(209 213 219);
  /* padding: 5px; */
  background-color: white !important;
}

.timestamp {
  margin-right: 8px;
  font-size: 12px;
  font-weight: 100;
  color: #666; /* Adjust color for readability */
}

.svg-container {
  display: flex;
  justify-content: space-between; /* Space the two SVGs apart */
  margin-top: 10px; /* Add space above the SVG container */
}

.svg-icon {
  width: 20px; /* Set a width for the SVGs */
  height: 20px; /* Set a height for the SVGs */
}

/* Basic button styling */
.button {
  padding: 5px 5px;
  font-size: 12px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
  margin-bottom: 5px;
}

.feedback-button {
  background-color: #d0cccc;
}

.feedback-button:hover {
  background-color: #bbb7b7;
}

.button-button {
  background-color: #e3e3e3;
  width: 100%;
  text-align: right;
  /* font-family: "DiodrumArabicMedium"; */
}

.button-button:hover {
  background-color: #d9d9d9;
}

/* Button container styling */
.buttons-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.response-button {
  all: unset; /* Reset all styles */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.response-button:focus {
  outline: none;
}

.reactions-container {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  padding-bottom: 10;
  margin-bottom: 10 !important;
  height: 40px !important;
  /* background-color: red; */
}

#container-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #483454; /* Purple background */
  color: white;
  padding: 15px 15px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  /* font-family: "DiodrumArabicMedium"; */
}

.welcome-header {
  display: flex;
  flex-direction: column;
  /* background: linear-gradient(to right, #5f5da5, #413761); */
  padding-top: 10px;
  padding-right: 20px;
  height: 25vh;
}

.welcome-button {
  display: inline-block;
  width: 100%;
  padding-top: 7px;
  padding-bottom: 7px;
  margin-top: 20px;
  font-size: 13px;
  color: #ffffff;
  background-color: #15b1a2;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  /* font-family: "DiodrumArabicMedium"; */
}

.bottom-chat p{
  text-align: center !important;
  padding: 5px !important;

}

.rating-div {
  margin-top: 10px;
}

.rating-stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  gap: 10px;
}

.star {
  cursor: pointer;
  font-size: 24px;
}

.star:hover {
  transform: scale(1.2);
}

.rating-notes{
  border-radius: 0.5rem;  
  width: 100%;          
  padding: 0.5rem;      
  box-sizing: border-box; 
  margin-top: 1rem;
  resize: none;
}

.rate-submit-button {
  display: inline-block;
  width: 100%;
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 12px;
  color: #ffffff;
  background-color: #15b1a2;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.rate-submit-button:hover {
  background-color: #129a8d;
}

.rating-stat{
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}


.message-text{
  white-space: pre-wrap; /* This preserves whitespace formatting */
  word-wrap: break-word;

}


.bounce-text {
  background-color: red !important;
  font-size: 4rem;
  font-weight: bold;
  color: #f4f4f4;
  margin-left: 'right'; 
  font-size: 14px; 
  padding-right: 10px;
  animation: bounce 1s infinite;
}


@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}