/* ==============================
   🎭 Chat Académico Zoe - Estilo 2.1
   ============================== */
#chat-academico {
  background: #f8faff;
  border: 1px solid #ccd;
  border-radius: 12px;
  padding: 24px;
  max-width: 720px;
  margin: 30px auto;
  font-family: "Lato", sans-serif;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Caja de chat */
#chat-box {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 10px;
  height: 320px;
  overflow-y: auto;
  padding: 12px;
  margin-bottom: 12px;
  scroll-behavior: smooth;
}

/* Burbujas */
.user, .bot {
  margin: 8px 0;
  padding: 10px 14px;
  border-radius: 12px;
  line-height: 1.4;
  max-width: 85%;
}

.user {
  background: #e3f2fd;
  color: #0d47a1;
  margin-left: auto;
  text-align: right;
  box-shadow: 1px 1px 3px rgba(13, 71, 161, 0.1);
}

.bot {
  background: #f1f8e9;
  color: #1b5e20;
  margin-right: auto;
  box-shadow: 1px 1px 3px rgba(27, 94, 32, 0.1);
}

.bot.error {
  background: #ffecec;
  color: #a00;
}

/* Campos y controles */
textarea {
  width: 100%;
  height: 70px;
  margin-top: 5px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  resize: none;
  font-size: 14px;
}

select, button {
  margin: 5px 0;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s ease;
}

/* Botones principales */
#iniciar-chat {
  background: #1565c0;
  color: white;
  margin-top: 8px;
}
#iniciar-chat:hover {
  background: #0d47a1;
}

#generar-conflicto {
  background: #7e57c2;
  color: white;
  margin-left: 6px;
}
#generar-conflicto:hover {
  background: #5e35b1;
}

#chat-send {
  background: #388e3c;
  color: white;
  float: right;
}
#chat-send:hover {
  background: #2e7d32;
}

/* Etiquetas y separadores */
label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  color: #333;
}
hr {
  border: 0;
  border-top: 1px solid #ccc;
  margin: 16px 0;
}

/* Responsive */
@media (max-width: 600px) {
  #chat-academico {
    padding: 16px;
  }
  #chat-box {
    height: 260px;
  }
  .user, .bot {
    max-width: 95%;
    font-size: 14px;
  }
}