/* Estilos para o componente de captura de câmera no estilo Liveness */
.camera-container {
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  position: relative;
  background-color: #000;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.camera-container video {
  display: block;
  width: 100%;
  height: auto;
  /*background-color: #000;*/
  /*transform: scaleX(-1); !* Espelha a imagem da câmera frontal *!*/
}

.camera-container canvas {
  display: block;
  width: 100%;
  height: auto;
  /*background-color: #000;*/
  /*transform: scaleX(-1); !* Espelha a imagem capturada *!*/
}

.camera-controls {
  padding: 20px 15px;
  background-color: rgba(0, 0, 0, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
}

.camera-controls button {
  padding: 12px 24px;
  border: none;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.camera-controls button i {
  font-size: 16px;
}

.camera-controls button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Estilos para os botões específicos */
.capture-btn {
  background-color: #4CAF50;
  color: white;
}

.capture-btn:hover:not(:disabled) {
  background-color: #45a049;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.retake-btn {
  background-color: #f44336;
  color: white;
}

.retake-btn:hover:not(:disabled) {
  background-color: #d32f2f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.confirm-btn {
  background-color: #2196F3;
  color: white;
}

.confirm-btn:hover:not(:disabled) {
  background-color: #0b7dda;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Estilos para o guia de posicionamento */
.camera-guide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 10;
  width: 100%;
  height: 100%;
}

/* Instruções de posicionamento */
.camera-instructions {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 15;
  color: white;
  text-align: center;
  padding: 0 20px;
  pointer-events: none;
}

.camera-instructions h3 {
  font-size: 18px;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.camera-instructions p {
  font-size: 14px;
  opacity: 0.9;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Mensagem de erro */
.camera-error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 0, 0, 0.8);
  color: white;
  border-radius: 8px;
  padding: 15px 25px;
  text-align: center;
  max-width: 80%;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Estilos responsivos */
@media (max-width: 768px) {
  .camera-controls {
    padding: 15px 10px;
  }
  
  .camera-controls button {
    padding: 10px 16px;
    font-size: 13px;
    min-width: 120px;
  }
  
  .camera-instructions h3 {
    font-size: 16px;
  }
  
  .camera-instructions p {
    font-size: 13px;
  }
}

/* Animações */
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 0.7; }
}

.capture-pulse {
  animation: pulse 2s infinite ease-in-out;
}

/* Animações */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.capture-pulse {
  animation: pulse 2s infinite;
  border-radius: 50%;
}
