/** @license For full copyright and license information, please see the LICENSE.md file. */

/**
 * @file installer.css
 * @description Dedicated styling for Ammonly web installer wizard and stepper components.
 */

.installer-card {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
}

.installer-stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 2rem;
}

.installer-stepper::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: var(--tblr-border-color);
  z-index: 1;
}

.installer-step-item {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.installer-step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--tblr-bg-surface);
  border: 2px solid var(--tblr-border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  font-weight: 600;
  color: var(--tblr-secondary);
  transition: all 0.25s ease;
}

.installer-step-item.is-active .installer-step-circle {
  border-color: var(--tblr-primary);
  background: var(--tblr-primary);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(32, 107, 196, 0.4);
}

.installer-step-item.is-completed .installer-step-circle {
  border-color: var(--tblr-success);
  background: var(--tblr-success);
  color: #ffffff;
}

.installer-step-label {
  font-size: 0.78rem;
  color: var(--tblr-secondary);
  font-weight: 500;
}

.installer-step-item.is-active .installer-step-label {
  color: var(--tblr-primary);
  font-weight: 700;
}

.installer-instance-option {
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid var(--tblr-border-color);
  border-radius: 8px;
}

.installer-instance-option:hover {
  transform: translateY(-2px);
  border-color: var(--tblr-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.installer-instance-option.is-selected {
  border-color: var(--tblr-primary);
  background-color: rgba(32, 107, 196, 0.06);
}

.installer-license-box {
  min-height: 260px;
  max-height: 380px;
  overflow-y: auto;
  font-family: var(--tblr-font-monospace);
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: pre-wrap;
  border: 1px solid var(--tblr-border-color);
  background: var(--tblr-bg-surface-secondary);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}


.installer-lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.15rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid var(--tblr-border-color);
  background: var(--tblr-bg-surface);
  color: var(--tblr-body-color);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.installer-lang-btn:hover,
.installer-lang-btn:focus-visible {
  border-color: var(--tblr-primary);
  background: rgba(32, 107, 196, 0.08);
  color: var(--tblr-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.installer-lang-btn.active,
.installer-lang-btn.is-active {
  border-color: var(--tblr-primary);
  background: var(--tblr-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(32, 107, 196, 0.4);
}

.installer-hidden-step {
  display: none !important;
}
