/* ==========================================================================
   Nyukt.ai Fleet Card Collection AI Agent — Enterprise Design System
   Top Tier Company Visual Architecture
   ========================================================================== */

:root {
  --bg-deep: #07090e;
  --bg-surface: #0e131f;
  --bg-card: rgba(16, 23, 38, 0.75);
  --bg-card-hover: rgba(24, 34, 56, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(99, 102, 241, 0.35);
  --border-highlight: rgba(139, 92, 246, 0.4);

  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-muted: #475569;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  --glow-primary: 0 0 25px rgba(99, 102, 241, 0.35);
  --glow-green: 0 0 20px rgba(16, 185, 129, 0.4);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Background Light FX */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.18;
  animation: pulseOrb 8s infinite alternate ease-in-out;
}

.orb-primary {
  width: 600px;
  height: 600px;
  background: var(--accent-primary);
  top: -150px;
  left: -100px;
}

.orb-secondary {
  width: 700px;
  height: 700px;
  background: var(--accent-secondary);
  bottom: -250px;
  right: -150px;
  animation-delay: -4s;
}

.orb-cyan {
  width: 450px;
  height: 450px;
  background: var(--accent-cyan);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.08;
}

@keyframes pulseOrb {
  0% { transform: scale(1) translate(0, 0); opacity: 0.15; }
  100% { transform: scale(1.1) translate(20px, 20px); opacity: 0.25; }
}

.tech-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* App Container Layout */
.app-container {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
}

/* Sidebar Layout */
.sidebar {
  width: 300px;
  background: rgba(10, 14, 23, 0.88);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  flex-shrink: 0;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.brand-logo-hex {
  width: 42px;
  height: 42px;
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.brand-accent {
  color: var(--accent-primary);
}

.brand-tag {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.nav-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
  margin: 1.5rem 0;
}

/* Dedicated Agent Profile Card */
.agent-profile-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.04) 100%);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.agent-card-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.agent-avatar-container {
  position: relative;
}

.agent-avatar-img {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.agent-avatar-img svg {
  width: 24px;
  height: 24px;
}

.online-indicator {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: var(--accent-green);
  border: 2.5px solid var(--bg-deep);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
}

.agent-persona-name {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.agent-role-badge {
  display: inline-block;
  font-size: 0.72rem;
  color: #c7d2fe;
  font-weight: 600;
  margin-top: 0.15rem;
}

.agent-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  padding-top: 0.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.agent-mini-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.mini-label {
  color: var(--text-tertiary);
  font-weight: 500;
}

.mini-val {
  color: var(--text-secondary);
  font-weight: 600;
  font-family: var(--font-mono);
}

.mini-val.highlight {
  color: #a5b4fc;
}

/* Sidebar Quick Metrics */
.sidebar-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 0.875rem;
}

.sidebar-metrics-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.s-metric-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  transition: all 0.2s ease;
}

.s-metric-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.s-metric-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s-metric-icon svg {
  width: 20px;
  height: 20px;
}

.icon-pending {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
}

.icon-done {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
}

.icon-rate {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-primary);
}

.s-metric-info {
  display: flex;
  flex-direction: column;
}

.s-metric-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono);
  line-height: 1.2;
}

.s-metric-lbl {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.sidebar-spacer { flex: 1; min-height: 1.5rem; }

.sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.system-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.system-status-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.difc-enterprise-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
}

/* Main Content Layout */
.main-content {
  flex: 1;
  padding: 2.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Top Navigation Header */
.top-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-bottom: 0.4rem;
}

.bc-arrow {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.bc-item.active {
  color: var(--accent-primary);
  font-weight: 600;
}

.header-main-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.header-sub-title {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.sheet-info-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  font-size: 0.82rem;
}

.sheet-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
}

.sheet-name {
  font-family: var(--font-mono);
  color: #ffffff;
  font-weight: 600;
}

.sheet-live-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.btn-icon-refresh {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon-refresh:hover {
  background: var(--bg-card-hover);
  color: #ffffff;
  border-color: var(--border-glow);
  transform: rotate(45deg);
}

.btn-icon-refresh svg {
  width: 20px;
  height: 20px;
}

/* CSV Upload — button + dialog (internal console only) */
.btn-upload-sheet {
  height: 42px;
  padding: 0 1rem;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-upload-sheet:hover {
  background: var(--bg-card-hover);
  color: #ffffff;
  border-color: var(--border-glow);
}

.btn-upload-sheet svg { width: 18px; height: 18px; }

.upload-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7, 9, 14, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.upload-modal {
  width: min(560px, 100%);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.upload-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.upload-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.upload-close {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.upload-close:hover { color: #ffffff; }

.upload-body { padding: 1.5rem; }

.upload-modes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.upload-mode {
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-glass);
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-mode:hover { border-color: var(--border-glow); }

.upload-mode input { margin-top: 0.2rem; accent-color: var(--accent-primary); }

.um-text { display: flex; flex-direction: column; gap: 0.25rem; }
.um-text strong { font-size: 0.9rem; color: var(--text-primary); font-weight: 650; }
.um-text span { font-size: 0.78rem; color: var(--text-tertiary); line-height: 1.45; }

.upload-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 1.75rem 1rem;
  border: 1.5px dashed var(--border-subtle);
  border-radius: 14px;
  background: var(--bg-glass);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.upload-drop:hover {
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
}

.ud-icon { width: 26px; height: 26px; color: var(--accent-primary); }
.ud-label { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); word-break: break-all; }
.ud-hint { font-size: 0.74rem; color: var(--text-muted); font-family: var(--font-mono); }

.upload-result {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.83rem;
  line-height: 1.5;
}

.upload-result.ok {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.upload-result.bad {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.upload-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-glass);
}

.upload-btn-cancel,
.upload-btn-go {
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-btn-cancel {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.upload-btn-cancel:hover { color: #ffffff; border-color: var(--border-glow); }

.upload-btn-go {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  color: #ffffff;
}

.upload-btn-go:hover:not(:disabled) { box-shadow: var(--glow-primary); }
.upload-btn-go:disabled { opacity: 0.45; cursor: not-allowed; }

/* Notice Banner */
.notice-banner {
  padding: 1.1rem 1.5rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  animation: fadeIn 0.3s ease;
}

.notice-banner.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.notice-banner.info {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
}

/* ════════════ COMMAND CENTER HERO CARD ════════════ */
.command-center-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  position: relative;
}

.cc-idle-panel {
  padding: 3rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cc-idle-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 650px;
}

.cc-icon-orb {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 1.25rem;
  box-shadow: var(--glow-primary);
}

.cc-icon-orb svg {
  width: 32px;
  height: 32px;
}

.cc-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.cc-headline {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.cc-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.cc-action-block {
  margin-bottom: 1.5rem;
}

.hero-call-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem 3.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  border: none;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.45);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-call-btn:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 45px rgba(99, 102, 241, 0.65);
}

.hero-call-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.hero-call-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.hero-call-btn .btn-icon svg {
  width: 26px;
  height: 26px;
}

/* Auto-Dialer & Re-call Scheduler Card */
.auto-dialer-card {
  width: 100%;
  max-width: 620px;
  margin-top: 1.5rem;
  background: rgba(10, 14, 23, 0.7);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  text-align: left;
}

.ad-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.ad-title-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ad-icon {
  width: 22px;
  height: 22px;
  color: var(--accent-primary);
}

.ad-titles {
  display: flex;
  flex-direction: column;
}

.ad-main-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.ad-sub-title {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.ad-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ad-toggle-lbl {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
}

.ad-toggle-lbl.active {
  color: var(--accent-green);
}

/* Custom Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  transition: 0.3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
}

input:checked + .slider {
  background-color: var(--accent-green);
  border-color: var(--accent-green);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.ad-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1rem;
}

.ad-input-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ad-input-group label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.input-unit-combine {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
}

.input-unit-combine input {
  width: 65px;
  padding: 0.45rem 0.6rem;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  outline: none;
}

.input-unit-combine select {
  padding: 0.45rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-left: 1px solid var(--border-subtle);
  color: var(--accent-primary);
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.ad-timer-countdown {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.35rem 0.875rem;
  border-radius: 10px;
}

.cd-lbl {
  font-size: 0.75rem;
  color: var(--accent-green);
  font-weight: 600;
}

.cd-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.td-lastcall {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.cc-quick-facts-strip {
  display: flex;
  gap: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
  justify-content: center;
}

.q-fact {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.q-fact strong {
  color: var(--text-secondary);
}

/* ACTIVE CALL PANEL */
.cc-live-panel {
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
  border-bottom: 2px solid var(--accent-green);
  animation: slideDown 0.35s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

.live-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.live-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 20px;
}

.live-red-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 12px var(--accent-green);
  animation: pulseDot 1.2s infinite ease-in-out;
}

.live-pill-text {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-green);
  letter-spacing: 0.05em;
}

.live-timer {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.3rem 0.875rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.live-body-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 2rem;
}

.driver-focus-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.df-avatar {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.df-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.df-name-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.df-lang-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
  border-radius: 6px;
}

.df-meta-pills {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

/* Audio Waveform Effect */
.audio-waveform-box {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 1rem;
}

.wave-bar {
  width: 4px;
  background: var(--accent-green);
  border-radius: 4px;
  height: 8px;
  animation: waveAnim 1.2s infinite ease-in-out alternate;
}

.bar-1 { animation-delay: 0.1s; }
.bar-2 { animation-delay: 0.3s; }
.bar-3 { animation-delay: 0.5s; }
.bar-4 { animation-delay: 0.2s; }
.bar-5 { animation-delay: 0.4s; }
.bar-6 { animation-delay: 0.6s; }
.bar-7 { animation-delay: 0.15s; }
.bar-8 { animation-delay: 0.35s; }
.bar-9 { animation-delay: 0.55s; }

@keyframes waveAnim {
  0% { height: 6px; opacity: 0.4; }
  100% { height: 32px; opacity: 1; }
}

.live-controls-group {
  display: flex;
  gap: 0.875rem;
}

.live-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-mute {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
}

.btn-mute:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-hangup {
  background: var(--accent-red);
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.btn-hangup:hover {
  background: #dc2626;
  transform: translateY(-2px);
}

.live-btn svg {
  width: 20px;
  height: 20px;
}

/* ════════════ OUTCOME DISPOSITION CARD ════════════ */
.outcome-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-highlight);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--glass-shadow);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.outcome-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.outcome-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.check-icon {
  width: 22px;
  height: 22px;
  color: var(--accent-green);
}

.driver-highlight {
  color: var(--accent-primary);
}

.outcome-subtext {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.outcome-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.875rem;
}

.outcome-btn {
  padding: 0.875rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.outcome-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.outcome-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ════════════ DRIVER CSV QUEUE TABLE SECTION ════════════ */
.driver-queue-section {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--glass-shadow);
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.queue-title-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.queue-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}

.queue-title svg {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

.driver-count-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  color: var(--text-secondary);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 0.875rem;
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  pointer-events: none;
}

.search-box input {
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.85rem;
  width: 280px;
  outline: none;
  transition: all 0.2s ease;
}

.search-box input:focus {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.05);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.filter-pills-group {
  display: flex;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.25rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.f-pill {
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-tertiary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.f-pill.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Data Table Styling */
.table-responsive-wrapper {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
}

.driver-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.driver-data-table th {
  padding: 0.875rem 1.125rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  background: rgba(10, 14, 23, 0.6);
  border-bottom: 1px solid var(--border-subtle);
}

.driver-data-table td {
  padding: 1.1rem 1.125rem;
  font-size: 0.88rem;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}

.driver-data-table tbody tr {
  transition: background 0.15s ease;
}

.driver-data-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

/* Row states */
.driver-data-table tr.row-calling td {
  background: rgba(16, 185, 129, 0.12) !important;
}

.driver-data-table tr.row-calling td:first-child {
  border-left: 4px solid var(--accent-green);
}

.driver-data-table tr.row-next td {
  background: rgba(99, 102, 241, 0.08);
}

.driver-data-table tr.row-next td:first-child {
  border-left: 4px solid var(--accent-primary);
}

.driver-data-table tr.row-blocked td {
  opacity: 0.45;
}

.th-sl { width: 70px; font-family: var(--font-mono); color: var(--text-tertiary); }
.td-driver { font-weight: 700; color: #ffffff; }
.td-card { font-family: var(--font-mono); font-size: 0.84rem; color: var(--text-secondary); }
.td-loc { color: var(--accent-cyan); font-weight: 600; }

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-pending {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.badge-next {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-done {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-blocked {
  background: rgba(107, 114, 128, 0.15);
  color: #d1d5db;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.table-footer-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  padding-top: 0.5rem;
}

.code-tag {
  font-family: var(--font-mono);
  color: #c7d2fe;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.tf-hint {
  color: var(--text-secondary);
}

/* Skeleton Loading State */
.tbl-loading-state {
  padding: 3rem !important;
}

.sk-row {
  height: 22px;
  background: linear-gradient(90deg, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.02) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
  margin-bottom: 0.875rem;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Responsive Scaling */
@media (max-width: 1024px) {
  .app-container { flex-direction: column; }
  .sidebar { width: 100%; }
  .main-content { padding: 1.5rem; }
  .live-body-grid { grid-template-columns: 1fr; }
}

/* Login Page Styling */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 3rem 2.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  animation: fadeIn 0.4s ease-out;
}

.login-mark {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.5rem;
}

.login-icon {
  width: 38px;
  height: 38px;
}

.brand-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.brand-logo em {
  font-style: normal;
  color: var(--accent-primary);
}

.login-card .sub {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.login-card input[type="password"] {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  margin-bottom: 1.25rem;
  transition: all 0.2s ease;
}

.login-card input[type="password"]:focus {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.login-card .btn-primary {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  border-radius: 14px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
  transition: all 0.2s ease;
}

.login-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.65);
}

.login-card .error {
  width: 100%;
  padding: 0.875rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 10px;
  color: #fca5a5;
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.cred {
  margin-top: 2rem;
}

.partner-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-tertiary);
}

