/* ===========================================================
   Jeanee Chat CSS — Polished Alignment & Styling
   Version: 2025.10.22.1
   =========================================================== */
   
.help-btn {
  margin-left: 8px;
  background: #0073e6;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 0.8em;
  font-weight: bold;
  padding: 0 6px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.help-btn:hover {
  background: #005bb5;
  transform: scale(1.1);
}

   
 #jeaneeChatMessages a {
  color: #0073e6; /* Hustlemate Blue */
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0,115,230,0.2);
}

#jeaneeChatMessages a:hover {
  color: #005bb5; /* Slightly darker on hover */
  border-bottom: 1px solid rgba(0,115,230,0.5);
  text-decoration: underline;
}

#jeaneeChatMessages a:visited {
  color: #6c63ff; /* Muted purple tint for visited links */
}

/* Base reset */
.jeanee-root,
.jeanee-chat,
.jeanee-input,
.jeanee-header {
  box-sizing: border-box;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}
.jeanee-input textarea.jeanee-textarea {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
  line-height: 1.4;
  min-height: 42px;
  max-height: 200px;
}
.jeanee-input textarea.jeanee-textarea:focus {
  border-color: #0a1a3c;
}

/* Root container */
.jeanee-root {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65%;
  height: 85vh;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  transition: all 0.3s ease;
}

/* Header */
.jeanee-header {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 18px;
}

.jeanee-header img.jeanee-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ddd;
}

.jeanee-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #0a1a3c;
}

/* Chat area */
.jeanee-chat {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background: #f8fafc;
  scroll-behavior: smooth;
}

.jeanee-chat::-webkit-scrollbar {
  width: 6px;
}
.jeanee-chat::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

/* Message wrapper */
.msg {
  display: flex;
  align-items: flex-start;
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeInUp 0.35s ease forwards;
}

/* Jeanee (assistant) messages */
.msg.assistant {
  justify-content: flex-start;
}

.msg.assistant .avatar {
  display: block;
  width: 36px;
  height: 36px;
  margin-right: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.msg.assistant .bubble {
  background: #edf3fc;
  color: #0a1a3c;
  padding: 14px 18px;
  border-radius: 14px 14px 14px 0;
  max-width: 75%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  font-size: 0.97rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* User messages */
.msg.user {
  justify-content: flex-end;
}

.msg.user .avatar {
  display: none;
}

.msg.user .bubble {
  background: #e60023;
  color: #fff;
  padding: 14px 18px;
  border-radius: 14px 14px 0 14px;
  max-width: 70%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: right;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* System messages */
.msg.system {
  justify-content: center;
  font-size: 0.9rem;
  color: #9ca3af;
}

/* Typing dots */
.typing-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 3px;
  background: #0a1a3c;
  border-radius: 50%;
  opacity: 0.3;
  animation: typingDots 1.4s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDots {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

/* Input section */
.jeanee-input {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

.jeanee-input textarea {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 1rem;
  line-height: 1.5;
  resize: none;
  transition: border-color 0.2s ease;
  min-height: 46px;
  max-height: 150px;
  overflow-y: auto;
}
.jeanee-input textarea:focus {
  border-color: #0a1a3c;
}

.jeanee-input button {
  background: #e60023;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.jeanee-input button:hover {
  background: #c3001e;
}

/* Animation */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .jeanee-root {
    width: 92%;
    height: 90vh;
  }
}
