body {
  background: #0d0d0d;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.chat-container {
  background: linear-gradient(145deg, #1a001f, #0e0010);
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(255, 0, 110, 0.6),
              inset 0 0 10px rgba(114, 9, 183, 0.5);
  padding: 20px;
  width: 400px;
  max-width: 95%;
  display: flex;
  flex-direction: column;
}

.chat-container h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  color: #ff006e;
  text-align: center;
  margin-bottom: 12px;
  text-shadow: 0 0 8px rgba(255, 0, 110, 0.8);
}

#chat-box {
  flex: 1;
  background: #111;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  overflow-y: auto;
  max-height: 400px;
  box-shadow: inset 0 0 10px rgba(255, 0, 110, 0.3),
              inset 0 0 6px rgba(123, 44, 191, 0.4);
}

/* Mensajes generales */
.msg {
  margin: 6px 0;
  padding: 8px 12px;
  border-radius: 10px;
  max-width: 75%;
  word-wrap: break-word;
  font-size: 0.9rem;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

/* Usuario */
.msg.user {
  background: linear-gradient(145deg, #ff006e, #d63384);
  color: #fff;
  align-self: flex-end;
  margin-left: auto;
  box-shadow: 0 0 8px rgba(255, 0, 110, 0.8);
}

/* Admin */
.msg.admin {
  background: linear-gradient(145deg, #7209b7, #560bad);
  color: #fff;
  align-self: flex-start;
  margin-right: auto;
  box-shadow: 0 0 8px rgba(114, 9, 183, 0.8);
}

.msg small {
  display: block;
  font-size: 0.7rem;
  opacity: 0.7;
  margin-top: 4px;
  text-align: right;
}

/* Formulario */
#chat-form {
  display: flex;
  gap: 8px;
}

#chat-form input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  outline: none;
  background: #222;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: inset 0 0 6px rgba(255, 0, 110, 0.4);
}

#chat-form button {
  background: linear-gradient(145deg, #ff006e, #d63384, #7209b7);
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 0 8px rgba(255, 0, 110, 0.7),
              0 0 12px rgba(114, 9, 183, 0.7);
}

#chat-form button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255, 0, 110, 0.9),
              0 0 16px rgba(114, 9, 183, 0.9);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
