/* ========================================================= */
/* Jiangsu Wegree International Group - Modern UI Styling    */
/* ========================================================= */

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(21, 128, 61, 0.4), 0 0 30px rgba(16, 185, 129, 0.2);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 25px rgba(21, 128, 61, 0.7), 0 0 45px rgba(245, 158, 11, 0.35);
  }
}

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

.animate-pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

.animate-bounce-subtle {
  animation: bounceSubtle 3.5s ease-in-out infinite;
}

/* Chat bubble styling */
.chat-msg-user {
  background: linear-gradient(135deg, #15803d, #166534);
  color: #ffffff;
  padding: 0.65rem 0.9rem;
  border-radius: 1.1rem;
  border-top-right-radius: 0.25rem;
  font-size: 0.8125rem;
  max-width: 85%;
  align-self: flex-end;
  margin-left: auto;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.25);
  word-break: break-word;
}

.chat-msg-bot {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  padding: 0.75rem 1rem;
  border-radius: 1.1rem;
  border-top-left-radius: 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  word-break: break-word;
}

.chat-source-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 0.15rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

/* Markdown styling inside AI messages */
.chat-msg-bot h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.chat-msg-bot h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #15803d;
  margin-top: 0.4rem;
  margin-bottom: 0.2rem;
}

.chat-msg-bot strong {
  font-weight: 600;
  color: #0f172a;
}

.chat-msg-bot em {
  font-style: italic;
  color: #475569;
}

.chat-msg-bot ul {
  list-style-type: disc;
  padding-left: 1.25rem;
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
}

.chat-msg-bot li {
  margin-bottom: 0.2rem;
}

.chat-msg-bot code {
  background: #f1f5f9;
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
  font-family: monospace;
  font-size: 0.75rem;
  color: #047857;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
