/* ===============================
   BOTÃO FLUTUANTE
================================ */
#chatbot-button {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #2563eb;
  color: #fff;
  font-size: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 15px rgba(0,0,0,.25);
  z-index: 9999;
}

/* ===============================
   CONTAINER DO CHAT
================================ */
#chatbot-container {
  position: fixed;
  bottom: 95px;
  right: 25px;
  width: 360px;
  max-width: 95%;
  height: 520px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  font-family: inherit;
}

/* ===============================
   HEADER
================================ */
.chat-header {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header .title {
  line-height: 1.2;
}

.chat-header .title span {
  font-size: 12px;
  opacity: .85;
}

.chat-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* ===============================
   MENSAGENS
================================ */
.chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: #f4f6f8;
}

.bot-message,
.user-message {
  padding: 10px 14px;
  border-radius: 14px;
  margin-bottom: 10px;
  max-width: 80%;
  font-size: 14px;
  line-height: 1.4;
}

.bot-message {
  background: #e1eaff;
  color: #000;
}

.user-message {
  background: #2563eb;
  color: #fff;
  margin-left: auto;
}

/* ===============================
   AÇÕES RÁPIDAS
================================ */
.quick-actions {
  margin-top: 5px;
}

.quick-actions button {
  background: #ffffff;
  border: 1px solid #2563eb;
  color: #2563eb;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  margin: 4px 4px 0 0;
  cursor: pointer;
}

/* ===============================
   INPUT
================================ */
.chat-input {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ddd;
  background: #fff;
}

.chat-input input {
  flex: 1;
  border: none;
  padding: 10px;
  font-size: 14px;
  outline: none;
}

.chat-input button {
  background: #2563eb;
  border: none;
  color: #fff;
  padding: 0 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 480px) {
  #chatbot-container {
    right: 2.5%;
    bottom: 95px;
    height: 70vh;
  }
}
