:root {
  --rosa-escuro: #c3858f;
  --preto: #222420;
  --rosa-claro: #EFBAD3;
  --fundo: #ffeaf4;
  --branco: #fff;
}

/* Botão flutuante com avatar */
.chatbot-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--branco);
  border: 2px solid var(--rosa-claro);
  border-radius: 50%;
  width: 65px;
  height: 65px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  overflow: hidden;
  z-index: 999;
  transition: 0.3s;
}

.chatbot-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chatbot-button:hover {
  transform: scale(1.1);
}

/* Janela do chat */
.chatbox {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 320px;
  background: var(--fundo);
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
  font-family: 'Poppins', sans-serif;
  border: 2px solid var(--rosa-claro);
}

/* Cabeçalho com avatar */
.chat-header {
  background: var(--rosa-escuro);
  color: white;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
}

.chat-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid var(--rosa-claro);
  object-fit: cover;
}

/* Área das mensagens */
.chat-messages {
  flex: 1;
  padding: 10px;
  height: 250px;
  overflow-y: auto;
  background: var(--fundo);
  display: flex;
  flex-direction: column;
}

/* Campo de texto */
.chat-input {
  display: flex;
  border-top: 1px solid var(--rosa-claro);
  background: #fff;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--preto);
}

.chat-input button {
  background: var(--rosa-escuro);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  transition: 0.3s;
}

.chat-input button:hover {
  background: var(--rosa-claro);
}

/* Balões de conversa */
.bot-message, .user-message {
  margin: 8px 0;
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 80%;
  line-height: 1.4;
  word-wrap: break-word;
  font-size: 14px;
}

.bot-message {
  background: #fff;
  border: 1px solid var(--rosa-claro);
  color: var(--preto);
  align-self: flex-start;
}

.user-message {
  background: var(--rosa-escuro);
  color: white;
  align-self: flex-end;
}
