/* Intelligent Chatbot Enhanced Styles */

/* Typing Indicator Animation */
.typing-indicator {
  display: inline-flex;
  align-items: center;
  padding: 15px 20px !important;
}

.typing-indicator span {
  height: 8px;
  width: 8px;
  background-color: #999;
  border-radius: 50%;
  display: inline-block;
  margin: 0 3px;
  animation: bounce 1.3s linear infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: -1.1s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: -0.9s;
}

@keyframes bounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
}

/* Confidence Badges */
.confidence-badge {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 12px;
  margin-top: 10px;
  display: inline-block;
}

.confidence-badge.high {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.confidence-badge.medium {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.confidence-badge i {
  margin-right: 5px;
}

/* Response Content */
.response-content {
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Suggestions and Alternatives Sections */
.suggestions-section,
.alternatives-section {
  margin-top: 15px;
  padding: 12px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid #336c4e;
}

.alternatives-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  font-size: 13px;
}

/* Suggestion Buttons */
.suggestion-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 15px;
  margin: 8px 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  color: #333;
}

.suggestion-btn:hover {
  background-color: #336c4e;
  color: white;
  border-color: #336c4e;
  transform: translateX(5px);
}

.suggestion-btn:active {
  transform: translateX(3px);
}

/* Contact Support Button */
.contact-support-btn {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 15px;
  background-color: #336c4e;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.contact-support-btn:hover {
  background-color: #28593e;
  transform: scale(1.05);
}

.contact-support-btn i {
  margin-right: 8px;
}

/* Chat Bubble Enhancements */
.chat-bubble.you {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-bubble.me {
  background-color: #336c4e;
  color: white;
}

/* Smooth Scrolling */
.chat-body {
  scroll-behavior: smooth;
}

/* Loading State */
.chat-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .suggestion-btn {
    padding: 10px 12px;
    font-size: 13px;
  }

  .confidence-badge {
    font-size: 11px;
    padding: 4px 10px;
  }
}
