
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Orbitron', sans-serif;
  background-color: #0a0f1d;
  color: #e0e0e0;
  background-image: radial-gradient(circle, #111 1px, transparent 1px);
  background-size: 30px 30px;
  min-height: 100vh;
  background-image: url('img/fond.jpg');
  background-size: cover;
  background-repeat: no-repeat;
}

.container, .form-container {
  width: 320px;
  margin: 100px auto;
  background: #131c33;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 0 20px #00ffff88;
  border: 2px solid #00f7ff;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #00f7ff;
  text-shadow: 0 0 5px #00f7ff, 0 0 10px #00f7ff;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  background-color: #0e1324;
  border: 1px solid #00f7ff;
  border-radius: 8px;
  color: #fff;
  outline: none;
  font-family: 'Orbitron', sans-serif;
}

input[type="submit"],
button {
  width: 100%;
  padding: 12px;
  background-color: #00f7ff;
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease;
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 0 3px #00f7ff;
}

input[type="submit"]:hover,
button:hover {
  background-color: #0ff;
  box-shadow: 0 0 10px #00f7ff, 0 0 20px #00f7ff;
}

.link {
  text-align: center;
  margin-top: 15px;
}

.link a {
  color: #00f7ff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.link a:hover {
  color: #0ff;
  text-shadow: 0 0 5px #00f7ff;
}


.user-list {
  width: 260px;
  max-height: 400px;
  overflow-y: auto;
  background-color: #111828;
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 0 15px #00f7ff;
  position: fixed;
  top: 120px;
  right: 20px;
  color: #00f7ff;
  z-index: 1090;
}

.user-list h3 {
  margin-top: 0;
  text-align: center;
  font-size: 16px;
  color: #00f7ff;
  text-shadow: 0 0 5px #00f7ff;
  margin-bottom: 15px;
}

.user {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
  color: #00f7ff;
  transition: 0.3s ease;
}

.status {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 10px;
  box-shadow: 0 0 5px;
}

.status.online {
  background-color: #00ff00;
  box-shadow: 0 0 8px #00ff00;
}

.status.offline {
  background-color: #ff0000;
  box-shadow: 0 0 5px #666;
}

.user:hover {
  background-color: #1a243b;
  padding-left: 5px;
  border-radius: 6px;
}

.user-name {
  font-weight: 600;
}

.logout-button {
  position: fixed;
  top: 15px;
  right: 20px;
  padding: 8px 14px;
  width: 150px;
  background-color: #ff0066;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: 'Orbitron', sans-serif;
  cursor: pointer;
  font-size: 13px;
  box-shadow: 0 0 8px #ff0066;
  transition: 0.3s ease;
  z-index: 1000;
}

.logout-button:hover {
  background-color: #ff3388;
  box-shadow: 0 0 12px #ff66a3;
}


@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');


.school-map {
  width: 100%;
  height: 100vh;
  background-size: 90%;
  margin: 0 auto;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.toggle-users-button {
  position: fixed;
  top: 50px;
  right: 20px;
  padding: 8px 12px;
  width: 150px;
  background-color: #00f7ff;
  color: #000;
  font-weight: bold;
  border-radius: 6px;
  border: none;
  box-shadow: 0 0 8px #00f7ff;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  z-index: 999;
  transition: 0.3s;
}

.toggle-users-button:hover {
  background-color: #0ff;
  transform: scale(1.05);
}



.contenedor-home {
  position: absolute;
  top: 1%;
  left: 2%;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 0 20px #00ffff88;
  border: 2px solid #00f7ff;
  max-width: 300px;
}

.avatar {
  position: absolute;
  top: 70%;
  left: 50%;
  font-size: 32px;
  transition: top 0.1s, left 0.1s;
  z-index: 2;
}

.zona {
  position: absolute;
  text-decoration: none;
  width: 60px;
  height: 60px;
  background-color: rgba(0, 247, 255, 0.2);
  border: 5px solid #ff0000;
  border-radius: 300px;
  text-align: center;
  line-height: 60px;
  font-size: 28px;
  color: #ec1313;
  cursor: pointer;
  transition: 0.3s;
  z-index: 1;
}


.zona:hover {
  background-color: rgba(0, 247, 255, 0.4);
  transform: scale(1.1);
  
}

.control-escolar {
  top: 57%;
  left: 86.5%;
}

.informes {
  top: 78%;
  left: 6.9%;
  border-radius: 50%;
}

.asistente {
  top: 33.1%;
  left: 51.3%;
}

.aula1 {
  top: 60%;
  left:26.8%;
}


.user {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 255, 0.2);
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 10px;
  backdrop-filter: blur(3px);
  box-shadow: 0 0 8px rgba(0, 247, 255, 0.2);
  transition: background 0.3s ease, transform 0.2s ease;
}

.user:hover {
  background: rgba(0, 247, 255, 0.2);
  transform: scale(1.03);
}

.user .avatar {
  font-size: 28px;
  text-shadow: 0 0 3px #00f7ff;
}

.user-name {
  font-weight: bold;
  color: #00f7ff;
  font-size: 15px;
  text-shadow: 0 0 5px #00f7ff;
}

.mensaje-zona {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 247, 255, 0.9);
  color: #000;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  box-shadow: 0 0 10px #00f7ff;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 10;
}

.avatar.fade-out {
  animation: desaparecer 0.8s forwards;
}

@keyframes desaparecer {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.5); }
}

.chat-modal {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  background: #0e1324;
  border: 2px solid #00f7ff;
  border-radius: 16px;
  box-shadow: 0 0 15px #c2ec08e1;
  font-family: 'Orbitron', sans-serif;
  z-index: 9999;
  overflow: hidden;
}

.chat-header {
  background: linear-gradient(to right, #e4eaeb, #16496b);
  color: #000;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: bold;
  text-shadow: 0 0 3px #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header button {
  background: none;
  border: none;
  color: #000;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.chat-header button:hover {
  transform: scale(1.2);
}

.chat-mensajes {
  max-height: 240px;
  overflow-y: auto;
  padding: 12px;
  background: #111828;
  color: #66ff00;
  font-size: 14px;
  line-height: 1.4;
}


.chat-mensajes .yo {
  background: linear-gradient(135deg, #00ffe7, #00bcd4);
  padding: 10px 14px;
  border-radius: 16px 16px 0 16px;
  margin: 8px 0 8px auto;
  text-align: right;
  font-size: 14px;
  color: #000;
  box-shadow: 0 0 12px #00f7ff88;
  max-width: 80%;
  word-wrap: break-word;
}

.chat-mensajes .otro {
  background: linear-gradient(135deg, #2d2d2d, #3a3a3a);
  padding: 10px 14px;
  border-radius: 16px 16px 16px 0;
  margin: 8px auto 8px 0;
  text-align: left;
  font-size: 14px;
  color: #fff;
  box-shadow: 0 0 8px #444;
  max-width: 80%;
  word-wrap: break-word;
}


#mensajeTexto {
  width: 90%;
  height: 50px;
  margin: 10px auto 5px;
  display: block;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #00f7ff;
  background-color: #0e1324;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
}

#mensajeTexto::placeholder {
  color: #ccc;
}

.abrir-modal{
  width: 140px;
  position: absolute;
  right: 20px;
  top: 105px;
}

.chat-modal button {
  width: 90%;
  margin: 0 auto 12px;
  display: block;
  padding: 12px;
  background: #00f7ff;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s ease;
  box-shadow: 0 0 10px #00f7ff;
}

.chat-modal button:hover {
  background-color: #0ff;
  transform: scale(1.03);
}


.chat-modal {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  max-height: 500px;
  background-color: #1c1c2b;
  border: 2px solid #444;
  border-radius: 10px;
  padding: 10px;
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 9999;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  margin-bottom: 10px;
}

.chat-mensajes {
  flex: 1;
  overflow-y: auto;
  background-color: #2a2a3c;
  padding: 8px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.chat-modal input[type="text"] {
  padding: 6px;
  border-radius: 4px;
  border: none;
  margin-bottom: 5px;
}

.chat-modal button {
  background-color: #00bcd4;
  color: white;
  border: none;
  padding: 6px;
  border-radius: 5px;
  cursor: pointer;
}

.chat-modal button:hover {
  background-color: #0097a7;
}


.notificacion-popup {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #00f7ff;
  color: #000;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 0 15px #00f7ff;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  z-index: 10000;
  animation: aparecerNoti 0.5s ease;
  cursor: pointer;
  max-width: 300px;
}

@keyframes aparecerNoti {
  0% { transform: translateY(50px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}




