/* Modern Broadcast Dark System CSS - LiveCam Studio */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg-dark: #0a0c10; /* base dark */
  --bg-gradient: linear-gradient(135deg, #0a0c10 0%, #0d1117 100%);
  --bg-card: #121620;
  --bg-card-hover: #1a202c;
  --bg-nav: #0e121a;
  --border-color: rgba(255, 255, 255, 0.1);
  --border-active: rgba(0, 210, 255, 0.4);
  
  --text-main: #f0f4f8;
  --text-muted: #8b9bb4;
  --text-dim: #5a6880;

  --tally-off: #2d3748;
  --tally-preview: #e6a23c;
  --tally-live: #f56c6c;
  --tally-live-glow: rgba(245, 108, 108, 0.6);
  --tally-preview-glow: rgba(230, 162, 60, 0.6);

  --accent-cyan: #00d2ff;
  --accent-blue: #3b82f6;
  --accent-emerald: #10b981;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Glassmorphism Card Utility */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
}

.btn-cyan {
  background: linear-gradient(135deg, #00b4d8, #0077b6);
  box-shadow: 0 4px 14px rgba(0, 180, 216, 0.4);
}
.btn-cyan:hover {
  background: linear-gradient(135deg, #0096c7, #03045e);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-color);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.1rem;
}

/* Badges & Status Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-live {
  background: var(--tally-live);
  color: #fff;
  box-shadow: 0 0 12px var(--tally-live-glow);
  animation: pulse-live 1.5s infinite;
}

.badge-preview {
  background: var(--tally-preview);
  color: #111;
  box-shadow: 0 0 10px var(--tally-preview-glow);
}

.badge-off {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}

/* VU Meter styling */
.vu-meter-container {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.vu-meter-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981 60%, #e6a23c 85%, #f56c6c 100%);
  border-radius: 4px;
  transition: width 0.05s ease-out;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}
