/* seo-style.css */
#seo-bot {
  width: 100%;
  max-width: 800px;
  margin: 40px auto;
  border-radius: 16px;
  overflow: hidden;
  font-family: 'Poppins', Arial, sans-serif;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  height: 600px; /* vaste hoogte */
}

/* header uitgezet */
#seo-bot .chat-header { display: none; }

#seo-bot .chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#seo-bot .bot-message-container {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
}

#seo-bot .bot-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}

#seo-bot .message.bot {
  align-self: flex-start;
  background: #e5e5ea;
  color: #000;
  padding: 12px 16px;
  border-radius: 16px 16px 16px 0;
  max-width: 75%;
  font-size: 16px;
  line-height: 1.5;
}

#seo-bot .message.user {
  align-self: flex-end;
  background: #0078ff;
  color: #fff;
  padding: 12px 16px;
  border-radius: 16px 16px 0 16px;
  max-width: 75%;
  font-size: 16px;
  line-height: 1.5;
}

/* NIEUW: klikbare links in bot messages */
#seo-bot .message.bot a {
  text-decoration: underline;
  font-weight: 500;
  word-break: break-word;
}
#seo-bot .message.bot a:hover { text-decoration: none; }

/* inputbalk */
#seo-bot .chat-input {
  padding: 12px;
  background: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  gap: 10px;
  align-items: center;
}

#seo-bot .chat-input textarea {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 12px 16px;
  font-size: 15px;
  resize: none;
  outline: none;
  font-family: inherit;
}

#seo-bot .chat-input button {
  background: #4CAF50;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
  font-size: 16px;
}
#seo-bot .chat-input button:hover { background: #28a745; }

/* Typindicator (toon links met avatar-ruimte) */
#seo-bot .typing-indicator {
  display: flex;
  gap: 4px;
  align-self: flex-start;
  padding-left: 54px;   /* uitlijnen met bot-avatar */
  margin: 2px 0 8px 0;
  min-height: 16px;     /* zorgt dat hij zichtbaar ruimte heeft */
}

#seo-bot .typing-indicator .dot {
  width: 8px;
  height: 8px;
  background: #ccc;
  border-radius: 50%;
  animation: blink 1.4s infinite both;
}
#seo-bot .typing-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
#seo-bot .typing-indicator .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 80%, 100% { opacity: 0.3; }
  40% { opacity: 1; }
}

/* rechts/links uitlijning */
#seo-bot .message.user { margin-left: auto; }
#seo-bot .message.bot { margin-right: auto; }
