
/* ==========================================================================
   IndusAR WebAR Mobile Camera Scanner — Stylesheet
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000000;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  user-select: none;
}

/* Background Video & WebGL Canvas */
#camera-feed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 1;
}

#webgl-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: auto;
  touch-action: none;
}

/* Viewfinder Frame */
.indus-viewfinder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(82vw, 360px);
  height: min(64vh, 480px);
  border: 2px solid rgba(6, 182, 212, 0.4);
  border-radius: 20px;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.2);
  transition: opacity 0.4s ease, border-color 0.3s ease;
}

.indus-viewfinder.hidden {
  opacity: 0;
}

.indus-viewfinder-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: #06b6d4;
  border-style: solid;
}

.c-tl { top: -2px; left: -2px; border-width: 4px 0 0 4px; border-top-left-radius: 20px; }
.c-tr { top: -2px; right: -2px; border-width: 4px 4px 0 0; border-top-right-radius: 20px; }
.c-bl { bottom: -2px; left: -2px; border-width: 0 0 4px 4px; border-bottom-left-radius: 20px; }
.c-br { bottom: -2px; right: -2px; border-width: 0 4px 4px 0; border-bottom-right-radius: 20px; }

/* Top Header Bar */
.indus-viewer-header {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
  pointer-events: none;
}

.indus-viewer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  pointer-events: auto;
}

.indus-hud-actions {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.indus-hud-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
}

.indus-hud-btn:active {
  transform: scale(0.92);
}

/* Status Pill */
.indus-status-pill {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  padding: 8px 18px;
  border-radius: 9999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #facc15;
  animation: pulse-dot 1s ease-in-out infinite alternate;
}

.status-dot.active {
  background: #10b981;
}

@keyframes pulse-dot {
  from { opacity: 0.4; }
  to { opacity: 1; }
}
