:root {
  --vx-bg: #f4f6fb;
  --vx-surface: #ffffff;
  --vx-sidebar: #0d111d;
  --vx-sidebar-hover: rgba(255, 255, 255, 0.07);
  --vx-primary: #4f46e5;
  --vx-primary-dark: #4338ca;
  --vx-accent: #06b6d4;
  --vx-emerald: #10b981;
  --vx-ink: #0f172a;
  --vx-muted: #64748b;
  --vx-border: #e2e8f0;
  --vx-radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--vx-bg);
  color: var(--vx-ink);
  margin: 0;
}

/* App Shell */
.vx-shell {
  display: flex;
  min-height: 100vh;
}

.vx-sidebar {
  width: 264px;
  background: linear-gradient(180deg, #0b1020 0%, #11182d 100%);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1030;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.vx-brand {
  padding: 20px 20px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.vx-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #fff;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.vx-nav {
  padding: 14px 12px;
  flex: 1;
  overflow-y: auto;
}

.vx-nav-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  padding: 10px 12px 6px;
}

.vx-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  margin-bottom: 3px;
  border-radius: 10px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.16s ease;
}

.vx-nav-link:hover {
  background: var(--vx-sidebar-hover);
  color: #ffffff;
}

.vx-nav-link.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.28), rgba(6, 182, 212, 0.12));
  color: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.vx-nav-link i {
  font-size: 1.02rem;
  width: 20px;
  text-align: center;
}

.vx-sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.2);
}

.vx-main {
  margin-left: 264px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vx-topbar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--vx-border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.vx-content {
  padding: 26px 28px 40px;
  max-width: 1440px;
  width: 100%;
}

/* Cards & Badges */
.vx-card {
  background: var(--vx-surface);
  border: 1px solid var(--vx-border);
  border-radius: var(--vx-radius);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.vx-kpi-card {
  background: var(--vx-surface);
  border: 1px solid var(--vx-border);
  border-radius: var(--vx-radius);
  padding: 20px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.vx-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.vx-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.bg-indigo { background-color: #4f46e5 !important; color: #fff !important; }
.bg-indigo-soft { background: #eef2ff; color: #4f46e5; }
.bg-emerald-soft { background: #ecfdf5; color: #059669; }
.bg-cyan-soft { background: #ecfeff; color: #0891b2; }
.bg-amber-soft { background: #fffbeb; color: #d97706; }
.bg-rose-soft { background: #fff1f2; color: #e11d48; }

.badge-provider-sarvam { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-provider-bolna  { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-provider-vapi   { background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; }
.badge-provider-simulator { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }

.btn-vx {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: 10px;
  padding: 9px 18px;
}

.btn-vx:hover {
  background: linear-gradient(135deg, #4338ca, #4f46e5);
  color: #fff;
}

/* Voice Lab Chat */
.vx-chat-box {
  height: 420px;
  overflow-y: auto;
  background: #0f172a;
  border-radius: 14px;
  padding: 18px;
  color: #e2e8f0;
}

.vx-bubble {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 14px;
  margin-bottom: 12px;
  font-size: 0.92rem;
  line-height: 1.48;
}

.vx-bubble-ai {
  background: rgba(99, 102, 241, 0.22);
  border: 1px solid rgba(129, 140, 248, 0.35);
  color: #f8fafc;
}

.vx-bubble-user {
  background: #10b981;
  color: #052e16;
  font-weight: 500;
  margin-left: auto;
}

.vx-tool-pill {
  background: rgba(6, 182, 212, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: #67e8f9;
  border-radius: 10px;
  padding: 8px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  margin-bottom: 10px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.vx-mic-pulse {
  animation: vxPulse 1.4s infinite;
}

@keyframes vxPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Landing Hero */
.vx-hero {
  background: radial-gradient(circle at 18% 20%, rgba(99, 102, 241, 0.28), transparent 40%),
              radial-gradient(circle at 82% 15%, rgba(6, 182, 212, 0.24), transparent 36%),
              linear-gradient(180deg, #070b16 0%, #0f172a 100%);
  color: #f8fafc;
}

.vx-wave-bar {
  width: 5px;
  border-radius: 99px;
  background: linear-gradient(180deg, #38bdf8, #818cf8);
  animation: vxWave 1.2s ease-in-out infinite alternate;
}

@keyframes vxWave {
  from { height: 10px; opacity: 0.6; }
  to { height: 42px; opacity: 1; }
}

@media (max-width: 991.98px) {
  .vx-sidebar {
    position: static;
    width: 100%;
    height: auto;
  }
  .vx-shell {
    flex-direction: column;
  }
  .vx-main {
    margin-left: 0;
  }
  .vx-topbar {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .vx-topbar .btn {
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 6px 12px;
  }
  .vx-content {
    padding: 16px;
  }
}
