/**
 * camera.css — Camera capture overlay and per-modal camera box variants.
 * Controlled by CameraManager.js.
 */

/* ─── Full-screen camera overlay ─── */
.cam-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.cam-overlay-device-row { display: flex; align-items: center; gap: 10px; }
.cam-overlay-device-icon { color: #fff; opacity: 0.6; }
.cam-device-select {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 13px;
  cursor: pointer;
  outline: none;
  max-width: 280px;
}
.cam-overlay-hint {
  color: #fff;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.5;
}
.cam-overlay-frame {
  position: relative;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}
.cam-overlay-video {
  display: block;
  width: 640px;
  max-width: 90vw;
  height: 480px;
  max-height: 60vh;
  object-fit: cover;
  background: #000;
}
.cam-overlay-canvas { display: none; }

/* Corner guide brackets */
.cam-corner { position: absolute; width: 30px; height: 30px; }
.cam-corner-tl { top: 10px;    left: 10px;  border-top: 2px solid #fff; border-left: 2px solid #fff;  border-radius: 2px 0 0 0; }
.cam-corner-tr { top: 10px;    right: 10px; border-top: 2px solid #fff; border-right: 2px solid #fff; border-radius: 0 2px 0 0; }
.cam-corner-bl { bottom: 10px; left: 10px;  border-bottom: 2px solid #fff; border-left: 2px solid #fff;  border-radius: 0 0 0 2px; }
.cam-corner-br { bottom: 10px; right: 10px; border-bottom: 2px solid #fff; border-right: 2px solid #fff; border-radius: 0 0 2px 0; }

.cam-overlay-actions { display: flex; gap: 16px; margin-top: 8px; }
.btn-cam-cancel {
  padding: 10px 28px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 0.5px;
}
.btn-cam-capture {
  padding: 10px 36px;
  background: #e63946;
  border: none;
  color: #fff;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.5);
}

/* ─── Inline camera box (inside modals) ─── */
.cam-box {
  background: #1a1d28;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cam-v,
.cam-p { width: 100%; height: 100%; object-fit: cover; }

/* Size variants */
.cam-box-avatar { width: 100px; height: 100px; border-radius: 50%; }
.cam-box-sm     { height: 100px; }
.cam-box-md     { height: 120px; }
