
@font-face {
  font-family: 'Brando Arabic';
  src: url('../assets/fonts/fonnts.com-Brando_Arabic.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Optional (improves loading behavior) */
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}


/* Force all elements to use inherited font-family (to be overridden below) */
html, body, * {
  font-family: inherit !important;
}

/* Arabic content anywhere */
[lang="ar"], *[lang="ar"] {
  font-family: "DINNextArabic" !important;
  direction: rtl;
}

/* English or default Latin content */
[lang="en"], *[lang="en"], html:lang(en), body:lang(en) {
  font-family: "NeueHaasGroteskText Pro" !important;
  direction: ltr;
}

html, body, * {
  font-family: "NeueHaasGroteskText Pro", "DINNextArabic", sans-serif !important;
}

/* body {
  font-family: 'Brando Arabic';
} */
/* body, html {
  font-family: inherit !important;
}
#chatbot-container, #chatbot-container * {
  font-family: inherit !important;
} */


/* Floating Chatbot Button */
#chatbot-button {
  position: fixed;
  bottom: 10px;
  right: 80px;
  /* left: 50px; */
  height: 150px;
  width: 150px;
  /* 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;
  justify-content: center;
  z-index: 1000;
  transition: background-color 0.3s; /* Transition for hover effect */
}

#chatbot-button-close {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  height: 65px;
  width: 65px;
  /* background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1)); */
  /* background-color: #4c0677; */
  /* color: white;  */
  /* padding: 15px; */
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: background-color 0.3s; /* Transition for hover effect */
}

/* Chatbot Container */
#chatbot-container {
  position: fixed;
    bottom: 120px;
    right: 25px;
    width: 350px;
    height: 500px;
    background-color: white;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

/* Chatbot Header */
#chatbot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 20px;
  background-color: #089e49;
  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;
 height: 75%;
  overflow-y: scroll !important; /* Allow vertical scrolling */
  scroll-behavior: smooth; /* Smooth scrolling when the scroll position changes */
}
.message {
  margin: 5px 0;
  /* padding: 10px; */
  border-radius: 10px;
  max-width: 80%;
  background-color: white;
  border: 1px gray;
  overflow-wrap: break-word;
}

.bot-message {
  align-self: flex-start; /* Align bot messages to the left */
  background-color: #F6F6F7;
  text-align: center; /* Center align the text */
  font-family:  Times, serif; 
  font-size: 16px; /* Font size */
  color: #333352; /* Dark gray text color */
  border: 0.5px solid #E3E3E3;
  /* text-align: right; */
  border-radius: 15px 15px 15px 15px; 
  padding: 10px;

}

/* Add padding to the text wrapper */
.message-text {
  white-space: pre-wrap; 
  word-wrap: break-word;
}

.user-message {
  align-self: flex-end !important ; 
  background-color: #4c0677; 
  text-align: center; 
  font-size: 16px; 
  color: white;
  /* font-family:  Times, serif;  */
  border: 0.5px solid #E3E3E3;
  text-align: right ;
  border-radius: 15px 15px 15px 15px; 
  padding: 10px;
}


/* Chat Header */
#chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to left, #4c0677, #545377);
  color: white;
  padding: 15px 15px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  /* font-family: Arial, sans-serif; */
  }

.header-left {
  display: flex;
  align-items: center;
}

.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 {
  width: 40px;
  height:40px;
  display: flex;
  justify-content: center;
  align-items: center; 
  background-color: white;
  border-radius: 50%;
}

.icon img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
} */

.status-dot {
  position: absolute;
  bottom: 2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background-color: #248750; /* Green status indicator */
  border-radius: 50%;
  border: 2px solid #089e49; /* Border matches the background color */
}

.header-text h2 { 
  margin: 7px;
  margin-bottom: 1px;
  font-size: 16px;
  font-weight: 300;
  /* font-family:  Times, serif;  */
}

.header-text p {
  margin: 7px;
  font-size: 15px;
  color: #e0e0e0; /* Lighter color for subtitle */
  /* font-family:  Times, serif;  */
}

.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(180deg);
  margin-left: 10px;
  margin-bottom: auto;
  margin-top: auto;
  cursor: pointer;
  background-color: transparent;
}

#container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* background-color: red; */
  /* padding: 20px;
  height: 450px;  */
}

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

.logo img {
  width: 130px;
  height: 130px;
}

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

.start-button {
  display: inline-block;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-size: 18px;
  color: black;
  border: none;
  cursor: pointer;
  background-color: transparent;
}



#view-step-two {
  display: none;
  background-color: white;
  flex-direction: column;
  height: 80%;
  overflow-y: hidden !important;
  margin-bottom: 50px;

}

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

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

.bot-image {
  width: 28px; /* Adjust size as needed */
  height: 28px;
  border-radius: 50% 50% 0 50%; /* Cover bottom-right corner */
  margin-right: 1px;
  border: 1px solid rgb(209 213 219);
  padding: 2px;
  background-color: white;
}

.timestamp {
  margin-right: 8px;
  font-size: 12px;
  font-weight: 100;
  color: #A6A8AB; /* 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: 10px 10px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border-top: 0.5px solid rgb(187, 185, 185);
  font-size: 16px;

  /* margin-bottom: 5px; */
}
.button:last-child {
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}
.button:last-child:hover {
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

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

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

.button-button {
  background-color: transparent;

  width: 100%;
}

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

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

.response-button {
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0.2rem;
  border: transparent;
  background-color: transparent;
  cursor: pointer;
}

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

.reactions-container {
  display: flex;
  gap: 5px;
}

#view-settings {
  display: none;
  background-color: #f5f5f5;
  flex-direction: column;
  height: 100%;
  overflow-y: scroll !important;
}

#open-settings {
  display: none;
}

.settings-btn {
  border-bottom: 1px solid #e0e0e0;
  padding: 20px;
  cursor: pointer;
}

.settings-btn:hover {
  background-color: #e0e0e0;
}


.welcome-button {
  display: inline-block;
  width: 70%;
  padding-top: 7px;
  padding-bottom: 7px;
  margin-top: 10px;
  font-size: 12px;
  color: #ffffff;
  background-color: #4c0677;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.bot-message-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.bot-avatar {
  width: 25px;
  height: 25px;
  border-radius: 50%;
}

.bot-message {
  background-color: #f0f0f0;
  border-radius: 10px;
  padding: 10px;
  max-width: 70%;
  position: relative;
}
