/* Bot Container - Main wrapper for the entire bot section */
.bot-container {
  background: rgba(15, 20, 25, 0.4);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(96, 165, 250, 0.2); /* Light blue border to match website */
  border-radius: 20px;
  padding: 20px;
  margin: 0;
  margin-top: -60px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  max-width: 500px;
  width: 100%;
}

.bot-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.6), transparent); /* Light blue shimmer to match website */
  animation: horizontalShimmer 3s ease-in-out infinite;
}

@keyframes horizontalShimmer {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* Floating Knight Assistant - Minimalist Bubble Design */
.assistant-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px;
  background: transparent;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.assistant-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Knight Avatar Section */
.knight-avatar-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  gap: 20px;
}

.knight-avatar {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: transparent;
  border-radius: 0; /* Remove any border radius for clean video display */
}



.avatar-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  background: transparent;
  border-radius: 12px; /* Soft corners */
  border: 2px solid rgba(255, 255, 255, 0.1); /* Thin subtle border */
}

.knight-avatar:hover .avatar-video {
  transform: scale(1.05);
}

/* Knight Intro */
.knight-intro {
  flex: 1;
  color: #e2e8f0;
}

.knight-intro h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #60a5fa; /* Light blue to match website accent */
  font-family: 'Fira Code', monospace;
}

.knight-intro p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(226, 232, 240, 0.8);
  font-family: 'Roboto', sans-serif;
}

/* Input Section */
.input-section {
  flex: 1;
  display: flex;
  gap: 10px;
  align-items: center;
}

.chat-input-field {
  flex: 1;
  background: rgba(15, 20, 25, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(74, 85, 104, 0.3);
  border-radius: 18px;
  padding: 10px 16px;
  color: #e2e8f0;
  font-family: inherit;
  outline: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

.chat-input-field:focus {
  border-color: rgba(96, 165, 250, 0.5); /* Light blue to match website accent */
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.2); /* Light blue to match website accent */
  background: rgba(15, 20, 25, 0.8);
}

.chat-input-field::placeholder {
  color: rgba(226, 232, 240, 0.5);
}

.send-button {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.8), rgba(59, 130, 246, 0.8)); /* Light blue gradient to match website */
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(96, 165, 250, 0.3); /* Light blue shadow to match website */
}

.send-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4); /* Light blue shadow to match website */
}

.send-button:active {
  transform: translateY(0) scale(0.95);
}



/* Floating Bubbles Area */
.bubbles-area {
  position: relative;
  height: 280px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  overflow-y: scroll;
  padding: 0 8px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.bubbles-area::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}


.bubbles-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Floating Message Bubbles */
.bubble {
  max-width: 75%;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  animation: bubbleFloat 0.4s ease-out forwards;
  position: relative;
}

.bubble.user {
  align-self: flex-end;
  margin-left: auto;
}

.bubble.bot {
  align-self: flex-start;
  margin-right: auto;
}

@keyframes bubbleFloat {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bubble-content {
  padding: 12px 16px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  position: relative;
  font-size: 14px;
  line-height: 1.4;
  animation: gentleFloat 4s ease-in-out infinite;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.bubble.user .bubble-content {
  background: rgba(96, 165, 250, 0.7); /* Light blue to match website accent */
  color: white;
  border: 1px solid rgba(96, 165, 250, 0.3); /* Light blue border to match website */
}

.bubble.bot .bubble-content {
  background: rgba(15, 20, 25, 0.7);
  color: #e2e8f0;
  border: 1px solid rgba(96, 165, 250, 0.2); /* Light blue border to match website */
}

/* Thinking Indicator */
.thinking-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 20, 25, 0.7);
  color: rgba(226, 232, 240, 0.7);
  border: 1px solid rgba(96, 165, 250, 0.2); /* Light blue border to match website */
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  margin-right: auto;
  animation: bubbleFloat 0.3s ease-out;
}

.thinking-dots {
  display: flex;
  gap: 3px;
}

.thinking-dot {
  width: 6px;
  height: 6px;
  background: rgba(96, 165, 250, 0.8); /* Light blue to match website accent */
  border-radius: 50%;
  animation: thinkingPulse 1.2s ease-in-out infinite;
}

.thinking-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.thinking-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes thinkingPulse {
  0%, 80%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  40% {
    opacity: 1;
    transform: scale(1.2);
  }
}





.fallback {
  text-align: center;
  padding: 16px;
  background: rgba(15, 20, 25, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(74, 85, 104, 0.2);
  color: rgba(226, 232, 240, 0.7);
  font-size: 14px;
}

.fallback a {
  color: rgba(96, 165, 250, 0.8); /* Light blue to match website accent */
  text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .bot-container {
    margin: 16px 0;
    padding: 16px;
    border-radius: 16px;
    max-width: 100%;
  }
  
  .knight-avatar-section {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 300px;
  }
  
  .knight-avatar {
    width: 64px;
    height: 64px;
  }
  
  .knight-intro {
    text-align: center;
  }
  
  .knight-intro h3 {
    font-size: 16px;
    margin-bottom: 6px;
  }
  
  .knight-intro p {
    font-size: 13px;
  }
  

  
  .input-section {
    width: 100%;
  }
  
  .bubbles-area {
    height: 220px;
    max-width: 300px;
  }
  
  .bubble {
    max-width: 85%;
  }
}