/* ================================================================
   ONBOARDING - Wizard UI
   ================================================================ */

#onboarding-screen {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d1117;
  overflow-y: auto;
  padding: 20px;
}

.ob-card {
  width: 520px;
  max-width: 100%;
  padding: 32px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  margin: auto;
}

/* ---- Progress Bar ---- */
.ob-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 8px;
}

.ob-progress-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #8b949e;
  background: #21262d;
  border: 2px solid #30363d;
  flex-shrink: 0;
  transition: all 0.3s;
}

.ob-progress-dot.active {
  color: #fff;
  background: #1f6feb;
  border-color: #1f6feb;
}

.ob-progress-dot.done {
  color: #fff;
  background: #238636;
  border-color: #238636;
}

.ob-progress-line {
  width: 40px;
  height: 2px;
  background: #30363d;
  transition: background 0.3s;
}

.ob-progress-line.done {
  background: #238636;
}

.ob-progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 0 4px;
}

.ob-progress-label {
  font-size: 11px;
  color: #484f58;
  text-align: center;
  flex: 1;
}

.ob-progress-label.active {
  color: #58a6ff;
  font-weight: 600;
}

/* ---- Content ---- */
.ob-content {
  margin-bottom: 24px;
}

.ob-title {
  font-size: 20px;
  font-weight: 700;
  color: #e6edf3;
  margin: 0 0 8px;
}

.ob-desc {
  font-size: 14px;
  color: #8b949e;
  margin: 0 0 20px;
}

/* ---- Fields ---- */
.ob-field {
  margin-bottom: 16px;
}

.ob-field label {
  display: block;
  font-size: 13px;
  color: #8b949e;
  margin-bottom: 6px;
}

.ob-required {
  color: #f85149;
}

.ob-field input[type="text"],
.ob-field input[type="number"],
.ob-field select {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  color: #e6edf3;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.ob-field input:focus,
.ob-field select:focus {
  border-color: #58a6ff;
}

/* ---- Floor Rows ---- */
.ob-floor-row {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}

.ob-floor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ob-floor-badge {
  font-size: 14px;
  font-weight: 600;
  color: #58a6ff;
  background: rgba(88, 166, 255, 0.1);
  padding: 2px 10px;
  border-radius: 4px;
}

.ob-floor-del {
  width: 28px;
  height: 28px;
  font-size: 18px;
  color: #8b949e;
  background: transparent;
  border: 1px solid #30363d;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.ob-floor-del:hover {
  color: #f85149;
  border-color: #f85149;
}

.ob-floor-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.ob-field-inline label {
  font-size: 11px;
  color: #8b949e;
  margin-bottom: 4px;
  display: block;
}

.ob-field-inline input {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  color: #e6edf3;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 4px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.ob-field-inline input:focus {
  border-color: #58a6ff;
}

.ob-room-preview {
  margin-top: 8px;
  font-size: 12px;
  color: #484f58;
  word-break: break-all;
}

/* ---- Add Button ---- */
.ob-btn-add {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  color: #58a6ff;
  background: transparent;
  border: 1px dashed #30363d;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}

.ob-btn-add:hover {
  background: rgba(88, 166, 255, 0.05);
  border-color: #58a6ff;
}

/* ---- Staff Rows ---- */
.ob-staff-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ob-staff-color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.ob-staff-name {
  flex: 1;
  padding: 8px 10px;
  font-size: 14px;
  color: #e6edf3;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 4px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.ob-staff-name:focus {
  border-color: #58a6ff;
}

.ob-staff-color {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #30363d;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.ob-staff-del {
  width: 28px;
  height: 28px;
  font-size: 18px;
  color: #8b949e;
  background: transparent;
  border: 1px solid #30363d;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.ob-staff-del:hover {
  color: #f85149;
  border-color: #f85149;
}

.ob-empty {
  text-align: center;
  color: #484f58;
  font-size: 14px;
  padding: 24px;
  background: #0d1117;
  border: 1px dashed #30363d;
  border-radius: 8px;
  margin-bottom: 8px;
}

/* ---- Navigation ---- */
.ob-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ob-btn {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.ob-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.ob-btn-back {
  color: #8b949e;
  background: #21262d;
  border: 1px solid #30363d;
}

.ob-btn-back:hover {
  background: #30363d;
}

.ob-btn-next {
  color: #fff;
  background: #1f6feb;
}

.ob-btn-next:hover {
  background: #388bfd;
}

.ob-btn-submit {
  color: #fff;
  background: #238636;
  width: auto;
  min-width: 140px;
}

.ob-btn-submit:hover {
  background: #2ea043;
}

/* ---- Confirm Section ---- */
.ob-confirm-section {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 10px;
}

.ob-confirm-label {
  font-size: 12px;
  color: #8b949e;
  margin-bottom: 4px;
}

.ob-confirm-value {
  font-size: 15px;
  color: #e6edf3;
}

.ob-confirm-floor {
  margin-bottom: 2px;
}

.ob-confirm-staff {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.ob-confirm-empty {
  color: #484f58;
  font-style: italic;
}

/* ---- Success Screen ---- */
.ob-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: #238636;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
}

.ob-success-summary {
  text-align: center;
  margin-bottom: 20px;
  color: #8b949e;
  font-size: 15px;
}

.ob-success-summary div:first-child {
  font-size: 18px;
  font-weight: 600;
  color: #e6edf3;
  margin-bottom: 4px;
}

/* ---- PIN Section ---- */
.ob-pin-section {
  background: #0d1117;
  border: 1px solid #f0883e;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.ob-pin-section h3 {
  font-size: 14px;
  color: #f0883e;
  margin: 0 0 12px;
}

.ob-pin-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ob-pin-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #161b22;
  border-radius: 6px;
}

.ob-pin-name {
  flex: 1;
  font-size: 14px;
  color: #e6edf3;
}

.ob-pin-code {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 20px;
  font-weight: 700;
  color: #f0883e;
  letter-spacing: 4px;
}

.ob-pin-warning {
  font-size: 12px;
  color: #f0883e;
  margin: 12px 0 0;
  text-align: center;
}

/* ---- Mobile adjustments ---- */
@media (max-width: 560px) {
  .ob-card {
    padding: 20px 16px;
  }
  .ob-floor-fields {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .ob-floor-fields .ob-field-inline:last-child {
    grid-column: 1 / -1;
  }
}
