/* Botão flutuante */
#chat-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ff9900;
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: background 0.3s;
  z-index: 9999;
}
#chat-btn:hover { background: #e68a00; }

/* Pop-up do chat */
#chat-popup {
  display: none; /* aberto via JS */
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  background: #ffe0b3; /* laranja clarinho */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  font-family: Arial, sans-serif;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
  z-index: 9998;
}
@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Cabeçalho */
#chat-header {
  background: #ff9900;
  color: white;
  padding: 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#chat-header button {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

/* Tela de login */
#chat-login {
  padding: 15px;
}
#chat-login input {
  width: 100%;
  margin: 5px 0;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
#login-btn {
  width: 100%;
  background: #ff9900;
  color: white;
  border: none;
  padding: 10px;
  margin-top: 8px;
  border-radius: 6px;
  cursor: pointer;
}
#login-btn:hover { background: #e68a00; }

/* Caixa de mensagens */
#chat-box {
  display: flex;
  flex-direction: column;
  height: 350px;
}
#chat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #fff3e0; /* laranja bem clarinho */
}
#chat-messages .msg {
  margin: 8px 0;
  padding: 8px;
  border-radius: 8px;
  max-width: 80%;
}
#chat-messages .user {
  background: #ff9900;
  color: white;
  margin-left: auto;
}
#chat-messages .bot {
  background: #ffd699;
  margin-right: auto;
}

/* Área de input */
#chat-input {
  display: flex;
  border-top: 1px solid #ddd;
  background: #ffe0b3;
}
#chat-input input {
  flex: 1;
  border: none;
  padding: 10px;
  outline: none;
}
#send-btn {
  background: #ff9900;
  border: none;
  color: white;
  padding: 10px 15px;
  cursor: pointer;
}
#send-btn:hover { background: #e68a00; }
