/* Slider Track */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  border-radius: 5px;
  background: linear-gradient(to right, #4299e1, #48bb78, #ed64a6);
}

input[type="range"]::-moz-range-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  border-radius: 5px;
  background: linear-gradient(to right, #4299e1, #48bb78, #ed64a6);
}

/* Slider Thumb */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background-color: white;
  border: 3px solid #48bb78;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background-color: white;
  border: 3px solid #48bb78;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

/* Hover & Active States */
input[type="range"]::-webkit-slider-thumb:hover,
input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.2);
}

input[type="range"]:focus::-webkit-slider-thumb,
input[type="range"]:focus::-moz-range-thumb {
  outline: none;
  box-shadow: 0 0 8px rgba(72, 187, 120, 0.8);
}

/* Create form chatbot */
/* General styles for the chatbot preview window */
#chatbot-create-assistant-preview {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 550px;
  height: 650px; /* Increased height for better chat display */
  background-color: #ffffff;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

#chatbot-create-assistant-preview.open {
  transform: translateY(0);
}

/* Header Styling */
#chatbot-create-assistant-preview #chatbot-header {
  background-color: #007bff; /* Modern blue color */
  color: #ffffff;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  border-bottom: 1px solid #0056b3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#chatbot-create-assistant-preview #chatbot-icon {
  width: 40px;
  height: 40px;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#chatbot-create-assistant-preview #chatbot-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-left: 8px;
}

/* Chat Body Styling */
#chatbot-create-assistant-preview #chatbot-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #f5f5f5; /* Light gray background */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#chatbot-create-assistant-preview .chat-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Default alignment for bot messages */
}

#chatbot-create-assistant-preview .user-message {
  align-items: flex-end; /* Align user messages to the end */
}

#chatbot-create-assistant-preview .message-content {
  max-width: 80%;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  word-wrap: break-word;
}

#chatbot-create-assistant-preview .bot-message .message-content {
  background-color: #007bff;
  color: #ffffff;
}

#chatbot-create-assistant-preview .user-message .message-content {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e1e1e1;
}

#chatbot-create-assistant-preview .message-content-container {
  display: flex;
  align-items: flex-start;
}

#chatbot-create-assistant-preview .chatbot-icon {
  width: 40px;
  height: 40px;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#chatbot-create-assistant-preview .message-content {
  max-width: calc(100% - 50px); /* Adjust width to account for the icon */
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  word-wrap: break-word;
}

#chatbot-create-assistant-preview .bot-message .message-content {
  background-color: #007bff;
  color: #ffffff;
}

#chatbot-create-assistant-preview .user-message .message-content {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e1e1e1;
}

.create-assistant-details-header {
  font-size: 2rem; /* Adjust font size */
  font-weight: 700; /* Bold font weight */
  color: #4a5568; /* Dark gray color for text */
  border-bottom: 2px solid #e2e8f0; /* Subtle bottom border */
  padding-bottom: 0.5rem; /* Space below the text */
  margin-bottom: 1rem; /* Space below the border */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
  font-family: "Inter", sans-serif; /* Elegant font family */
}

.thinking-animation {
  display: flex;
  align-items: center;
}

.thinking-dots {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  background-color: #ccc;
  border-radius: 50%;
  animation: blink 1.4s infinite both;
}

.thinking-dots:nth-child(2) {
  animation-delay: 0.2s;
}

.thinking-dots:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

#loader_wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  display: none; /* Default state is hidden */
}

#loader_wrapper.show {
  display: flex; /* Show loader when .show class is added */
}

#loader_wrapper .container {
  position: relative;
  border-radius: 50%;
  height: 96px;
  width: 96px;
  animation: rotate_3922 1.2s linear infinite;
  background-color: #9b59b6;
  background-image: linear-gradient(#9b59b6, #84cdfa, #5ad1cd);
}

#loader_wrapper .container span {
  position: absolute;
  border-radius: 50%;
  height: 100%;
  width: 100%;
  background-color: #9b59b6;
  background-image: linear-gradient(#9b59b6, #84cdfa, #5ad1cd);
}

#loader_wrapper .container span:nth-of-type(1) {
  filter: blur(5px);
}

#loader_wrapper .container span:nth-of-type(2) {
  filter: blur(10px);
}

#loader_wrapper .container span:nth-of-type(3) {
  filter: blur(25px);
}

#loader_wrapper .container span:nth-of-type(4) {
  filter: blur(50px);
}

#loader_wrapper .container::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background-color: #fff;
  border: solid 5px #ffffff;
  border-radius: 50%;
}

@keyframes rotate_3922 {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Dashboard Loading Animation */
.loader-container {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.loader-container span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #3b82f6;
  animation: loader-bounce 1.4s ease-in-out infinite both;
}

.loader-container span:nth-child(1) {
  animation-delay: -0.32s;
}

.loader-container span:nth-child(2) {
  animation-delay: -0.16s;
}

.loader-container span:nth-child(3) {
  animation-delay: 0s;
}

.loader-container span:nth-child(4) {
  animation-delay: 0.16s;
}

@keyframes loader-bounce {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}
