/* ── FILE: css/scanner.css ─────────────────────────── */
.scan-left, .scan-right {
  flex: 1;
}

.drop-zone {
  width: 100%;
  height: 360px;
  background: linear-gradient(145deg, rgba(10,26,14,0.6), rgba(20,40,20,0.5));
  border: 2px dashed rgba(57,255,110,0.5);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
  cursor: pointer;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--biolum);
  background: rgba(57,255,110,0.08);
  box-shadow: inset 0 0 30px rgba(57,255,110,0.2), 0 10px 30px rgba(0,0,0,0.5);
  transform: translateY(-4px);
}

.drop-content {
  pointer-events: none;
  z-index: 2;
}
.drop-content p {
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 0.5rem;
}
.drop-content strong {
  color: var(--biolum);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.upload-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  opacity: 0.9;
  filter: drop-shadow(0 0 10px rgba(57,255,110,0.6));
  animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

#image-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

#clear-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
}

.scan-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}
.scan-actions .btn {
  flex: 1;
}

.model-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--glass-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}
.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amber-warn);
  animation: dot-pulse 1.5s infinite;
}
.model-status.ready .status-dot {
  background: var(--biolum);
  animation: none;
}

/* Camera Modal Styles */
.camera-viewport {
  position: relative;
  width: 100%;
  height: 60vh;
  background: #000;
  overflow: hidden;
}
#camera-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--biolum);
  box-shadow: 0 0 20px var(--biolum);
  z-index: 2;
  opacity: 0.8;
  animation: scanline-sweep 1.8s ease-in-out infinite;
}
.camera-brackets {
  position: absolute;
  inset: 10%;
  z-index: 2;
  pointer-events: none;
}
.camera-brackets > div {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 4px solid var(--biolum);
  opacity: 0.8;
  animation: bracket-pulse 2s infinite alternate;
}
.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.camera-controls {
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  background: var(--void);
}
#capture-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 0;
}
.capture-ring {
  display: block;
  width: 56px;
  height: 56px;
  border: 2px solid var(--void);
  border-radius: 50%;
}
