/* ===== Onboarding Widget Styles ===== */
.onboarding-widget-fab {
  position: fixed;
  bottom: 88px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--mud-palette-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 1100;
}
.onboarding-widget-fab:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.onboarding-fab-icon {
  position: absolute;
}

.onboarding-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--mud-palette-info);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 10px;
  line-height: 1;
  pointer-events: none;
}

.onboarding-progress-ring {
  position: absolute;
  width: 56px;
  height: 56px;
  transform: rotate(-90deg);
}

.onboarding-progress-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 3;
}

.onboarding-progress-ring-fill {
  fill: none;
  stroke: white;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 0.4s ease;
}

.onboarding-widget {
  position: fixed;
  bottom: 88px;
  right: 24px;
  z-index: 1100;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  background-color: var(--mud-palette-background);
}

.onboarding-widget-expanded {
  width: 380px;
  height: 520px;
  display: flex;
  flex-direction: column;
}
@media (max-width: 480px) {
  .onboarding-widget-expanded {
    width: calc(100vw - 16px);
    height: calc(100dvh - var(--mud-appbar-height, 80px) - 16px);
  }
}

.onboarding-widget-animate-in {
  animation: onboarding-slide-up 0.25s ease-out;
}

@keyframes onboarding-slide-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 480px) {
  .onboarding-widget {
    bottom: 8px;
    right: 8px;
  }
  .onboarding-widget-fab {
    bottom: 72px;
    right: 8px;
  }
}
.onboarding-widget-header {
  background-color: var(--mud-palette-primary);
  color: white;
  flex-shrink: 0;
}

.onboarding-widget-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.onboarding-step-item {
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.onboarding-step-item:hover {
  background-color: var(--mud-palette-action-default-hover);
}

/* --- Dark mode overrides --- */
html.dark-mode .onboarding-widget-fab {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
html.dark-mode .onboarding-widget {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
