/* CSS Document */

/* Custom gradient for header */
.bg-gradient-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Chat Messages Styling */
#chatMessages {
  scroll-behavior: smooth;
}

/* User Message */
.message-user {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
  animation: fadeIn 0.3s ease-in;
}

.message-user .message-bubble {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 1rem 1rem 0 1rem;
  max-width: 80%;
  word-wrap: break-word;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Bot Message */
.message-bot {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1rem;
  animation: fadeIn 0.3s ease-in;
}

.message-bot .message-bubble {
  background: white;
  color: #333;
  padding: 0.75rem 1rem;
  border-radius: 1rem 1rem 1rem 0;
  max-width: 80%;
  word-wrap: break-word;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

/* Quick Reply Buttons */
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.quick-reply-btn {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  border-radius: 1rem;
  border: 2px solid #667eea;
  background: white;
  color: #667eea;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-reply-btn:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

/* Typing Indicator Animation */
.typing-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #667eea;
  margin: 0 2px;
  animation: typingAnimation 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingAnimation {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Message timestamp */
.message-time {
  font-size: 0.7rem;
  color: #999;
  margin-top: 0.25rem;
}

/* Scrollbar styling */
#chatMessages::-webkit-scrollbar {
  width: 6px;
}

#chatMessages::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#chatMessages::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

#chatMessages::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Voice button active state */
.voice-listening {
  background: #dc3545 !important;
  color: white !important;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

div.modal-body.p-0.d-flex.flex-column {
}
