/* ==========================================================================
   MEDIA, LIGHTBOX & DRAWER CSS — Nexus Advanced Chat & Leads
   Arquivo fatiado < 95 linhas
   ========================================================================== */

/* Audio Player Component */
.audio-bubble-player {
  display: flex; align-items: center; gap: 10px;
  background: rgba(0, 0, 0, 0.25); border-radius: 20px;
  padding: 8px 14px; min-width: 220px; margin-top: 6px;
}

.audio-play-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold-gradient); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #000; font-size: 14px; flex-shrink: 0;
}

.audio-waveform {
  flex: 1; height: 4px; background: rgba(255, 255, 255, 0.2);
  border-radius: 2px; position: relative; cursor: pointer;
}

.audio-waveform-fill {
  width: 45%; height: 100%; background: var(--gold-primary);
  border-radius: 2px;
}

.audio-duration { font-size: 11px; color: var(--text-muted); font-family: monospace; }

/* Luxury Modal & Lightbox System */
@keyframes backdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.lightbox-backdrop {
  position: fixed; inset: 0;
  background: rgba(6, 7, 10, 0.82) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  animation: backdropFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

.lightbox-backdrop .glass-card {
  background: rgba(15, 17, 23, 0.95) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(197, 160, 89, 0.32) !important;
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.8), 0 0 35px rgba(197, 160, 89, 0.12) !important;
  border-radius: 16px !important;
  padding: 26px 28px !important;
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-content {
  max-width: 90vw; max-height: 85vh; border-radius: var(--radius-md);
  border: 1px solid var(--card-border); box-shadow: 0 0 30px rgba(0,0,0,0.8);
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-close,
.lightbox-backdrop button[id*="btnClose"],
.lightbox-backdrop button[id*="close"] {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--text-secondary) !important;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 18px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.lightbox-close:hover,
.lightbox-backdrop button[id*="btnClose"]:hover,
.lightbox-backdrop button[id*="close"]:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: var(--gold-primary) !important;
  color: #ffffff !important;
  transform: scale(1.08);
}

/* Side Drawer for Lead Details */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 100;
  display: flex; justify-content: flex-end;
}

.drawer-panel {
  width: 420px; max-width: 100%; height: 100%; background: var(--bg-surface);
  border-left: 1px solid var(--card-border); padding: 24px;
  display: flex; flex-direction: column; gap: 16px; overflow-y: auto;
}

/* Tag Chips */
.tag-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px;
  border-radius: 12px; font-size: 11px; font-weight: 600;
  background: rgba(197, 160, 89, 0.15); color: var(--gold-light);
  border: 1px solid rgba(197, 160, 89, 0.3);
}

.tag-chip.danger { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border-color: rgba(239, 68, 68, 0.3); }
.tag-chip.success { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.3); }
.tag-chip.info { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border-color: rgba(59, 130, 246, 0.3); }
