/* admin.css */

/* General Styles */
body {
    font-family: "Times New Roman Condensed", sans-serif;
    background-color: white;
    color: black;
    margin: 0;
    padding: 0;
  }
  
  #admin-panel {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
  
  /* Header */
  header {
    text-align: center;
    margin-bottom: 30px;
  }
  
  header h1 {
    font-size: 2.5rem;
  }
  
  /* Sections */
  section {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
  }
  
  section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  
  /* Stats */
  .stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.2rem;
  }
  
  /* Generate Token */
  #generated-token {
    margin-top: 15px;
  }
  
  #token-display {
    font-size: 1.2rem;
    background: #f4f4f4;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  #copy-token-btn {
    background: black;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
  }
  
  /* Participants Table */
  table {
    width: 100%;
    border-collapse: collapse;
  }
  
  thead th {
    text-align: left;
    background-color: #f4f4f4;
    padding: 10px;
  }
  
  tbody td {
    padding: 10px;
    border-bottom: 1px solid #ccc;
  }
  
  #pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
  }
  
  /* Buttons */
  button {
    background: black;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
  }
  
  button:hover {
    opacity: 0.8;
  }
  
  /* Modal */
  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
  }
  
  .modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
  }
  
  .modal-content button {
    margin: 10px;
  }
  

  #generate-token-btn, #copy-token-btn {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    background-color: #007BFF; /* Azul principal */
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  #generate-token-btn:hover, #copy-token-btn:hover {
    background-color: #0056b3; /* Azul oscuro */
  }
  
  #token-section {
    font-family: 'Times New Roman', serif;
    text-align: center;
  }
  
  #generated-token {
    font-size: 20px;
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
  }



 /* Estilo para la sección de edición de participantes */
#edit-participants {
  margin-top: 20px;
  text-align: center;
}

#edit-participants h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

/* Estilo para la barra de búsqueda */
.search-bar {
  margin-bottom: 20px;
  text-align: center;
}

.search-bar input {
  width: 80%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

/* Estilo para la tabla */
#participants-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
}

#participants-table th,
#participants-table td {
  padding: 10px;
  text-align: center;
  border: 1px solid #ddd;
}

#participants-table th {
  background-color: #f5f5f5;
  font-weight: bold;
}

#participants-table td {
  background-color: #fff;
}

#participants-table tr:hover {
  background-color: #f9f9f9;
}

/* Estilo para la paginación */
#pagination {
  margin-top: 20px;
  text-align: center;
}

#pagination button {
  padding: 10px 20px;
  font-size: 16px;
  margin: 0 10px;
  border: none;
  border-radius: 5px;
  background-color: #000;
  color: #fff;
  cursor: pointer;
}

#pagination button[disabled] {
  background-color: #ccc;
  cursor: not-allowed;
}

#pagination span {
  font-size: 18px;
  font-weight: bold;
}

/* Estilo para las ventanas modales */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 500px;
  text-align: center;
}

.modal-buttons {
  margin-top: 20px;
}

.modal-buttons button {
  padding: 10px 20px;
  margin: 0 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.modal-buttons .btn-success {
  background-color: #28a745;
  color: #fff;
}

.modal-buttons .btn-danger {
  background-color: #dc3545;
  color: #fff;
}

/* 🔹 Estilos para el overlay de carga */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Fondo semi-transparente */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  display: none; /* Oculto por defecto */
}

/* 🔹 Spinner de carga */
.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid white;
  border-top: 6px solid black;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* 🔹 Animación del spinner */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #000000, #333333);
}

/* ✅ Contenedor del Login */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* ✅ Caja del Login */
.login-box {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.2);
  text-align: center;
  width: 320px;
}

/* ✅ Logo */
.logo {
  font-size: 2rem;
  font-weight: bold;
  color: #000;
  margin-bottom: 15px;
}

/* ✅ Inputs */
input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-radius: 5px;
  background: #f5f5f5;
  color: #000;
  outline: none;
  transition: all 0.3s ease;
}

input:focus {
  background: #ddd;
}

/* ✅ Botón de inicio de sesión */
button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: none;
  border-radius: 5px;
  background: #000;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

button:hover {
  background: #444;
}

/* ✅ Mensaje de error */
#error-message {
  color: #ff4b2b;
  margin-top: 10px;
  font-size: 14px;
}

/* ✅ Estilos Responsive */
@media (max-width: 400px) {
  .login-box {
      width: 90%;
      padding: 20px;
  }
}

#participants-table tbody tr {
  border-bottom: 1px solid #ccc;
}

#participants-table td, #participants-table th {
  padding: 10px;
  text-align: center;
}
