
/* ---- Fleet operation progress UX ---- */

.admin-fleet-operation {
  display: block;
  padding: 12px 14px;
}

.fleet-operation-title {
  font-weight: 600;
}

.fleet-progress {
  position: relative;
  display: block;
  height: 12px;
  margin: 10px 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.fleet-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #4c9aff, #7bc4ff);
  transition: width 0.45s ease;
}

.fleet-progress-fill.is-active {
  background: linear-gradient(90deg, #4c9aff, #7bc4ff, #4c9aff);
  background-size: 200% 100%;
  animation: fleet-progress-slide 1.6s linear infinite;
}

@keyframes fleet-progress-slide {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.fleet-progress-percent {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.fleet-stage-label {
  font-weight: 600;
  color: var(--text);
}

.fleet-error {
  color: #ffb2b2;
}


/* ---- Fleet confirmation modal ---- */

.admin-modal[hidden] {
  display: none;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.admin-modal-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 18px;
  background: #171a21;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.admin-modal-text {
  margin: 6px 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.admin-modal-domain {
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

.admin-modal-actions {
  margin-top: 14px;
  justify-content: flex-end;
}

.admin-content-card .admin-fleet-operations {
  margin-top: 12px;
}

/* ---- Operation card header/status polish ---- */

.admin-status {
  white-space: nowrap;
}

.admin-fleet-operation .admin-row-title {
  flex-wrap: wrap;
  gap: 6px 10px;
}

.admin-fleet-operation .fleet-operation-title {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-fleet-operation .admin-status {
  flex: 0 0 auto;
}

/* More breathing room inside the progress card */
.admin-fleet-operation .fleet-progress {
  margin: 16px 0 14px;
}

.fleet-stage-label {
  margin: 0 0 4px;
}

/* Install form: compact fields follow the standard primary-button scale.
   Major groups use one rhythm; labels keep a smaller internal gap. */
#admin-node-install-form {
  gap: 20px;
}

#admin-node-install-form .admin-node-install-field {
  display: grid;
  gap: 6px;
}

#admin-node-install-form .gate-input {
  width: calc(100% - 6px);
  height: 52px;
  min-height: 52px;
  margin-inline: 3px;
  padding: 10px 16px;
  line-height: 1.2;
}

#admin-node-install-form .admin-sni-help {
  margin: 2px 3px 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary, #8a909d);
}

#admin-node-install-form .admin-head-actions {
  display: grid;
  margin-top: 26px;
}

#admin-node-install-form .admin-head-actions .button {
  width: 100%;
}

@media (max-width: 640px) {
  .admin-fleet-operation .fleet-operation-title {
    font-size: 13px;
  }
}
