/* Bella V2 — Câmera guiada do monitoramento (js/components/camera-guiada.js).
   z-index 10050: acima dos modais (8000+) e do lightbox (10000) — a câmera
   abre POR CIMA do modal "Foto do mês" sem fechar ele. */

body.camera-open {
  overflow: hidden !important;
  touch-action: none;
}

.camera-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 9, 0.98);
  display: flex;
  flex-direction: column;
  z-index: 10050;
  padding: calc(var(--safe-top) + 12px) 0 calc(var(--safe-bottom) + 12px);
}

.camera-fechar {
  position: absolute;
  top: calc(var(--safe-top) + 12px);
  right: 12px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(248,241,229,0.18);
  color: var(--cream);
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.camera-dica {
  margin: 0 60px 8px 16px;
  min-height: 32px;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(248,241,229,0.85);
}

.camera-stage {
  flex: 1;
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.camera-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-ghost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  pointer-events: none;
}

.camera-guias {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.camera-guias-edit { pointer-events: auto; cursor: crosshair; }
.camera-guia {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #e03e3e;
  border: 2px solid rgba(255,255,255,0.95);
  box-shadow: 0 1px 6px rgba(0,0,0,0.5);
  transform: translate(-50%, -50%);
}
.camera-guias-edit .camera-guia { pointer-events: auto; cursor: pointer; }

.camera-barra { padding: 10px 16px 0; }

.camera-ghost-controle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: rgba(248,241,229,0.7);
  margin-bottom: 8px;
}
.camera-ghost-range {
  flex: 1;
  accent-color: var(--cream);
}

.camera-acoes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.camera-acoes-spacer { width: 110px; flex: 0 0 auto; }

.camera-btn-guias {
  flex: 0 0 auto;
  width: 110px;
  padding: 8px 0;
  border-radius: 99px;
  border: 1px solid rgba(248,241,229,0.35);
  background: rgba(248,241,229,0.12);
  color: var(--cream);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.camera-btn-guias-on {
  background: rgba(248,241,229,0.9);
  color: #2A1A0E;
}

.camera-disparo {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--cream);
  border: 4px solid rgba(248,241,229,0.35);
  background-clip: padding-box;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.camera-disparo:active { transform: scale(0.94); }
.camera-disparo:disabled { opacity: 0.35; cursor: default; }
