/* Live Camera modal — Pangan Aman */
.pa-cam-btn {
  margin-top: 12px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  background: #14B8A6;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.pa-cam-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  background: #94A3B8;
}
.pa-cam-btn.offline {
  background: #94A3B8;
}

.pa-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  padding: 0;
}
.pa-modal-backdrop.open {
  display: flex;
}
@media (min-width: 768px) {
  .pa-modal-backdrop {
    align-items: center;
    padding: 24px;
  }
}

.pa-modal {
  background: #fff;
  width: min(920px, 100%);
  max-height: min(92vh, 900px);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
@media (min-width: 768px) {
  .pa-modal {
    border-radius: 16px;
  }
}

.pa-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #E0E8EC;
}
.pa-modal-head h3 {
  margin: 0;
  font-size: 15px;
}
.pa-modal-close {
  border: 0;
  background: #F2F5F7;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.pa-video-wrap {
  position: relative;
  background: #0f172a;
  aspect-ratio: 16 / 9;
  width: 100%;
}
.pa-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

.pa-live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .3px;
  color: #fff;
  background: rgba(15,23,42,.72);
}
.pa-live-badge.live { background: #DC2626; }
.pa-live-badge.connecting { background: #D97706; }
.pa-live-badge.reconnecting { background: #D97706; }
.pa-live-badge.offline { background: #64748B; }
.pa-live-badge.error { background: #7F1D1D; }

.pa-modal-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  padding: 12px 16px;
  font-size: 12px;
  color: #5C6B73;
  border-bottom: 1px solid #E0E8EC;
}
@media (min-width: 640px) {
  .pa-modal-meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.pa-modal-meta b {
  color: #1A2B32;
  display: block;
  font-size: 13px;
  margin-top: 2px;
}

.pa-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 16px;
}
.pa-modal-actions button {
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  background: #F2F5F7;
  color: #1A2B32;
}
.pa-modal-actions button.primary {
  background: #2EAF63;
  color: #fff;
}
.pa-modal-actions button.teal {
  background: #14B8A6;
  color: #fff;
}

.pa-cam-msg {
  padding: 10px 16px;
  font-size: 13px;
  color: #5C6B73;
  background: #F8FAFC;
}
.pa-cam-msg.error {
  color: #DC2626;
  background: #FEF2F2;
}
