/* ===================================================================
   AADHAAR QR & CAMERA SCANNER STYLING
   UIDAI Compliance, Camera Reticle, & Instant Demographic Parsing
   =================================================================== */

.aadhaar-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 25000;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.aadhaar-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.aadhaar-scanner-card {
  background: #ffffff;
  border-radius: 20px;
  max-width: 580px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 1px solid #cbd5e1;
  transform: scale(0.96);
  transition: transform 200ms ease;
}

.aadhaar-modal-overlay.active .aadhaar-scanner-card {
  transform: scale(1);
}

.aadhaar-scanner-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #f97316;
}

.aadhaar-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.aadhaar-emblem {
  font-size: 26px;
}

.aadhaar-header-text h3 {
  font-size: 16px;
  color: #f8fafc;
  font-weight: 800;
}

.aadhaar-header-text p {
  font-size: 11px;
  color: #fed7aa;
}

/* Viewfinder Area */
.scanner-viewfinder-container {
  position: relative;
  background: #000;
  height: 260px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scanner-video-feed {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-overlay-reticle {
  position: absolute;
  width: 220px;
  height: 220px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Corner brackets */
.reticle-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: #f97316;
  border-style: solid;
}

.reticle-corner.tl { top: -2px; left: -2px; border-width: 4px 0 0 4px; border-top-left-radius: 12px; }
.reticle-corner.tr { top: -2px; right: -2px; border-width: 4px 4px 0 0; border-top-right-radius: 12px; }
.reticle-corner.bl { bottom: -2px; left: -2px; border-width: 0 0 4px 4px; border-bottom-left-radius: 12px; }
.reticle-corner.br { bottom: -2px; right: -2px; border-width: 0 4px 4px 0; border-bottom-right-radius: 12px; }

/* Animated Laser Line */
.scanner-laser-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #22c55e, transparent);
  box-shadow: 0 0 12px #22c55e;
  animation: scanLaser 2s infinite alternate ease-in-out;
}

@keyframes scanLaser {
  0% { top: 10px; }
  100% { top: 210px; }
}

/* Quick Test Pre-Sets */
.sample-aadhaar-bar {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.sample-aadhaar-bar span {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
}

.sample-aadhaar-pills {
  display: flex;
  gap: 8px;
}

.sample-pill-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 150ms ease;
}

.sample-pill-btn:hover {
  background: #f0fdf4;
  border-color: #22c55e;
  color: #15803d;
}

/* Decoded Demographic Card */
.decoded-aadhaar-panel {
  padding: 20px 24px;
  background: #ffffff;
}

.uidai-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  border: 1px solid #86efac;
}

.aadhaar-data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #fafaf9;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  padding: 16px;
  font-size: 13px;
}

.aadhaar-data-grid .field-label {
  font-size: 10px;
  color: #78716c;
  text-transform: uppercase;
  font-weight: 700;
}

.aadhaar-data-grid .field-val {
  font-weight: 700;
  color: #1c1917;
  margin-top: 1px;
}
