/* ==========================================================================
   Voice Broadcast Management Panel - Component Specific Styles
   ========================================================================== */

/* -------------------------------------------------------------
   7-Step Campaign Wizard
   ------------------------------------------------------------- */
.wizard-container {
  max-width: 900px;
  margin: 0 auto;
}

.wizard-steps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  position: relative;
  overflow-x: auto;
  padding: 10px 4px;
}

.wizard-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
  cursor: default;
  min-width: 90px;
}

.wizard-step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.wizard-step-item.active .wizard-step-circle {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 14px var(--primary-glow);
  transform: scale(1.08);
}

.wizard-step-item.completed .wizard-step-circle {
  background-color: var(--success);
  border-color: var(--success);
  color: white;
}

.wizard-step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
}

.wizard-step-item.active .wizard-step-label {
  color: var(--primary);
}

.wizard-step-item.completed .wizard-step-label {
  color: var(--text-primary);
}

.wizard-content-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.wizard-pane {
  display: none;
  animation: fadeIn 0.2s ease forwards;
}

.wizard-pane.active {
  display: block;
}

.wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* Radio / Selection Option Cards (Used in Wizard) */
.option-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.option-card {
  background-color: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-card:hover {
  border-color: var(--primary);
  background-color: rgba(99, 102, 241, 0.05);
}

.option-card.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(99, 102, 241, 0.03));
  box-shadow: 0 0 12px var(--primary-glow);
}

.option-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.option-card-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

.option-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* -------------------------------------------------------------
   Live Campaign Monitoring
   ------------------------------------------------------------- */
.live-monitor-header {
  background: linear-gradient(135deg, #1e1b4b, #1e293b);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.live-badge-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 4px 10px;
  border-radius: var(--radius-xl);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulseAnimation 1.5s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.progress-container {
  margin: 18px 0 10px;
}

.progress-bar-track {
  height: 18px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 9px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-color);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  border-radius: 9px;
  width: 0%;
  transition: width 0.5s ease-out;
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background-image: linear-gradient(
    -45deg, 
    rgba(255, 255, 255, 0.2) 25%, 
    transparent 25%, 
    transparent 50%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0.2) 75%, 
    transparent 75%, 
    transparent
  );
  background-size: 30px 30px;
  animation: moveStripes 2s linear infinite;
}

@keyframes moveStripes {
  0% { background-position: 0 0; }
  100% { background-position: 30px 30px; }
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 6px;
}

/* -------------------------------------------------------------
   Audio Player Component
   ------------------------------------------------------------- */
.inline-audio-player {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-xl);
}

.play-pause-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  transition: transform var(--transition-fast);
}

.play-pause-btn:hover {
  transform: scale(1.1);
}

.audio-time-label {
  font-size: 11px;
  font-family: monospace;
  color: var(--text-secondary);
}

/* Mic Recording Visualizer */
.recording-box {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  background-color: var(--bg-input);
}

.mic-active-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-size: 26px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
  transition: all var(--transition-fast);
}

.mic-active-btn.recording {
  animation: pulseAnimation 1.2s infinite;
}

/* -------------------------------------------------------------
   Cost Estimator Card (Wizard Step 6)
   ------------------------------------------------------------- */
.estimator-summary-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-top: 16px;
}

.estimator-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.estimator-row:last-child {
  border-bottom: none;
}

.estimator-row.total-row {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  border-top: 2px solid var(--border-color);
  margin-top: 8px;
  padding-top: 14px;
}

/* -------------------------------------------------------------
   Code Snippet / API Explorer
   ------------------------------------------------------------- */
.code-block {
  background-color: #0b1120;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: #38bdf8;
  overflow-x: auto;
  position: relative;
}

.btn-copy-code {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-copy-code:hover {
  color: var(--text-primary);
  border-color: var(--primary);
}

/* -------------------------------------------------------------
   Pagination
   ------------------------------------------------------------- */
.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-btn {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--text-primary);
}

.page-btn.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
