/* General Styles */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #2C3E50; /* Gris oscuro */
  color: #FFFFFF; /* Blanco */
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  background-color: #FFFFFF; /* Blanco */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  color: #2C3E50; /* Gris oscuro */

  width: fit-content;           /* Se ajusta al contenido (como la tabla) */
  min-width: 500px;             /* Se mantiene mínimo igual que antes */
  max-width: 100%;              /* Evita que se desborde en pantallas pequeñas */
  margin: 40px auto;            /* Centrado */
  overflow-x: auto;             /* Scroll horizontal si la tabla es muy ancha */
}

h1, h2 {
  color: #007BFF; /* Azul eléctrico */
  text-align: center;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="file"],
input[type="datetime-local"],
textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  font-size: 16px;
  background-color: #f9f9f9;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="file"]:focus,
input[type="datetime-local"]:focus,
textarea:focus {
  border-color: #007BFF; /* Azul eléctrico */
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

button {
  width: 100%;
  background-color: #007BFF; /* Azul eléctrico */
  color: #FFFFFF; /* Blanco */
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0056b3; /* Azul más oscuro al pasar el mouse */
}

footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.9em;
}

footer p {
  color: #007BFF; /* Azul eléctrico */
}

a {
  color: #00D084; /* Verde lima */
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.qr-section img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.qr-section p {
  text-align: center;
  color: #000000; /* Negro */
}

/* Form-Specific Styles */
form {
  margin-top: 20px;
}

textarea {
  height: 120px;
  resize: vertical;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .container {
      padding: 20px;
  }
}
/* Admin Panel Styles */
.admin-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 30px;
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  color: #2C3E50;
}

.admin-container h1 {
  text-align: center;
  margin-bottom: 25px;
  color: #007BFF;
}

.admin-container table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background-color: #f8f9fa;
}

.admin-container th,
.admin-container td {
  padding: 12px;
  border: 1px solid #ced4da;
  text-align: center;
  font-size: 15px;
}

.admin-container th {
  background-color: #f0f0f0;
  color: #2C3E50;
  font-weight: bold;
}

.btn {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  margin: 4px;
}

.btn-activate {
  background-color: #00D084; /* Verde lima */
  color: white;
}

.btn-activate:hover {
  background-color: #00b36a;
}

.btn-suspend {
  background-color: #FF4D4D; /* Rojo */
  color: white;
}

.btn-suspend:hover {
  background-color: #cc0000;
}

.logout-link {
  text-align: center;
  margin-top: 20px;
  font-weight: bold;
}
.btn-ver-grupos {
  width: 100%;
  background-color: #00D084; /* Verde lima */
  color: #FFFFFF; /* Blanco */
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.btn-ver-grupos:hover {
  background-color: #00a76d; /* Verde lima más oscuro */
}
.button-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-top: 30px;
}

.btn-principal {
  padding: 16px;
  font-size: 18px;
  background-color: #007BFF;
  color: #fff;
  border: none;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease;
}

.btn-principal:hover {
  background-color: #0056b3;
}

.btn-logout {
  background-color: #FF4D4D;
}
.autocomplete-suggestions {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  width: auto;
  min-width: 250px;
  max-width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 999;
  overflow-y: auto;
  margin-top: 2px;
  border-radius: 6px;
}

.autocomplete-suggestions div {
  padding: 10px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete-suggestions div:hover {
  background-color: #f0f0f0;
}

.autocomplete-suggestions div:hover {
  background-color: #f0f0f0;
}
.input-group {
  position: relative;
}
.btn {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
}

.btn:hover {
  background-color: #0056b3;
}