/* /www/wwwroot/autoescolazn.com.br/static/chatbot.css */

/* BOTÃO FLUTUANTE */
#chat-float-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: #f2c300;
  border: 3px solid #111;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

#chat-float-btn:hover { transform: scale(1.1); }

#chat-float-btn img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* JANELA DO CHAT */
#chat-window {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 350px;
  height: 500px;
  max-width: 90vw;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.4);
  display: none; /* Inicia escondido */
  flex-direction: column;
  overflow: hidden;
  z-index: 10000;
  font-family: Arial, sans-serif;
  border: 1px solid #ddd;
}

/* HEADER */
#chat-header {
  background: #111;
  color: #fff;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-info { display: flex; align-items: center; gap: 10px; }

#chat-header img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid #f2c300;
}

#chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* MENSAGENS */
#chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
}

.msg {
  max-width: 85%;
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.user {
  background: #f2c300;
  color: #111;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.bot {
  background: #eee;
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

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

#chat-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
}

#chat-input button {
  background: #111;
  color: #fff;
  border: none;
  padding: 0 15px;
  margin-left: 8px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}