/* Premium dashboard boot overlay — matches dashboard-home design tokens */

#dashboard-loader.dash-boot-overlay {
  position: absolute;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(79, 70, 229, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(124, 58, 237, 0.12), transparent 50%),
    rgba(10, 10, 11, 0.88);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

/* Mobile: full result-view; desktop: content column only (sidebar stays visible) */
#dashboard-loader.dash-boot-overlay {
  inset: 0;
}
@media (min-width: 768px) {
  #result-view > #dashboard-loader.dash-boot-overlay {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
  }
  /* Sit over content area — parent already has md:pl-72 padding */
}

#dashboard-loader.dash-boot-revealed {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

#dashboard-boot-progress-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(63, 63, 70, 0.45);
  z-index: 2;
  overflow: hidden;
}

#dashboard-boot-progress {
  height: 100%;
  width: 8%;
  background: linear-gradient(90deg, #4f46e5, #7c3aed, #6366f1);
  background-size: 200% 100%;
  animation: dash-boot-progress-glow 1.4s ease-in-out infinite;
  transition: width 0.45s ease;
  border-radius: 0 2px 2px 0;
}

@keyframes dash-boot-progress-glow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

#dashboard-loader-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.25rem 1rem 2rem;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

#dashboard-boot-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
}

#dashboard-boot-tip {
  color: #71717a;
  font-size: 0.75rem;
  line-height: 1.45;
  min-height: 1.15em;
  transition: opacity 0.3s ease;
  margin-bottom: 1.25rem;
}

.dash-boot-search-skel {
  height: 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(39, 39, 42, 0.9);
  background: linear-gradient(90deg, #09090b 0%, #18181b 45%, #09090b 90%);
  background-size: 200% 100%;
  animation: dash-shimmer 1.5s ease-in-out infinite;
  max-width: 36rem;
  margin: 0 auto 1.25rem;
  width: 100%;
}

.dash-boot-kpi-pulse .dash-kpi-value,
.dash-boot-kpi-pulse .dash-kpi-delta {
  animation: dash-boot-pulse 1.2s ease-in-out infinite;
}

@keyframes dash-boot-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}

@keyframes dash-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.dash-boot-chart-skel {
  min-height: 14rem;
  border-radius: 1rem;
}

#dashboard-home-sync-chip {
  display: none;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: #a5b4fc;
  background: rgba(79, 70, 229, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 9999px;
  padding: 0.2rem 0.55rem;
  margin-left: 0.5rem;
}

#dashboard-home-sync-chip.is-visible {
  display: inline-flex;
}
