/* Reset general */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', 'Inter', sans-serif;
  background-color: #121212;
  color: #f0f0f0;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1f1f1f;
  padding: 1rem 2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 10;
  position: sticky;
  top: 0;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
}

.navbar .logo img {
  height: 40px;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.navbar ul li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar ul li a:hover {
  color: #1db954;
}

/* HERO INICIO */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 80px);
  background: linear-gradient(120deg, #1e1e1e, #2a2a2a, #1e1e1e);
  color: #fff;
  text-align: center;
  padding: 2rem;
  animation: bgShift 20s ease infinite;
  background-size: 300% 300%;
}

@keyframes bgShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  background-color: #1db954;
  color: #fff;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn:hover {
  background-color: #17a143;
  transform: scale(1.03);
}

/* LOGIN CARD */
.background {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: radial-gradient(circle at center, #1f1f1f 0%, #121212 100%);
}

.login-card {
  background: #1e1e1e;
  border-radius: 12px;
  padding: 2.5rem;
  width: 90%;
  max-width: 360px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.login-card .logo {
  display: block;
  max-width: 100px;
  margin: 0 auto 1rem auto;
}

.login-card h2 {
  color: #ffffff;
  margin-bottom: 2rem;
}

.input-group {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  background-color: #2a2a2a;
  padding: 0.8rem;
  border-radius: 8px;
}

.input-group input {
  background: transparent;
  border: none;
  color: white;
  width: 100%;
  font-size: 1rem;
  outline: none;
}

.login-btn {
  background-color: #1db954;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.8rem;
  width: 100%;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.3s ease;
  cursor: pointer;
}

.login-btn:hover {
  background-color: #17a143;
}

/* FORMULARIOS */
.form-section {
  max-width: 700px;
  margin: 2rem auto;
  background-color: #1e1e1e;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.form-section h2 {
  color: #ffffff;
  text-align: center;
  margin-bottom: 1.5rem;
}

form label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  color: #ddd;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 0.7rem;
  margin-top: 0.5rem;
  background-color: #2a2a2a;
  color: white;
  border: 1px solid #666;
  border-radius: 8px;
  font-size: 1rem;
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: #1db954;
  box-shadow: 0 0 5px #1db95466;
}

form button {
  margin-top: 2rem;
  padding: 0.8rem 1.5rem;
  background-color: #1db954;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
}

form button:hover {
  background-color: #17a143;
}

form.form-admin {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* Botones personalizados */
.btn-crear {
  background-color: #1db954;
  color: white;
  border: none;
  padding: 0.7rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  width: fit-content;
}

.btn-crear:hover {
  background-color: #159b43;
}

.btn-eliminar {
  padding: 6px 12px;
  font-size: 0.9rem;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-eliminar:hover {
  background-color: #c0392b;
}

.col-acciones {
  text-align: center;
  vertical-align: middle;
}

/* TABLA */
table {
  margin: 0 auto;
  width: 90%;
  border-collapse: collapse;
  background-color: #1e1e1e;
  color: #f0f0f0;
  border: 1px solid #444;
}

th {
  background-color: #003b54;
  color: #fff;
  font-weight: bold;
}

th, td {
  padding: 10px;
  text-align: center;
  border: 1px solid #444;
}

/* Menú de Administración */
.admin-menu {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.admin-menu ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.admin-menu ul li {
  font-size: 1.1rem;
}

.admin-menu ul li a {
  color: #f0f0f0;
  text-decoration: none;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 8px;
  background-color: #2a2a2a;
  transition: background-color 0.3s, color 0.3s;
}

/* Resaltar el enlace seleccionado */
.admin-menu ul li a.selected,
.admin-menu ul li a:hover {
  background-color: #1db954;
  color: #fff;
}

/* Estilo de los botones de acción en tablas (Crear usuario, Crear estación) */
.btn-crear {
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  background-color: #1db954;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-crear:hover {
  background-color: #159b43;
}

/* Estilo de los botones eliminar */
.btn-eliminar {
  padding: 6px 12px;
  font-size: 0.9rem;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-eliminar:hover {
  background-color: #c0392b;
}

/* Agregar espacio entre formularios y tablas */
.form-section {
  margin-top: 2rem;
}

/* Diseño de tablas */
table {
  margin: 0 auto;
  width: 90%;
  border-collapse: collapse;
  background-color: #1e1e1e;
  color: #f0f0f0;
  border: 1px solid #444;
}

th {
  background-color: #003b54;
  color: #fff;
  font-weight: bold;
}

th, td {
  padding: 10px;
  text-align: center;
  border: 1px solid #444;
}

/* Mejorar visibilidad de las secciones en el panel de administración */
.form-section h2 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
}

/* Diseño responsivo para el menú */
@media (max-width: 768px) {
  .admin-menu {
    flex-direction: column;
    gap: 1rem;
  }

  .admin-menu ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}
#tablaTecnicos {
  width: 100%;
  border-collapse: collapse;
  background: #0f172a;
  color: white;
  font-size: 14px;
}

#tablaTecnicos th, #tablaTecnicos td {
  border: 1px solid #1e293b;
  padding: 12px;
  text-align: center;
  vertical-align: middle;
  word-break: break-word;
}

#tablaTecnicos th {
  background-color: #0ea5e9;
  color: #fff;
  font-weight: bold;
}

#tablaTecnicos tbody tr:nth-child(even) {
  background-color: #1e293b;
}

#tablaTecnicos img {
  max-height: 50px;
  object-fit: contain;
}

/* Responsive de DataTables */
.dataTables_wrapper {
  width: 100%;
  margin: 0 auto;
}
/* Estilos para desktop */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #111;
  padding: 10px 20px;
  color: white;
  position: relative;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.menu-toggle {
  display: none;
  font-size: 30px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Estilos para móvil */
@media (max-width: 768px) {
  .menu-toggle {
      display: block;
  }

  .nav-links {
      display: none;
      flex-direction: column;
      width: 100%;
      background-color: #111;
      position: absolute;
      top: 60px; /* justo debajo del nav */
      left: 0;
  }

  .nav-links a {
      padding: 10px 20px;
      border-top: 1px solid #333;
  }

  .nav-links.active {
      display: flex;
  }
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #121212;
  padding: 10px 20px;
}

.navbar .logo img {
  height: 40px;
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu-toggle {
  display: none; /* Ocultar botón hamburguesa en desktop */
}

.navbar nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px;
}

.section-selector {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.section-selector button {
  padding: 10px 20px;
  border: none;
  cursor: pointer;
}

/* Estilos para pantallas grandes */
@media screen and (min-width: 768px) {
  .container {
      flex-direction: row;
      align-items: flex-start;
      justify-content: center;
  }

  .section-selector {
      flex-direction: column;
      align-items: flex-start;
  }

  .menu-toggle {
      display: none; /* Asegura que no aparezca el botón hamburguesa */
  }
}

/* Estilos para pantallas chicas (móviles) */
@media screen and (max-width: 767px) {
  .navbar nav {
      display: none;
      flex-direction: column;
      width: 100%;
  }

  .navbar.active nav {
      display: flex;
  }

  .menu-toggle {
      display: block;
      background: none;
      border: none;
      color: #fff;
      font-size: 24px;
      cursor: pointer;
  }
}

table.dataTable td {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 200px; /* ajusta según sea necesario */
}
.event-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 15px;
}

.event-option {
  background-color: #2c2c2c;
  color: #e0e0e0;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #555;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.event-option:hover {
  background-color: #3d3d3d;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.event-option.selected {
  background-color: #0d6efd;
  color: #fff;
  border-color: #0a58ca;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
  transform: scale(1.03);
}
.botones-evento {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.btn-evento {
  background-color: #2f2f2f;
  color: white;
  border: 1px solid #444;
  padding: 10px 18px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-evento:hover {
  background-color: #3e3e3e;
}

.btn-evento.seleccionado {
  background-color: #007bff;
  color: white;
  border-color: #0056b3;
}
