:root {
  --vvs-sidebar-w: 256px;
  --vvs-sidebar-bg: #0c101b;
  --vvs-accent: #6366f1;
  --vvs-accent-2: #8b5cf6;
  --vvs-cyan: #06b6d4;
  --vvs-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #06b6d4 100%);
}

[data-bs-theme="dark"] {
  --vvs-bg: #0f1422;
  --vvs-surface: #151c2f;
  --vvs-surface-2: #1c253d;
  --vvs-border: rgba(148, 163, 184, 0.14);
  --vvs-text: #f1f5f9;
  --vvs-muted: #94a3b8;
}

[data-bs-theme="light"] {
  --vvs-bg: #f4f6fb;
  --vvs-surface: #ffffff;
  --vvs-surface-2: #f8fafc;
  --vvs-border: rgba(15, 23, 42, 0.09);
  --vvs-text: #0f172a;
  --vvs-muted: #64748b;
}

* { box-sizing: border-box; }

body.vvs-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--vvs-bg);
  color: var(--vvs-text);
  margin: 0;
  min-height: 100vh;
}

.vvs-shell {
  display: flex;
  min-height: 100vh;
}

/* Dark SaaS Sidebar */
.vvs-sidebar {
  width: var(--vvs-sidebar-w);
  background: var(--vvs-sidebar-bg);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.22s ease;
}

.vvs-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--vvs-gradient);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #fff;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

.vvs-nav {
  overflow-y: auto;
}

.vvs-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.58rem 0.85rem;
  margin-bottom: 2px;
  border-radius: 10px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.89rem;
  font-weight: 500;
  transition: all 0.16s ease;
}

.vvs-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.vvs-nav-link.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.14) 100%);
  border-left: 3px solid var(--vvs-accent);
  font-weight: 600;
}

.vvs-main {
  flex: 1;
  margin-left: var(--vvs-sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.vvs-topbar {
  height: 64px;
  background: var(--vvs-surface);
  border-bottom: 1px solid var(--vvs-border);
  position: sticky;
  top: 0;
  z-index: 1020;
}

.vvs-mock-strip {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.16), rgba(251, 191, 36, 0.12));
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}

.vvs-card {
  background: var(--vvs-surface);
  border: 1px solid var(--vvs-border);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.vvs-stat-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.vvs-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.45);
}

.vvs-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.vvs-btn-gradient {
  background: var(--vvs-gradient);
  border: none;
  color: #fff !important;
}
.vvs-btn-gradient:hover {
  opacity: 0.94;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--vvs-border);
  background: var(--vvs-surface-2);
  color: var(--vvs-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vvs-user-chip {
  border: 1px solid var(--vvs-border);
  background: var(--vvs-surface-2);
  color: var(--vvs-text);
  border-radius: 999px;
  padding: 4px 12px 4px 4px;
}

.vvs-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--vvs-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vvs-notif-menu { width: 340px; max-height: 420px; overflow-y: auto; }
.vvs-notif-unread { background: rgba(99, 102, 241, 0.08); }

.bg-indigo { background-color: #6366f1 !important; color: #fff !important; }
.xsmall { font-size: 0.76rem; }

/* Drag & drop upload zone */
.vvs-dropzone {
  border: 2px dashed rgba(99, 102, 241, 0.45);
  border-radius: 14px;
  padding: 2rem 1.25rem;
  text-align: center;
  cursor: pointer;
  background: var(--vvs-surface-2);
  transition: all 0.2s ease;
}
.vvs-dropzone.dragover {
  border-color: #06b6d4;
  background: rgba(6, 182, 212, 0.08);
}

/* Wizard Stepper */
.vvs-stepper {
  display: flex;
  gap: 0.75rem;
}
.vvs-step-pill {
  flex: 1;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: var(--vvs-surface-2);
  border: 1px solid var(--vvs-border);
  cursor: pointer;
  transition: all 0.16s ease;
}
.vvs-step-pill.active {
  border-color: var(--vvs-accent);
  background: rgba(99, 102, 241, 0.12);
}
.vvs-step-pill.done {
  border-color: #10b981;
}

/* Workflow Timeline */
.vvs-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--vvs-border);
}
.vvs-timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Calendar Grid */
.vvs-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.vvs-cal-cell {
  min-height: 112px;
  background: var(--vvs-surface-2);
  border: 1px solid var(--vvs-border);
  border-radius: 10px;
  padding: 6px;
}
.vvs-cal-event {
  font-size: 0.73rem;
  padding: 3px 6px;
  border-radius: 6px;
  margin-top: 4px;
  display: block;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Auth Page */
.vvs-auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.22), transparent 45%),
              radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.18), transparent 45%),
              var(--vvs-bg);
  padding: 1.5rem;
}

.vvs-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1035;
}

@media (max-width: 991.98px) {
  .vvs-sidebar { transform: translateX(-100%); }
  .vvs-sidebar.open { transform: translateX(0); }
  .vvs-sidebar-backdrop.open { display: block; }
  .vvs-main { margin-left: 0; }
  .vvs-cal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
