body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f7fa;
  color: #333;
}

/* ===== HEADER ===== */
header {
  background: #0067B1;
  color: white;
  padding: 15px;
  text-align: center;
}
.logo{
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
}
/* ===== LOGIN ===== */
.login {
  display: flex;
  position: absolute;
  inset: 0; /* ocupa toda la pantalla */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: #f5f7fa;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  /* display: none; */
}

.login.hidden {
  opacity: 0;
  visibility: hidden;
}

.login form {
  width: 80%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.login input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  width: 250px;
}
.login label{
  margin-top: 20px;

}
.login button {
  padding: 10px;
  border-radius: 8px;
  border: none;
  width: 23%;
  background: #2D3E51;
  color: white;
  font-weight: bold;
  cursor: pointer;
  margin-top: 30px;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.password-wrapper input {
  flex: 1;
  padding-right: 35px;
  width: 220px;
}
.toggle-pass {
  position: absolute;
  right: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 16px;
  color: #555;
}

.toggle-pass:hover {
  color: #000;
}

/* ===== DASHBOARD ===== */
.dashboard {
  display: grid; /* Oculto al inicio */
  grid-template-columns: 250px 1fr;
  height: 100svh;
  /* opacity: 0; */
  /* visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out; */
}

.dashboard.visible {
  display: grid; /* Activa grid */
  opacity: 1;
  visibility: visible;
}

/* ===== SIDEBAR ===== */
.sidebar {
  background: #2c3e50;
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar h2 {
  margin-top: 0;
  font-size: 18px;
  margin-bottom: 15px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  margin: 12px 0;
}

.sidebar ul li a {
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.sidebar ul li a:hover {
  text-decoration: underline;
}
.sidebar ul li a.active {
  font-weight: bold;
  color: #FFD100;
}

/* ===== CONTENT ===== */
.content {
  padding: 20px;
  background: #ecf0f1;
}

.card {
  height: 95%;
  padding: 20px;
  margin-bottom: 20px;
}

.card h3 {
  margin-top: 0;
}

.dashboard .usuarios, .dashboard .administradores{
  display: none;
}
.administradores{
  text-align: center;
}
.title{
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-self: start;
}
.title h3{
  margin: 0;
  font-size: 2svw;
}
.title button{
  border: none;
  background: #2D3E51;
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
}
.administradores table{
  margin: 0 auto;
  width: 50%;
  border-collapse: collapse; 
}
.administradores table,
.administradores  th, 
.administradores  td{
  border-bottom: 1px solid;
  text-align: center;
}

/* Fondo oscuro */
.modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
  overflow: auto;
}

/* Caja del modal */
.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  animation: fadeIn 0.3s ease-in-out;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Botón cerrar */
.close {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover {
  color: #333;
}
/* Inputs y botones */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input, select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.selector{
  display: flex;
  gap: 10px;
}

button[type="submit"] {
  background: #2D3E51;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
}

button[type="submit"]:hover {
  background: #166a98;
}

/* Animación */
@keyframes fadeIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.result{ 
  margin-top: 3%;
}
.result table{
  width: 100%;
  border-collapse: collapse; 
}

.result table th .th-content {
  width: 100%; 
}

.result table,
.result  th, 
.result  td{
  border-bottom: 1px solid;
  text-align: center;
}

.result table .left{
  text-align: left;
}
table td{
  padding: 10px 5px;
  font-size: 1.3svw;
}
table  th{
  padding: 20px 0px;
  font-size: 1.4svw;
}

.oculto{
  display: none;
}
.center{
  text-align: center;
}


#btn-cerrar {
  margin-top: 20px;
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}

#btn-cerrar:hover {
  background: #c0392b;
}