/* Estilos personalizados IESTP Huarmey */

/* Cards */
.card {
  background: white;
  border-radius: 12px;
  border: 0.5px solid #e0dfd7;
  padding: 1.25rem;
}

/* Tablas */
.tabla-admin thead th {
  background-color: #f9fafb;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.tabla-admin tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.1s;
}

.tabla-admin tbody tr:hover {
  background-color: #EBF4FF;
}

.tabla-admin tbody td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #3d3d3a;
}

/* Formularios */
.campo-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.3rem;
}

.campo-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #111827;
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.campo-input:focus {
  border-color: #185FA5;
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.12);
}

.campo-select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #111827;
  background: white;
  cursor: pointer;
  outline: none;
}

.campo-select:focus {
  border-color: #185FA5;
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.12);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-verde   { background: #EAF3DE; color: #3B6D11; }
.badge-rojo    { background: #FCEBEB; color: #791F1F; }
.badge-azul    { background: #E6F1FB; color: #185FA5; }
.badge-ambar   { background: #FAEEDA; color: #633806; }
.badge-gris    { background: #f3f4f6; color: #6b7280; }

/* Botones */
.btn-primario {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: #185FA5;
  color: white;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s;
  text-decoration: none;
}

.btn-primario:hover { background: #0C447C; }

.btn-secundario {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: white;
  color: #374151;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #d1d5db;
  cursor: pointer;
  transition: background-color 0.15s;
  text-decoration: none;
}

.btn-secundario:hover { background: #f9fafb; }

.btn-peligro {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: #fef2f2;
  color: #b91c1c;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #fecaca;
  cursor: pointer;
  transition: background-color 0.15s;
  text-decoration: none;
}

.btn-peligro:hover { background: #fee2e2; }

.btn-sm {
  padding: 0.3rem 0.75rem;
  font-size: 0.8125rem;
}

/* Página de verificación pública */
.cert-valido  { border-left: 4px solid #3B6D11; background: #EAF3DE; }
.cert-anulado { border-left: 4px solid #791F1F; background: #FCEBEB; }
.cert-error   { border-left: 4px solid #d97706; background: #FAEEDA; }
