/* ============================================================
   EAMS — Global Stylesheet
   Bootstrap 5.3 is the base; these are project-specific overrides.
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --eams-scan-bg: #f0f4ff;
  --eams-success: #198754;
  --eams-error: #dc3545;
}

/* ── Scan page ──────────────────────────────────────────────── */
.scan-page {
  min-height: 100vh;
  background: var(--eams-scan-bg);
}

.scan-card {
  border: none;
  border-radius: 1rem;
}

.scan-icon-wrap {
  font-size: 3rem;
  color: #0d6efd;
  line-height: 1;
}

.scan-input {
  font-size: 1.25rem;
  letter-spacing: .05em;
  border-radius: .625rem;
  transition: border-color .2s, box-shadow .2s;
}

.scan-input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .2);
}

.scan-feedback {
  font-size: 1rem;
  font-weight: 600;
  min-height: 1.5rem;
  transition: color .2s;
}

.scan-feedback.success {
  color: var(--eams-success);
}

.scan-feedback.error {
  color: var(--eams-error);
}

.student-info-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
}

/* ── Camera scanner ─────────────────────────────────────────── */
.camera-video {
  width: 100%;
  display: block;
  background: #000;
  max-height: 55vh;
  object-fit: cover;
}

.camera-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.camera-target {
  width: 75%;
  aspect-ratio: 3 / 1;
  border: 2px solid rgba(255, 255, 255, .85);
  border-radius: .5rem;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .45);
}

/* ── Admin layout ───────────────────────────────────────────── */
.admin-layout {
  background-color: #f8f9fa;
}

/* Stat card icon */
.stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* Small delete button in tables */
.btn-xs {
  padding: .15rem .35rem;
  font-size: .75rem;
  line-height: 1.2;
}

/* Monospace student IDs */
.font-monospace {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

/* ── Print styles ───────────────────────────────────────────── */
@media print {

  .navbar,
  footer,
  #report-form,
  #export-btn,
  #print-btn,
  .btn {
    display: none !important;
  }

  .card {
    border: none !important;
    box-shadow: none !important;
  }

  #report-results {
    display: block !important;
  }
}