body { font-family: Inter, sans-serif; }

.tool-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .04);
}

/* Camera */
.camera-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #111827;
  border-radius: 0.5rem;
  overflow: hidden;
}
#videoEl {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  display: none;
}
#overlayCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transform: scaleX(-1);
}
.camera-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem; color: #6b7280;
  cursor: pointer;
}

/* Status dots */
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  display: inline-block;
  transition: background .3s;
}
.dot.active    { background: #10b981; }
.dot.detecting { background: #f59e0b; animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

/* Theremin readout */
.theremin-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  transition: color .1s;
}
.theremin-value.playing { color: #059669; }

/* Pitch / volume bars */
.bar-track {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 4px;
  background: #10b981;
  width: 0%;
  transition: width .05s linear;
}
.bar-fill.vol { background: #6366f1; }

/* Waveform visualiser */
#waveCanvas {
  width: 100%;
  height: 48px;
  display: block;
  border-radius: 0.375rem;
  background: #0f172a;
}

/* Note badge */
.note-badge {
  font-size: 0.75rem; font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}
.note-badge.active-badge {
  background: #059669;
  border-color: #059669;
  color: #fff;
}
