/* =============================================================
   modals/media_capture.css
   Overlay da câmera interna (foto/vídeo) do chat.
   ============================================================= */

#media-capture-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #000;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

#media-capture-overlay.d-none {
  display: none;
}

#media-capture-overlay .mcap-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  color: #fff;
  font-family: inherit;
}

#media-capture-overlay .mcap-preview {
  flex: 1;
  position: relative;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#media-capture-overlay video,
#media-capture-overlay canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

#media-capture-overlay .mcap-timer {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  background: rgba(220, 38, 38, 0.85);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

#media-capture-overlay .mcap-tabs {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 10px 0;
  background: #111;
}

#media-capture-overlay .mcap-tab {
  background: transparent;
  color: #bbb;
  border: 0;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

#media-capture-overlay .mcap-tab.active {
  color: #fff;
  border-bottom-color: #facc15;
}

#media-capture-overlay .mcap-actions {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 18px 10px calc(18px + var(--zori-safe-bottom));
  background: #111;
}

#media-capture-overlay .mcap-btn {
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 15px;
  padding: 10px 14px;
  cursor: pointer;
}

#media-capture-overlay .mcap-btn--shutter {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #222;
  display: flex;
  align-items: center;
  justify-content: center;
}

#media-capture-overlay .mcap-btn--shutter.gravando {
  background: #dc2626;
}

#media-capture-overlay .mcap-shutter-dot {
  width: 28px;
  height: 28px;
  background: #dc2626;
  border-radius: 50%;
  transition: transform 0.2s ease, border-radius 0.2s ease;
}

#media-capture-overlay .mcap-btn--shutter.gravando .mcap-shutter-dot {
  background: #fff;
  border-radius: 6px;
  transform: scale(0.55);
}
