* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: black;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.container {
  max-width: 56rem;
  width: 100%;
}

.card {
  background-color: black;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

h1 {
  font-size: 1.875rem;
  font-weight: bold;
  color: white;
  text-align: center;
}

.confidence-container {
  color: white;
  text-align: center;
  padding: none;
}

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

.error {
  background-color: #ef4444;
  color: white;
  padding: 1rem;
  margin-bottom: 1rem;
}

.video-container {
  position: relative;
  background-color: black;
  overflow: hidden;
}

#video {
  display: none;
}

#canvas {
  width: 100%;
  height: auto;
  display: block;
}

/* Overlay button */
.video-overlay-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.7s ease;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.video-overlay-btn.pop {
  transform: translateX(-50%) scale(1.3);
}

.video-overlay-btn img {
  width: 120px;
  height: auto;
  transform: scaleX(-1);
}

.info-text {
  margin-top: 1rem;
  color: #9ca3af;
  font-size: 0.875rem;
  text-align: center;
}

.console-text {
  margin-top: 0.5rem;
  color: #6b7280;
  font-size: 0.75rem;
  text-align: center;
}

.hidden {
  display: none;
}

.back-to-dashboard-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(15, 15, 25, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}
.back-to-dashboard-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 25px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}
.back-to-dashboard-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}