/* Remove button */
.remove-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  padding: 0.5rem !important;
  color: white;
}

.remove-btn:hover {
  background: rgba(239, 68, 68, 0.8) !important;
}

/* Buttons */
.btn {
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  width: 100%;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  font-weight: 500;
  box-shadow: 0 4px 14px 0 var(--primary-glow);
}

/* History Stepper */
.history-stepper {
  position: absolute;
  right: 0.25rem;
  bottom: -2.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  height: 32px;
  z-index: 5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.history-stepper.hidden {
  display: none !important;
}

.stepper-btn {
  width: 24px !important;
  height: 24px !important;
  padding: 0 !important;
  color: var(--text-secondary) !important;
  background: transparent;
}

.stepper-btn:hover:not(:disabled) {
  color: var(--text-primary) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.history-index {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 28px;
  text-align: center;
  user-select: none;
  display: inline-block;
  /* allows transform scaling */
}

