@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-obsidian: #050811;
  --bg-surface: #0b101e;
  --bg-elevated: #11182b;
  --border-subtle: rgba(148, 163, 184, 0.11);
  --border-glow: rgba(6, 182, 212, 0.38);
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-violet: #8b5cf6;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-obsidian);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(6, 182, 212, 0.09), transparent 36%),
    radial-gradient(circle at 88% 12%, rgba(139, 92, 246, 0.08), transparent 34%),
    radial-gradient(circle at 50% 95%, rgba(16, 185, 129, 0.05), transparent 40%);
  color: #e2e8f0;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

.font-mono-tech {
  font-family: 'JetBrains Mono', monospace;
}

/* Glass Panels */
.glass-card {
  background: linear-gradient(180deg, rgba(16, 23, 42, 0.86) 0%, rgba(10, 15, 29, 0.92) 100%);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.65);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
  border-color: rgba(148, 163, 184, 0.2);
}

.glass-card-interactive:hover {
  border-color: var(--border-glow);
  box-shadow: 0 14px 36px -10px rgba(6, 182, 212, 0.16);
}

/* Sidebar Navigation */
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.65rem;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.16s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.nav-item:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
  color: #ecfeff;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.18) 0%, rgba(139, 92, 246, 0.08) 100%);
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: inset 3px 0 0 #06b6d4, 0 4px 20px -4px rgba(6, 182, 212, 0.22);
}

/* Pulsing Broadcast LEDs */
@keyframes pulse-emerald {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

@keyframes pulse-rose {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.75); }
  50% { box-shadow: 0 0 0 6px rgba(244, 63, 94, 0); }
}

.led-online {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #10b981;
  animation: pulse-emerald 2s infinite;
}

.led-rec {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #f43f5e;
  animation: pulse-rose 1.25s infinite;
}

.led-standby {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #06b6d4;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
}

.led-warn {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.led-stopped {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #475569;
}

/* Inputs & Buttons */
.studio-input {
  background: rgba(7, 11, 22, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #f1f5f9;
  border-radius: 0.55rem;
  padding: 0.55rem 0.8rem;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.studio-input:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.16);
}

.btn-primary {
  background: linear-gradient(135deg, #06b6d4 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.55rem;
  padding: 0.52rem 1rem;
  font-size: 0.84rem;
  transition: all 0.16s ease;
  box-shadow: 0 6px 18px -4px rgba(6, 182, 212, 0.45);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
  font-weight: 600;
  border-radius: 0.55rem;
  padding: 0.48rem 0.85rem;
  font-size: 0.82rem;
  transition: all 0.15s ease;
}

.btn-ghost:hover {
  background: rgba(51, 65, 85, 0.7);
  color: #ffffff;
  border-color: rgba(148, 163, 184, 0.32);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #060a14;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Broadcast Multi-Viewer Grid */
.multiview-cell {
  position: relative;
  background: #02040a;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.multiview-cell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
