:root {
  --ngs-gap: 16px;
  --ngs-max: 960px;
  --ngs-bg: #fff;
  --ngs-fg: #111;
  --ngs-muted: #666;
  --ngs-accent: #22c55e;
  --ngs-bar: #e5e7eb;
  --ngs-border: #e5e7eb;
  /* Added hover effect CSS variables */
  --ngs-hover-effect: brightness;
  --ngs-hover-intensity: 0.9;
  --ngs-hover-duration: 200ms;
  /* Added completion effect CSS variables */
  --ngs-completion-color: #22c55e;
  --ngs-completion-duration: 800ms;
}

/* Updated dark theme with modern green accent */
.ng-stepper[data-theme="dark"] {
  --ngs-bg: #0f1115;
  --ngs-fg: #e8eaed;
  --ngs-muted: #9aa0a6;
  --ngs-accent: #4ade80;
  --ngs-bar: #262a33;
  --ngs-border: #273142;
}

/* Modern stepper design with clean styling - removed border and shadow */
.ng-stepper {
  color: var(--ngs-fg);
  background: var(--ngs-bg);
  border-radius: 16px;
  padding: 24px;
  overflow: hidden;
}

.ng-stepper * {
  box-sizing: border-box;
}

/* Modern header design with clean spacing */
.ng-stepper__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: var(--ngs-max);
  margin: 0 auto 16px;
  padding: 16px;
  border-radius: 12px;
  /* Removed background color */
}

/* Modern pill-style TOC items */
.ng-stepper__toc {
  display: flex;
  gap: 8px;
  overflow: auto;
  scrollbar-width: thin;
  justify-content: center;
  padding: 4px;
}

.ng-stepper[data-toc-align="left"] .ng-stepper__toc {
  justify-content: flex-start;
}

.ng-stepper[data-toc-align="right"] .ng-stepper__toc {
  justify-content: flex-end;
}

.ng-stepper__toc-item {
  padding: 8px 16px;
  border: 2px solid transparent;
  background: #e2e8f0;
  color: var(--ngs-muted);
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--ngs-hover-duration) ease;
  font-weight: 500;
}

.ng-stepper__toc-item.is-active {
  background: var(--ngs-accent);
  color: #fff;
  border-color: var(--ngs-accent);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.ng-stepper__progress {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Modern progress bar with rounded design */
.ng-stepper__bar {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.ng-stepper__bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ngs-accent), #16a34a);
  transition: width .4s ease;
  border-radius: 999px;
}

/* Windows 7 style progress bar */
.ng-stepper[data-progress-style="windows7"] .ng-stepper__bar {
  background: radial-gradient(circle at 0 50%, #0000001f 10px, transparent 30px),
    radial-gradient(circle at 100% 50%, #0000001f 10px, transparent 30px),
    linear-gradient(180deg, #f3f3f3af, #fcfcfcaf 3px, #dbdbdbaf 6px, #cacacaaf 0, #d5d5d5af), #ddd;
  border: 1px solid #abadb3;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px #f3f3f388, 0 0 0 1px #eaeaea88;
  height: 15px;
  margin: 2px 0;
  overflow: hidden;
}

.ng-stepper[data-progress-style="windows7"] .ng-stepper__bar-fill {
  background-color: #0bd82c;
  background-image: linear-gradient(180deg, #f3f3f3af, #fcfcfcaf 3px, #dbdbdbaf 6px, transparent 0),
    radial-gradient(circle at 0 50%, #0000002f 10px, transparent 30px),
    radial-gradient(circle at 100% 50%, #0000002f 10px, transparent 30px),
    linear-gradient(180deg, transparent 65%, #ffffff55),
    linear-gradient(180deg, transparent 6px, #cacaca33 0, #d5d5d533);
  box-shadow: inset 0 0 0 1px #ffffff1f;
  height: 100%;
  overflow: hidden;
}

.ng-stepper[data-progress-style="windows7"] .ng-stepper__bar-fill.animate::before {
  animation: progressbar 3s linear infinite;
  background: linear-gradient(90deg, transparent, #ffffff80, transparent 40%);
  content: "";
  display: block;
  height: 100%;
}

@keyframes progressbar {
  0% {
    transform: translateX(-40%);
  }
  60% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Modern counter styling */
.ng-stepper__counter {
  font-variant-numeric: tabular-nums;
  color: var(--ngs-muted);
  font-weight: 600;
  font-size: 14px;
}

/* Modern theme toggle button */
.ng-stepper__theme {
  border: 1px solid var(--ngs-border);
  background: transparent;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all var(--ngs-hover-duration) ease;
  font-size: 14px;
}

.ng-stepper__viewport {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  /* Removed background color */
  border-radius: 12px;
}

.ng-stepper__track {
  display: flex;
  will-change: transform;
}

.ng-stepper__step {
  flex: 0 0 100%;
  padding: 24px;
}

.ng-stepper__step-inner {
  max-width: var(--ngs-max);
  margin: 0 auto;
}

/* Modern step title styling */
.ng-stepper__step-title {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ngs-fg);
}

/* Modern navigation buttons with green accent */
.ng-stepper__nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--ngs-max);
  margin: 16px auto 0;
  padding: 16px;
  border-radius: 12px;
  /* Removed background color */
}

.ng-stepper__nav button {
  padding: 12px 24px;
  border-radius: 8px;
  border: 2px solid transparent;
  background: var(--ngs-accent);
  color: #fff;
  cursor: pointer;
  transition: all var(--ngs-hover-duration) ease;
  font-weight: 600;
  font-size: 14px;
}

.ng-stepper__nav button:hover:not(:disabled) {
  background: #16a34a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.ng-stepper__nav button:disabled {
  background: #e2e8f0;
  color: var(--ngs-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Enhanced hover effects with customizable options */
.ng-stepper[data-hover-effect="brightness"] .ng-stepper__toc-item:hover,
.ng-stepper[data-hover-effect="brightness"] .ng-stepper__nav button:hover:not(:disabled),
.ng-stepper[data-hover-effect="brightness"] .ng-stepper__theme:hover {
  filter: brightness(var(--ngs-hover-intensity));
}

.ng-stepper[data-hover-effect="scale"] .ng-stepper__toc-item:hover,
.ng-stepper[data-hover-effect="scale"] .ng-stepper__nav button:hover:not(:disabled),
.ng-stepper[data-hover-effect="scale"] .ng-stepper__theme:hover {
  transform: scale(1.05);
}

.ng-stepper[data-hover-effect="shadow"] .ng-stepper__nav button:hover:not(:disabled),
.ng-stepper[data-hover-effect="shadow"] .ng-stepper__theme:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.ng-stepper[data-hover-effect="glow"] .ng-stepper__toc-item:hover,
.ng-stepper[data-hover-effect="glow"] .ng-stepper__dot:hover,
.ng-stepper[data-hover-effect="glow"] .ng-stepper__nav button:hover:not(:disabled),
.ng-stepper[data-hover-effect="glow"] .ng-stepper__theme:hover {
  box-shadow: 0 0 20px var(--ngs-accent);
}

.ng-stepper[data-hover-effect="lift"] .ng-stepper__toc-item:hover,
.ng-stepper[data-hover-effect="lift"] .ng-stepper__nav button:hover:not(:disabled),
.ng-stepper[data-hover-effect="lift"] .ng-stepper__theme:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Updated completion effect with light green theme */
.ng-stepper.is-completed {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  transition: all var(--ngs-completion-duration) ease;
}

.ng-stepper.is-completed .ng-stepper__viewport {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.ng-stepper.is-completed .ng-stepper__step {
  background: rgba(240, 253, 244, 0.5);
  border-radius: 8px;
}

.ng-stepper__header.is-completed,
.ng-stepper__nav.is-completed {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  /* Removed border-color property since border is removed */
  transition: all var(--ngs-completion-duration) ease;
  border-radius: 12px;
  padding: 16px;
}

/* Removed Windows 7 theme header gradient and updated with modern styling */
.ng-stepper[data-windows7-theme="true"] {
  background: #f0f0f0;
  border: 1px solid #8e8f8f;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px #fffc;
  color: #000;
}

.ng-stepper[data-windows7-theme="true"] .ng-stepper__header {
  background: #f0f0f0;
  border: 1px solid #8e8f8f;
  border-radius: 3px;
  margin-bottom: 8px;
  padding: 8px;
}

.ng-stepper[data-windows7-theme="true"] .ng-stepper__toc-item {
  background: linear-gradient(#f2f2f2 45%, #ebebeb 45%, #cfcfcf);
  border: 1px solid #8e8f8f;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px #fffc;
  color: #222;
  min-height: 23px;
  min-width: 75px;
  padding: 0 12px;
  position: relative;
  text-align: center;
}

/* Added completion animation effect for header and nav */
@keyframes completionPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

.ng-stepper__header.is-completed,
.ng-stepper__nav.is-completed {
  animation: completionPulse var(--ngs-completion-duration) ease-out;
}
