/* Upgrade Wizard Styles — Tabler-native */

/* ── Stepper container ── */
.bs-stepper {
  background: transparent;
}

/* ── Stepper header ── */
.bs-stepper .bs-stepper-header {
  padding: 1.5rem 1rem;
  background: var(--tblr-bg-surface-secondary, #f8fafc);
  border-bottom: 1px solid var(--tblr-border-color, #e6e7e9);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bs-stepper .step {
  flex: 1;
  text-align: center;
}

.bs-stepper .step-trigger {
  padding: 0;
  background: transparent;
  border: none;
  outline: none;
  cursor: default;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.2s;
}

.bs-stepper .step-trigger:focus {
  box-shadow: none;
  outline: none;
}

/* ── Step circles ── */
.bs-stepper .bs-stepper-circle {
  width: 3rem;
  height: 3rem;
  font-size: 1.25rem;
  background: var(--tblr-bg-surface, #fff);
  border: 2px solid var(--tblr-border-color, #e6e7e9);
  color: var(--tblr-secondary, #626976);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.375rem;
  transition: all 0.2s;
}

.bs-stepper .step.active .bs-stepper-circle {
  background: var(--tblr-primary);
  border-color: var(--tblr-primary);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(var(--tblr-primary-rgb), 0.15);
}

/* ── Step labels ── */
.bs-stepper .step .bs-stepper-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--tblr-secondary, #626976);
  display: block;
  transition: color 0.2s;
}

.bs-stepper .step.active .bs-stepper-label {
  color: var(--tblr-primary);
  font-weight: 600;
}

/* ── Lines between steps ── */
.bs-stepper .line {
  flex: 1;
  background-color: var(--tblr-border-color, #e6e7e9);
  height: 2px;
  min-height: 2px;
  margin: 0 0.75rem;
  align-self: flex-start;
  margin-top: 1.5rem;
}

/* ── Warning step (orange) ── */
.bs-stepper .warning-step .bs-stepper-circle {
  background: var(--tblr-warning);
  border-color: var(--tblr-warning);
  color: #fff;
}

.bs-stepper .warning-step.active .bs-stepper-circle {
  background: var(--tblr-warning);
  border-color: var(--tblr-warning);
  box-shadow: 0 0 0 3px rgba(var(--tblr-warning-rgb), 0.2);
}

.bs-stepper .warning-step .bs-stepper-label,
.bs-stepper .warning-step.active .bs-stepper-label {
  color: var(--tblr-warning);
  font-weight: 600;
}

/* ── OK step (green — no warnings) ── */
.bs-stepper .ok-step .bs-stepper-circle {
  background: var(--tblr-success);
  border-color: var(--tblr-success);
  color: #fff;
}

.bs-stepper .ok-step.active .bs-stepper-circle {
  background: var(--tblr-success);
  border-color: var(--tblr-success);
  box-shadow: 0 0 0 3px rgba(var(--tblr-success-rgb), 0.2);
}

.bs-stepper .ok-step .bs-stepper-label,
.bs-stepper .ok-step.active .bs-stepper-label {
  color: var(--tblr-success);
  font-weight: 600;
}

/* ── Completed step (green checkmark) ── */
.bs-stepper .step.completed .bs-stepper-circle {
  background: var(--tblr-success);
  border-color: var(--tblr-success);
  color: #fff;
}

.bs-stepper .step.completed .bs-stepper-label {
  color: var(--tblr-success);
}

/* ── Content area ── */
.bs-stepper-content {
  padding: 0;
}

.bs-stepper-content .content {
  display: none;
}

.bs-stepper-content .content.active {
  display: block;
}

/* ── Release notes markdown ── */
.release-notes {
  background-color: var(--tblr-bg-surface-secondary, #f8fafc);
  font-size: 0.875rem;
  line-height: 1.6;
  max-height: 300px;
  overflow-y: auto;
}

.release-notes h1,
.release-notes h2,
.release-notes h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.release-notes h1 {
  font-size: 1.25rem;
  border-bottom: 1px solid var(--tblr-border-color, #e6e7e9);
  padding-bottom: 0.5rem;
}

.release-notes h2 {
  font-size: 1.1rem;
  border-bottom: 1px solid var(--tblr-border-color, #e6e7e9);
  padding-bottom: 0.35rem;
}

.release-notes h3 {
  font-size: 1rem;
}

.release-notes ul,
.release-notes ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.release-notes li {
  margin-bottom: 0.25rem;
}

.release-notes code {
  padding: 0.125rem 0.25rem;
  background: var(--tblr-bg-surface, #e9ecef);
  border-radius: 3px;
  font-size: 0.8125rem;
}

.release-notes pre {
  padding: 0.75rem;
  background: var(--tblr-bg-surface, #e9ecef);
  border-radius: var(--tblr-border-radius, 4px);
  overflow-x: auto;
}

.release-notes pre code {
  padding: 0;
  background: transparent;
}

.release-notes p {
  margin-bottom: 0.5rem;
}

.release-notes a {
  color: var(--tblr-primary);
}

.release-notes blockquote {
  border-left: 3px solid var(--tblr-border-color, #e6e7e9);
  padding-left: 1rem;
  color: var(--tblr-secondary);
  margin-bottom: 0.75rem;
}

/* ── Collapsible sections ── */
.collapse-toggle .fa-chevron-down {
  transition: transform 0.2s;
}

.collapse-toggle:not(.collapsed) .fa-chevron-down {
  transform: rotate(180deg);
}

/* ── Full-page spinner overlay ── */
#upgradeSpinner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#upgradeSpinner.active {
  display: flex;
}

#upgradeSpinner .spinner-content {
  color: white;
  text-align: center;
}

#upgradeSpinner .spinner-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}
