/*
===============================================================================
  GENESIS CAMERA TRACKING - Estilos isolados da miniatura de câmera
===============================================================================
  Todas as classes prefixadas com .gct- (Genesis Camera Tracking)
  NÃO conflita com nenhum CSS existente.
*/

.gct-mini{
  position: fixed;
  top: 100px;
  right: 20px;
  width: 280px;
  height: 210px;
  min-width: 180px;
  min-height: 130px;
  max-width: 90vw;
  max-height: 80vh;
  background: #000;
  border: 2px solid #00f0ff;
  border-radius: 10px;
  z-index: 48;
  opacity: 0.85;
  box-shadow: 0 8px 30px rgba(0, 240, 255, .4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Orbitron', 'Rajdhani', Arial, sans-serif;
  transition: opacity .3s, box-shadow .3s, transform .3s;
  resize: both;
}
.gct-mini:hover{
  opacity: 1;
  box-shadow: 0 8px 40px rgba(0, 240, 255, .7);
}
.gct-mini.gct-hidden{
  opacity: 0.12;
  pointer-events: none;
}
.gct-mini.gct-hidden:hover{
  opacity: 0.85;
  pointer-events: auto;
}
.gct-mini.gct-pinned{
  border-color: #ff00ff;
  box-shadow: 0 8px 30px rgba(255, 0, 255, .4);
}

/* Cabeçalho (alça de arraste) */
.gct-mini .gct-header{
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: linear-gradient(180deg, rgba(0, 240, 255, .2), rgba(0, 240, 255, .08));
  border-bottom: 1px solid rgba(0, 240, 255, .3);
  cursor: move;
  user-select: none;
  -webkit-user-select: none;
  height: 34px;
  flex-shrink: 0;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #00f0ff;
  font-weight: 700;
}
.gct-mini .gct-dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: #f05;
  box-shadow: 0 0 6px #f05;
  animation: gct-pulse 1.5s infinite;
  flex-shrink: 0;
}
.gct-mini .gct-title{
  flex: 0 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gct-mini .gct-track-dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(0, 255, 136, .3);
  margin-left: 6px;
  transition: background .3s, box-shadow .3s, transform .3s;
  flex-shrink: 0;
}
.gct-mini .gct-track-dot.gct-active{
  background: #0f8;
  box-shadow: 0 0 8px #0f8;
  transform: scale(1.1);
}
.gct-mini .gct-actions{
  display: flex;
  gap: 3px;
  margin-left: auto;
}
.gct-mini .gct-btn{
  width: 22px; height: 22px;
  background: transparent;
  border: 1px solid rgba(0, 240, 255, .4);
  color: #00f0ff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: .2s;
  padding: 0;
}
.gct-mini .gct-btn:hover{
  background: rgba(0, 240, 255, .2);
  box-shadow: 0 0 8px #00f0ff;
}
.gct-mini .gct-btn.gct-active{
  background: rgba(0, 240, 255, .3);
  border-color: #00f0ff;
  color: #fff;
}
.gct-mini .gct-close:hover{
  background: rgba(255, 0, 85, .3);
  border-color: #f05;
  color: #fff;
  box-shadow: 0 0 10px #f05;
}

/* Vídeo (espelhado como selfie) */
.gct-mini .gct-video{
  width: 100%;
  flex: 1;
  object-fit: cover;
  transform: scaleX(-1);
  background: #000;
  display: block;
  pointer-events: none;
}

/* Overlay canvas opcional (para debug visual de landmarks) */
.gct-mini .gct-overlay{
  position: absolute;
  inset: 34px 0 0 0;
  width: 100%;
  height: calc(100% - 34px);
  pointer-events: none;
  display: none;
}

/* Indicador de status do rastreamento (barra inferior) */
.gct-mini .gct-status{
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 4px 10px;
  background: rgba(0, 0, 0, .6);
  font-size: 9px;
  letter-spacing: 1px;
  color: rgba(0, 240, 255, .8);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.gct-mini .gct-status span strong{
  color: #0f8;
}

@keyframes gct-pulse{
  50%{ opacity: .5; transform: scale(1.2); }
}

/* Mobile: repositiona canto inferior esquerdo */
@media (max-width: 768px){
  .gct-mini{
    width: 180px;
    height: 135px;
    top: auto;
    right: 10px;
    bottom: 160px;
  }
}
