
/* === chatbot.css v1.0 - Conversacional moderno +Performance === */

#chatbot-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 350px;
  max-width: 100%;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Segoe UI', sans-serif;
  transition: opacity 0.3s ease;
}

#chatbot-header {
  background-color: #b30000;
  color: #fff;
  padding: 10px 16px;
  font-weight: bold;
  font-size: 16px;
}

#chatbot-messages {
  padding: 12px;
  height: 320px;
  overflow-y: auto;
  background-color: #f9f9f9;
}

.chatbot-message {
  max-width: 90%;
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.chatbot-message.bot {
  background-color: #eeeeee;
  color: #111;
  border-top-left-radius: 0;
  align-self: flex-start;
}

.chatbot-message.user {
  background-color: #b30000;
  color: #fff;
  border-top-right-radius: 0;
  align-self: flex-end;
}

#chatbot-input {
  display: flex;
  border-top: 1px solid #ccc;
  background: #fff;
}

#chatbot-input input {
  flex: 1;
  border: none;
  padding: 12px;
  font-size: 14px;
  border-radius: 0;
}

#chatbot-input button {
  background-color: #b30000;
  border: none;
  color: #fff;
  padding: 0 16px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

#chatbot-input button:hover {
  background-color: #990000;
}

#chatbot-icon {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background-color: #b30000;
  color: #fff;
  width: 50px;
  height: 50px;
  font-size: 24px;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 9999;
}

@media (max-width: 600px) {
  #chatbot-container {
    width: 95%;
    right: 2.5%;
    bottom: 70px;
  }

  #chatbot-messages {
    height: 250px;
  }
}

