/* Onboarding Checklist Styles */

/* Mini sticky view */
.onboarding-miniBar {
  position: fixed;
  top: 5.5rem;
  left: 0;
  right: 0;
  padding: 0.5rem 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  z-index: 999; /* Higher than sidebar */
}

[data-theme="light"] .onboarding-miniBar {
  background-color: var(--ifm-color-primary-lightest);
}

[data-theme="dark"] .onboarding-miniBar {
  background-color: var(--ifm-color-primary-darkest);
}

.onboarding-miniBarContent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto;
}

.onboarding-miniProgressSection {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.onboarding-miniTitle {
  font-weight: 600;
  color: white;
  white-space: nowrap;
}

.onboarding-miniCounter {
  border-radius: 2rem;
  padding: 0.1rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

[data-theme="light"] .onboarding-miniCounter {
  background-color: white;
  color: var(--ifm-color-primary);
}

[data-theme="dark"] .onboarding-miniCounter {
  background-color: var(--ifm-background-color);
  color: var(--ifm-color-primary-lightest);
}

.onboarding-miniProgressBar {
  flex-grow: 1;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  margin: 0 1.5rem;
  overflow: hidden;
}

.onboarding-miniProgressBarFill {
  height: 100%;
  transition: width 0.5s ease;
  background-color: white;
}

.onboarding-miniExpandButton {
  padding: 0.3rem 1rem;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.onboarding-miniExpandButton:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Main checklist container */
.onboarding-checklistContainer {
  position: relative;
  z-index: 10;
  margin: 1.5rem 0 2.5rem;
  border-radius: var(--ifm-global-radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* Header styling */
.onboarding-checklistHeader {
  cursor: pointer;
  padding: 0.75rem 1rem;
}

[data-theme="light"] .onboarding-checklistHeader {
  background-color: var(--ifm-color-primary-lightest);
}

[data-theme="dark"] .onboarding-checklistHeader {
  background-color: var(--ifm-color-primary-darkest);
}

.onboarding-headerContent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.onboarding-titleSection {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.onboarding-progressCounter {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2rem;
  padding: 0.2rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 3rem;
}

[data-theme="light"] .onboarding-progressCounter {
  background-color: white;
  color: var(--ifm-color-primary);
}

[data-theme="dark"] .onboarding-progressCounter {
  background-color: var(--ifm-background-color);
  color: var(--ifm-color-primary-lightest);
}

.onboarding-toggleButton {
  background: none;
  border: none;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem;
  margin-left: 0.5rem;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding-toggleButton:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.onboarding-progressBarContainer {
  height: 6px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: hidden;
}

.onboarding-progressBarFill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background-color: white;
  transition: width 0.5s ease;
}

:root {
  --ifm-color-primary-rgb: 193, 15, 69;
  --ifm-color-primary-lightest-rgb: 242, 82, 139;
}

[data-theme="dark"] {
  --ifm-color-primary-rgb: 239, 74, 130;
  --ifm-color-primary-lightest-rgb: 247, 160, 190;
}

/* Checklist body */
.onboarding-checklistBody {
  background-color: var(--ifm-card-background-color);
}

/* Success banner */
.onboarding-successBanner {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .onboarding-successBanner {
  background-color: rgba(25, 135, 84, 0.1);
}

[data-theme="dark"] .onboarding-successBanner {
  background-color: rgba(117, 183, 152, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.onboarding-successTitle {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

[data-theme="light"] .onboarding-successTitle {
  color: rgb(0, 150, 62);
}

[data-theme="dark"] .onboarding-successTitle {
  color: rgb(117, 183, 152);
}

.onboarding-successText {
  font-size: 0.9rem;
}

[data-theme="light"] .onboarding-successText {
  color: rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .onboarding-successText {
  color: rgba(255, 255, 255, 0.8);
}

/* Content area */
.onboarding-checklistContent {
  padding: 1rem;
  max-height: 50vh;
  overflow-y: auto;
}

/* Step styling */
.onboarding-step {
  margin-bottom: 1.25rem;
  padding: 0.75rem;
  border-radius: var(--ifm-global-radius);
}

[data-theme="light"] .onboarding-step.completed {
  background-color: rgba(25, 135, 84, 0.05);
}

[data-theme="dark"] .onboarding-step.completed {
  background-color: rgba(117, 183, 152, 0.1);
}

[data-theme="light"] .onboarding-step.in-progress {
  background-color: rgba(255, 193, 7, 0.05);
}

[data-theme="dark"] .onboarding-step.in-progress {
  background-color: rgba(255, 202, 44, 0.1);
}

[data-theme="light"] .onboarding-step.pending {
  background-color: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .onboarding-step.pending {
  background-color: rgba(108, 117, 125, 0.1);
}

.onboarding-step.active {
  border-left: 3px solid;
}

[data-theme="light"] .onboarding-step.active {
  border-left-color: var(--ifm-color-primary);
}

[data-theme="dark"] .onboarding-step.active {
  border-left-color: var(--ifm-color-primary-lightest);
}

.onboarding-stepHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  cursor: pointer;
}

[data-theme="light"] .onboarding-stepHeader {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .onboarding-stepHeader {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.onboarding-stepTitle {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.onboarding-stepStatus {
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

[data-theme="light"] .onboarding-stepStatus.completed {
  background-color: rgba(25, 135, 84, 0.1);
  color: rgb(0, 150, 62);
}

[data-theme="dark"] .onboarding-stepStatus.completed {
  background-color: rgba(117, 183, 152, 0.1);
  color: rgb(117, 183, 152);
}

[data-theme="light"] .onboarding-stepStatus.in-progress {
  background-color: rgba(255, 193, 7, 0.1);
  color: rgb(200, 135, 0);
}

[data-theme="dark"] .onboarding-stepStatus.in-progress {
  background-color: rgba(255, 202, 44, 0.1);
  color: rgb(255, 202, 44);
}

[data-theme="light"] .onboarding-stepStatus.pending {
  background-color: rgba(0, 0, 0, 0.06);
  color: rgb(120, 120, 120);
}

[data-theme="dark"] .onboarding-stepStatus.pending {
  background-color: rgba(108, 117, 125, 0.1);
  color: rgb(173, 181, 189);
}

.onboarding-subStepsList {
  list-style: none;
  padding: 0;
  margin: 0;
}

.onboarding-subStepItem {
  margin-bottom: 0.5rem;
}

.onboarding-subStepLabel {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-radius: var(--ifm-global-radius);
  cursor: pointer;
}

.onboarding-subStepCheckbox {
  width: 18px;
  height: 18px;
  margin-right: 0.75rem;
}

[data-theme="light"] .onboarding-subStepCheckbox {
  accent-color: var(--ifm-color-primary);
}

[data-theme="dark"] .onboarding-subStepCheckbox {
  accent-color: var(--ifm-color-primary-lighter);
}

.onboarding-subStepText {
  transition: opacity 0.2s ease;
}

.onboarding-subStepText.completed {
  text-decoration: line-through;
  opacity: 0.6;
}

/* Footer */
.onboarding-checklistFooter {
  padding: 1rem;
  text-align: center;
}

[data-theme="light"] .onboarding-checklistFooter {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .onboarding-checklistFooter {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.onboarding-resetButton {
  background: none;
  padding: 0.5rem 1.25rem;
  border-radius: var(--ifm-global-radius);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="light"] .onboarding-resetButton {
  border: 1px solid var(--ifm-color-primary);
  color: var(--ifm-color-primary);
}

[data-theme="dark"] .onboarding-resetButton {
  border: 1px solid var(--ifm-color-primary-lighter);
  color: var(--ifm-color-primary-lighter);
}

.onboarding-resetButton:hover {
  opacity: 0.8;
}

/* Floating checklist when scrolling */
.onboarding-floatingChecklist {
  position: fixed;
  top: 5.5rem;
  right: 1rem;
  width: 280px;
  z-index: 999;
  border-radius: var(--ifm-global-radius);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  background-color: var(--ifm-card-background-color);
  overflow: hidden;
}

[data-theme="light"] .onboarding-floatingChecklist {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .onboarding-floatingChecklist {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.onboarding-floatingHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  color: white;
}

[data-theme="light"] .onboarding-floatingHeader {
  background-color: var(--ifm-color-primary-lightest);
}

[data-theme="dark"] .onboarding-floatingHeader {
  background-color: var(--ifm-color-primary-darkest);
}

.onboarding-floatingTitle {
  font-weight: 600;
  font-size: 0.95rem;
}

.onboarding-floatingControls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.onboarding-floatingCounter {
  border-radius: 2rem;
  padding: 0.1rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
}

[data-theme="light"] .onboarding-floatingCounter {
  background-color: white;
  color: var(--ifm-color-primary);
}

[data-theme="dark"] .onboarding-floatingCounter {
  background-color: var(--ifm-background-color);
  color: var(--ifm-color-primary-lightest);
}

.onboarding-closeButton {
  background: none;
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.onboarding-closeButton:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.onboarding-floatingSteps {
  padding: 0.5rem;
}

.onboarding-floatingStep {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: var(--ifm-global-radius);
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.onboarding-floatingStep:hover {
  background-color: var(--ifm-hover-overlay);
}

.onboarding-floatingStep.active {
  border-left: 3px solid;
}

[data-theme="light"] .onboarding-floatingStep.active {
  background-color: rgba(var(--ifm-color-primary-rgb), 0.08);
  border-left-color: var(--ifm-color-primary);
}

[data-theme="dark"] .onboarding-floatingStep.active {
  background-color: rgba(var(--ifm-color-primary-lightest-rgb), 0.08);
  border-left-color: var(--ifm-color-primary-lightest);
}

.onboarding-floatingStepTitle {
  font-size: 0.9rem;
  font-weight: 500;
}

.onboarding-floatingStepProgress {
  font-size: 0.75rem;
  opacity: 0.8;
}

[data-theme="light"]
  .onboarding-floatingStep.completed
  .onboarding-floatingStepTitle {
  color: rgb(0, 150, 62);
}

[data-theme="dark"]
  .onboarding-floatingStep.completed
  .onboarding-floatingStepTitle {
  color: rgb(117, 183, 152);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .onboarding-miniProgressBar {
    margin: 0 0.5rem;
  }

  .onboarding-floatingChecklist {
    width: 240px;
  }

  .onboarding-miniTitle {
    font-size: 0.9rem;
  }
}
