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

body {
  background: #0a0a0f;
  color: #fff;
  font-family: 'Segoe UI', system-ui, sans-serif;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}

#app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 480px;
  padding: 20px;
}

header {
  display: flex;
  align-items: center;
  gap: 12px;
}

header h1 {
  font-size: 1.4rem;
  color: #aaa;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
}

#logo { height: 40px; }

#camera-container {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #333;
  transition: border-color 0.4s;
}

#camera-container.verified  { border-color: #22c55e; box-shadow: 0 0 30px #22c55e44; }
#camera-container.unknown   { border-color: #ef4444; box-shadow: 0 0 30px #ef444444; }
#camera-container.scanning  { border-color: #3b82f6; box-shadow: 0 0 20px #3b82f644; }
#camera-container.low-conf  { border-color: #f59e0b; box-shadow: 0 0 20px #f59e0b44; }

#video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

#overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

#status-panel {
  text-align: center;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

#status-icon { font-size: 2.5rem; }

#status-message {
  font-size: 1.1rem;
  color: #ccc;
  transition: color 0.3s;
}

#employee-name {
  font-size: 1.8rem;
  font-weight: 600;
  color: #22c55e;
  display: none;
}

#checkin-time {
  font-size: 0.9rem;
  color: #888;
  display: none;
}

#clock {
  font-size: 1.5rem;
  color: #555;
  font-variant-numeric: tabular-nums;
}

/* State-specific text colors */
.state-verified  #status-message { color: #22c55e; }
.state-unknown   #status-message { color: #ef4444; }
.state-scanning  #status-message { color: #3b82f6; }
.state-low-conf  #status-message { color: #f59e0b; }
.state-error     #status-message { color: #6b7280; }
