/**
 * GreenLife Chatbot Widget - Premium Simplified Design
 * 
 * Features:
 * 1. Clean, minimal card-based design
 * 2. Simplified color scheme with purple accents
 * 3. Subtle animations
 * 4. Professional, premium feel
 * 5. Fully responsive for tablet and mobile
 * 
 * Elementor Compatibility:
 * This widget includes defensive CSS to prevent Elementor's global styles from affecting the chat interface.
 */

/* Main widget container */
#greenlife-chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

/* ===== ELEMENTOR COMPATIBILITY FIXES ===== */
/* Prevent Elementor's global styles from affecting the chat widget */

/* Force box-sizing for all elements */
#greenlife-chatbot *,
#greenlife-chatbot *::before,
#greenlife-chatbot *::after {
  box-sizing: border-box !important;
}

/* Stop Elementor link hover from overriding chat colors */
#greenlife-chatbot a,
#greenlife-chatbot a:link,
#greenlife-chatbot a:visited {
  color: inherit !important;
  text-decoration: none !important;
}

#greenlife-chatbot a:hover,
#greenlife-chatbot a:focus {
  color: inherit !important;
  text-decoration: underline !important;
}

/* Keep button styles intact - override Elementor button styles */
#greenlife-chatbot button {
  background: var(--gl-btn-bg, #4CAF50) !important;
  color: var(--gl-btn-fg, #fff) !important;
  border: none !important;
  cursor: pointer !important;
  outline: none !important;
}

#greenlife-chatbot button:hover {
  filter: brightness(1.05) !important;
}

/* Prevent Elementor global color variables from affecting chat */
#greenlife-chatbot {
  --e-global-color-primary: initial !important;
  --e-global-color-secondary: initial !important;
  --e-global-color-text: initial !important;
  --e-global-color-accent: initial !important;
}

/* Ensure all text maintains intended color */
#greenlife-chatbot .message-text,
#greenlife-chatbot .header-title,
#greenlife-chatbot .header-subtitle,
#greenlife-chatbot .status-text {
  color: inherit !important;
}

/* Override any Elementor typography styles */
#greenlife-chatbot {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* Ensure inputs don't inherit Elementor styles */
#greenlife-chatbot input,
#greenlife-chatbot input[type="text"],
#greenlife-chatbot .chat-input {
  background: #f8f9fa !important;
  color: #333 !important;
  font-family: inherit !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

#greenlife-chatbot input:focus {
  background: white !important;
}

/* Keep message content colors as intended */
#greenlife-chatbot .user-message .message-content {
  background: #4CAF50 !important;
  color: white !important;
}

#greenlife-chatbot .bot-message .message-content {
  background: white !important;
  color: #333 !important;
  border-color: #e8e8e8 !important;
}

/* Keep article links with intended color */
#greenlife-chatbot .article-link {
  color: #4CAF50 !important;
}

#greenlife-chatbot .article-link:hover {
  color: #388E3C !important;
}

/* Keep action buttons styled correctly */
#greenlife-chatbot .action-button {
  color: #4CAF50 !important;
  border-color: #4CAF50 !important;
  background: white !important;
}

#greenlife-chatbot .action-button:hover {
  background: linear-gradient(135deg, #66BB6A, #2E7D32) !important;
  color: white !important;
}

/* Keep question buttons styled correctly */
#greenlife-chatbot .question-button {
  color: #4CAF50 !important;
  border-color: #4CAF50 !important;
  background: white !important;
}

#greenlife-chatbot .question-button:hover {
  background: #4CAF50 !important;
  color: white !important;
}

/* Keep followup links styled correctly */
#greenlife-chatbot .followup-link {
  color: #4CAF50 !important;
}

#greenlife-chatbot .followup-link:hover {
  color: #388E3C !important;
}

/* Keep citations styled correctly */
#greenlife-chatbot .citations-container a {
  color: #4CAF50 !important;
}

#greenlife-chatbot .citations-container a:hover {
  color: #388E3C !important;
}

/* Keep quick action buttons styled correctly */
#greenlife-chatbot .quick-action-button {
  background: white !important;
  border-color: #e0e0e0 !important;
  color: #4CAF50 !important;
}

#greenlife-chatbot .quick-action-button:hover {
  border-color: #4CAF50 !important;
  background: #fafafa !important;
}

/* Keep feedback buttons styled correctly */
#greenlife-chatbot .yes-btn {
  background: #4CAF50 !important;
  color: white !important;
}

#greenlife-chatbot .yes-btn:hover {
  background: #45a049 !important;
}

#greenlife-chatbot .no-btn {
  background: #ff5757 !important;
  color: white !important;
}

#greenlife-chatbot .no-btn:hover {
  background: #ee4444 !important;
}

/* ===== END ELEMENTOR COMPATIBILITY FIXES ===== */

/* Chat Bubble */
.chat-bubble {
  width: 60px;
  height: 60px;
  background: #4CAF50;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  /* Button reset styles */
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-decoration: none;
}

.chat-bubble:hover {
  background: #45a049;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.chat-bubble.active {
  background: #45a049;
}

.bubble-content {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  position: relative;
}

.bubble-icon {
  width: 24px;
  height: 24px;
  color: white;
  position: relative;
  z-index: 1;
  stroke: currentColor;
  stroke-width: 0;
}

/* Speech Bubble Tooltip */
.speech-bubble {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: #4CAF50;
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  border: 1px solid #388E3C;
  z-index: 1000;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #4CAF50;
}

.speech-bubble.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.speech-bubble-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 18px;
  height: 18px;
  background: white;
  color: #4CAF50;
  border: 2px solid #4CAF50;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  transition: all 0.2s ease;
}

.speech-bubble-close:hover {
  background: #f0f0f0;
  transform: scale(1.1);
}

/* Chat Panel */
.chat-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 380px;
  height: 600px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border: 1px solid #e8e8e8;
}

.chat-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Chat Header */
.chat-header {
  background: white;
  color: #333;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  border: 2px solid rgba(76, 175, 80, 0.3);
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.2);
}

.header-text {
  display: flex;
  flex-direction: column;
}

.header-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 2px;
  color: #333;
}

.header-subtitle {
  font-size: 12px;
  font-weight: 400;
  color: #888;
  line-height: 1.2;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.status-dot.online {
  background: #4CAF50;
  box-shadow: 0 0 4px rgba(76, 175, 80, 0.4);
}

.status-dot.offline {
  background: #f44336;
  box-shadow: 0 0 4px rgba(244, 67, 54, 0.4);
}

.status-text {
  font-size: 10px;
  font-weight: 500;
  color: #999;
}

.close-btn {
  background: transparent;
  border: none;
  color: #888;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: #f5f5f5;
  color: #333;
}

.close-btn:active {
  background: #eeeeee;
}

/* Quick Action Buttons */
.quick-actions-container {
  margin-top: 16px;
  padding: 0;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.quick-action-button {
  background: white;
  border: 1px solid #e0e0e0;
  color: #4CAF50;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.quick-action-button:hover {
  border-color: #4CAF50;
  background: #fafafa;
}

.quick-action-button:active {
  transform: scale(0.98);
}

.action-icon {
  font-size: 18px;
  display: block;
}

.action-text {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}

/* Chat Messages Area */
.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f8f9fa;
}

/* Custom Scrollbar */
.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: #b0b0b0;
}

/* Message Styling */
.message {
  margin-bottom: 16px;
  animation: messageSlideIn 0.3s ease-out;
}

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

.message-content {
  padding: 12px 16px;
  border-radius: 12px;
  max-width: 80%;
  word-wrap: break-word;
  position: relative;
}

.user-message {
  display: flex;
  justify-content: flex-end;
}

.user-message .message-content {
  background: #4CAF50;
  color: white;
}

.bot-message {
  display: flex;
  justify-content: flex-start;
}

.bot-message .message-content {
  background: white;
  color: #333;
  border: 1px solid #e8e8e8;
  padding-bottom: 16px;
}

/* Message text formatting */
.message-text {
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}

.message-text strong {
  font-weight: 600;
}

.message-text a {
  color: #4CAF50;
  text-decoration: underline;
}

.message-text a:hover {
  color: #388E3C;
}

.message-time {
  font-size: 10px;
  opacity: 0.6;
  margin-top: 4px;
  text-align: right;
}

.user-message .message-time {
  text-align: left;
}

/* Chat Input Area */
.chat-input-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: white;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}

.chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  background: #f8f9fa;
  font-weight: 400;
  color: #333;
}

.chat-input:focus {
  border-color: #4CAF50;
  background: white;
}

.chat-input::placeholder {
  color: #999;
  font-weight: 400;
}

.send-btn {
  width: 36px;
  height: 36px;
  background: #4CAF50;
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  font-size: 16px;
}

.send-btn:hover:not(:disabled) {
  background: #388E3C;
  transform: scale(1.05);
}

.send-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.send-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Typing Indicator */
.typing-indicator .typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.typing-indicator .typing-dots span {
  width: 8px;
  height: 8px;
  background: #999;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-indicator .typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-indicator .typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typingBounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* Responsive Design for Tablet */
@media (max-width: 768px) {
  #greenlife-chatbot {
    bottom: 16px;
    right: 16px;
  }

  .chat-panel {
    width: 360px;
    height: 550px;
  }

  .chat-bubble {
    width: 56px;
    height: 56px;
  }

  .bubble-icon {
    font-size: 22px;
  }
}

/* Responsive Design for Mobile */
@media (max-width: 480px) {
  #greenlife-chatbot {
    bottom: 12px;
    right: 12px;
  }

  .chat-panel {
    width: calc(100vw - 24px);
    right: 12px;
    height: calc(100vh - 80px);
    max-height: 600px;
    border-radius: 12px;
  }
  
  .chat-bubble {
    width: 52px;
    height: 52px;
  }
  
  .bubble-icon {
    font-size: 20px;
  }

  .chat-header {
    padding: 12px 16px;
  }

  .header-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .header-title {
    font-size: 14px;
  }

  .header-subtitle {
    font-size: 11px;
  }
  
  .quick-actions-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  
  .quick-action-button {
    padding: 8px 10px;
  }
  
  .action-icon {
    font-size: 16px;
  }
  
  .action-text {
    font-size: 10px;
  }

  .message-content {
    max-width: 85%;
    padding: 10px 14px;
  }

  .chat-messages {
    padding: 16px;
  }

  .chat-input-container {
    padding: 10px 12px;
  }

  .chat-input {
    padding: 8px 12px;
    font-size: 14px;
  }

  .send-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100000;
}

.skip-link:focus {
  left: 50%;
  transform: translateX(-50%);
  top: 20px;
  background: #4CAF50;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Focus states for accessibility */
.chat-bubble:focus,
.close-btn:focus,
.send-btn:focus,
.chat-input:focus,
.quick-action-button:focus,
.feedback-btn:focus,
.speech-bubble-close:focus,
.action-button:focus,
.question-button:focus,
.followup-link:focus,
.action-link:focus {
  outline: 2px solid #4CAF50;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.chat-bubble:focus-visible,
.close-btn:focus-visible,
.send-btn:focus-visible,
.chat-input:focus-visible,
.quick-action-button:focus-visible,
.feedback-btn:focus-visible,
.speech-bubble-close:focus-visible,
.action-button:focus-visible,
.question-button:focus-visible,
.followup-link:focus-visible,
.action-link:focus-visible {
  outline: 2px solid #388E3C;
  outline-offset: 2px;
}

/* Article Links Styling */
.article-links-container {
  margin-top: 8px;
  padding: 12px;
  background: #f8f9fa;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
}

.article-links-container h3 {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  margin-top: 0;
}

.article-link {
  display: block;
  padding: 6px 0;
  color: #4CAF50;
  text-decoration: underline;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.article-link:hover {
  color: #388E3C;
  text-decoration: none;
}

.article-link:not(:last-child) {
  border-bottom: 1px solid #e8e8e8;
}

/* Feedback Buttons Styling */
.feedback-container {
  margin-top: 8px;
  padding: 12px;
  background: #f8f9fa;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
}

.feedback-container p {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: #333;
  font-weight: 500;
}

.feedback-buttons {
  display: flex;
  gap: 8px;
}

.feedback-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.yes-btn {
  background: #4CAF50;
  color: white;
}

.yes-btn:hover {
  background: #45a049;
}

.no-btn {
  background: #ff5757;
  color: white;
}

.no-btn:hover {
  background: #ee4444;
}

.feedback-btn:active {
  transform: scale(0.98);
}

/* Structured Response Elements */
.bullets-container {
  margin: 8px 0;
}

.bullets-container ul {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc;
}

.bullets-container li {
  margin: 4px 0;
  color: #555;
}

.buttons-container {
  margin: 12px 0 4px 0;
  padding: 15px 0 0 0;
}

.buttons-container h4 {
  margin: 0 0 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.action-button {
  display: inline-block;
  padding: 5px 15px;
  background: white;
  color: #4CAF50;
  text-decoration: none !important;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 2px solid;
  border-image: linear-gradient(135deg, #66BB6A, #2E7D32) 1;
  text-align: center;
  cursor: pointer;
  background-clip: padding-box;
}

.action-button {
  background: linear-gradient(white, white), 
              linear-gradient(135deg, #66BB6A 0%, #4CAF50 50%, #2E7D32 100%);
  background-clip: padding-box, border-box;
  -webkit-background-clip: padding-box, border-box;
  border: 2px solid transparent;
  color: #4CAF50;
  text-decoration: none !important;
}

.action-button:hover {
  background: linear-gradient(135deg, #66BB6A, #2E7D32);
  color: white !important;
  border-image: none;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

.prominent-button {
  background: #4CAF50;
  color: white !important;
  border-color: #4CAF50;
}

.prominent-button:hover {
  background: #388E3C;
  color: white !important;
}

/* Action List Styling (for list-style buttons) */
.buttons-container-list {
  margin: 12px 0 4px 0;
  padding: 0;
}

.action-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
}

.action-list-item {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #e8e8e8;
}

.action-list-item:last-child {
  border-bottom: none;
}

.action-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.action-link:hover {
  background: #f0f0f0;
}

.action-link-text {
  flex: 1;
}

.action-link-chevron {
  font-size: 18px;
  color: #999;
  margin-left: 8px;
}

/* Question Button Styling */
.question-button {
  display: inline-block;
  padding: 8px 12px;
  background: white;
  color: #4CAF50 !important;
  text-decoration: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid #4CAF50;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
}

.question-button:hover {
  background: #4CAF50;
  border-color: #4CAF50;
  color: white !important;
}

.question-button:active {
  transform: scale(0.98);
}

.followups-container {
  margin: 8px 0;
  padding: 0;
}

.followups-container h4 {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: #333;
  font-weight: 600;
}

.followups-container ul {
  margin: 0;
  padding-left: 16px;
  list-style-type: none;
}

.followups-container li {
  margin: 4px 0;
}

.followup-link {
  color: #4CAF50;
  text-decoration: underline;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.followup-link:hover {
  color: #388E3C;
}

.citations-container {
  margin: 8px 0;
  padding: 0;
}

.citations-container h4 {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: #333;
  font-weight: 600;
}

.citations-container ul {
  margin: 0;
  padding-left: 16px;
  list-style-type: none;
}

.citations-container li {
  margin: 4px 0;
}

.citations-container a {
  color: #4CAF50;
  text-decoration: underline;
  font-size: 13px;
  transition: color 0.2s ease;
}

.citations-container a:hover {
  color: #388E3C;
}

/* Safety Note Styling */
.safety-note {
  margin: 8px 0;
  padding: 10px 12px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  color: #856404;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

/* Better spacing between sections in consolidated messages */
.bullets-container,
.buttons-container,
.followups-container,
.citations-container,
.safety-note {
  margin-top: 12px;
}

.bullets-container:first-child,
.buttons-container:first-child,
.followups-container:first-child,
.citations-container:first-child,
.safety-note:first-child {
  margin-top: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .chat-bubble {
    border: 3px solid #000 !important;
  }
  
  .chat-panel {
    border: 3px solid #000 !important;
  }
  
  .message-content {
    border: 2px solid #000 !important;
  }
  
  .article-link,
  .action-button,
  .question-button,
  .followup-link {
    border: 2px solid #000 !important;
  }
  
  .chat-input {
    border: 2px solid #000 !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


