/* custom.css — estilos específicos de la terminal que Tailwind no cubre */

/* Fuente mínima industrial */
body {
  font-size: 18px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Cámara de reconocimiento facial */
#camera-preview {
  width: 100%;
  max-height: 55vh;
  object-fit: cover;
  border-radius: 0.75rem;
  background: #000;
  display: block;
}

/* Canvas oculto para captura */
#capture-canvas {
  display: none;
}

/* Numpad PIN */
.pin-btn {
  min-height: 72px;
  font-size: 1.75rem;
  font-weight: 700;
  touch-action: manipulation;
}

/* Puntos PIN */
.pin-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d1d5db;
  transition: background 0.15s;
}
.pin-dot.filled {
  background: #1d4ed8;
}

/* Tarjeta de dashboard */
.action-card {
  min-height: 140px;
  touch-action: manipulation;
}

/* Estado de fichaje */
.status-badge {
  font-size: 1rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
}

/* Animación de escaneo QR */
@keyframes scan-line {
  0%   { top: 10%; }
  50%  { top: 85%; }
  100% { top: 10%; }
}
.qr-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #22c55e;
  animation: scan-line 2s linear infinite;
  box-shadow: 0 0 8px #22c55e;
}

/* Spinner de carga */
.spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #e5e7eb;
  border-top-color: #1d4ed8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast */
#toast {
  transition: opacity 0.3s, transform 0.3s;
}
