/* Face Detection styles - supplements ../style.css */

.demo-desc {
  font-size: 14px;
  color: var(--text-faint);
  margin-bottom: 24px;
  line-height: 1.7;
  max-width: 680px;
}

/* Camera Controls */
.camera-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.camera-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  border: 2px dashed var(--border);
  border-radius: 12px;
  background: var(--surface);
  text-align: center;
  gap: 16px;
}

.camera-status-icon svg {
  width: 48px;
  height: 48px;
  color: var(--text-faint);
}

.camera-status-text {
  font-size: 14px;
  color: var(--text-faint);
}

.camera-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}

.camera-container video {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: contain;
}

.camera-container canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.detection-stats {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 16px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
}

/* Model Loading */
.model-loading {
  margin-top: 20px;
}

.model-loading .progress-label {
  display: block;
  margin-top: 8px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Progress Bar (shared with model loading) */
.progress-bar {
  height: 6px;
  background: var(--surface);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #a3e635);
  border-radius: 3px;
  transition: width 0.3s var(--ease);
}

.progress-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-faint);
}
