/* Nuura — Onboarding Wizard Styles */

/* ─── Page Layout ─── */
.onb-page {
  min-height: 100vh;
  background: #0a0a0f;
  display: flex;
  flex-direction: column;
  color: #e4e4e7;
}

/* ─── Header ─── */
.onb-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.onb-header .logo {
  font-size: 1.5rem;
  margin: 0;
}

.onb-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  max-width: 300px;
}

.onb-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #a78bfa);
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.onb-progress-label {
  font-size: 0.8rem;
  color: #71717a;
  white-space: nowrap;
}

/* ─── Stepper ─── */
.onb-stepper {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 2rem;
}

.onb-stepper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 80px;
}

.onb-stepper-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.onb-stepper-circle .material-symbols-outlined {
  font-size: 20px;
  color: #71717a;
}

.onb-stepper-item.active .onb-stepper-circle {
  background: rgba(99, 102, 241, 0.15);
  border-color: #6366f1;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.onb-stepper-item.active .onb-stepper-circle .material-symbols-outlined {
  color: #a78bfa;
}

.onb-stepper-item.completed .onb-stepper-circle {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
}

.onb-stepper-item.completed .onb-stepper-circle .material-symbols-outlined {
  color: #22c55e;
}

.onb-stepper-label {
  font-size: 0.7rem;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.onb-stepper-item.active .onb-stepper-label {
  color: #a78bfa;
}

/* ─── Body ─── */
.onb-body {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.onb-step-content {
  width: 100%;
  max-width: 600px;
  animation: onb-fade-in 0.4s ease;
}

.onb-step-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@keyframes onb-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.onb-step-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fafafa;
  font-family: 'Manrope', sans-serif;
}

.onb-step-desc {
  color: #a1a1aa;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.onb-section-label {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: #d4d4d8;
}

/* ─── Forms ─── */
.onb-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.onb-form-grid .full-width {
  grid-column: 1 / -1;
}

.onb-step-content .form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.onb-step-content input[type="text"],
.onb-step-content input[type="number"],
.onb-step-content input[type="time"],
.onb-step-content select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fafafa;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.onb-step-content input:focus,
.onb-step-content select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.onb-step-content select {
  appearance: none;
  cursor: pointer;
}

/* ─── Tone Selector ─── */
.onb-tone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.onb-tone-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  color: #d4d4d8;
  font-size: 0.85rem;
  text-align: center;
}

.onb-tone-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.05);
}

.onb-tone-card.active {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.onb-tone-icon {
  font-size: 1.8rem;
}

.onb-tone-example {
  font-size: 0.75rem;
  color: #71717a;
  font-style: italic;
}

/* ─── Services List ─── */
.onb-services-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.onb-service-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.onb-svc-name {
  flex: 2;
}

.onb-svc-field {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 0 0 100px;
}

.onb-svc-field input {
  width: 70px !important;
  text-align: center;
}

.onb-svc-unit,
.onb-svc-currency {
  font-size: 0.8rem;
  color: #71717a;
}

.onb-svc-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.onb-svc-remove:hover {
  opacity: 1;
}

.onb-add-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px dashed rgba(99, 102, 241, 0.3);
  border-radius: 10px;
  color: #a78bfa;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.onb-add-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: #6366f1;
}

/* ─── Hours Grid ─── */
.onb-hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.onb-hours-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: all 0.2s;
}

.onb-hours-row.active {
  border-color: rgba(99, 102, 241, 0.2);
  background: rgba(99, 102, 241, 0.05);
}

.onb-hours-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.onb-hours-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #6366f1;
  cursor: pointer;
}

.onb-hours-day {
  font-weight: 500;
  min-width: 90px;
}

.onb-hours-times {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.onb-hours-times input[type="time"] {
  width: 120px;
}

.onb-hours-times span {
  color: #71717a;
  font-size: 0.85rem;
}

.onb-hours-closed {
  color: #71717a;
  font-size: 0.85rem;
  font-style: italic;
}

/* ─── WhatsApp Step ─── */
.onb-info-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 500px;
  margin-bottom: 2rem;
  text-align: left;
}

.onb-info-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.onb-info-card strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  color: #fafafa;
}

.onb-info-card p {
  font-size: 0.82rem;
  color: #a1a1aa;
  line-height: 1.4;
  margin: 0;
}

.onb-info-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.onb-info-icon.green { color: #22c55e; }
.onb-info-icon.blue { color: #3b82f6; }
.onb-info-icon.violet { color: #a78bfa; }

.onb-wa-connected {
  padding: 2.5rem;
  text-align: center;
}

.onb-wa-check {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.onb-wa-check .material-symbols-outlined {
  font-size: 40px;
  color: #22c55e;
}

.onb-wa-connected h3 {
  color: #22c55e;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.onb-wa-connect {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.onb-wa-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.onb-wa-icon .material-symbols-outlined {
  font-size: 40px;
  color: #a78bfa;
}

.onb-wa-note {
  font-size: 0.8rem;
  color: #71717a;
}

/* ─── Chat Simulator ─── */
.onb-chat-sim {
  width: 100%;
  max-width: 400px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  margin-top: 1rem;
}

.onb-chat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 500;
  font-size: 0.9rem;
}

.onb-chat-header .material-symbols-outlined {
  color: #a78bfa;
}

.onb-chat-messages {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 200px;
  max-height: 300px;
  overflow-y: auto;
}

.onb-chat-bubble {
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.4;
  max-width: 85%;
  animation: onb-fade-in 0.3s ease;
}

.onb-chat-bubble.patient {
  background: rgba(255, 255, 255, 0.08);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.onb-chat-bubble.agent {
  background: rgba(99, 102, 241, 0.15);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.onb-chat-input {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.onb-chat-input input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: #fafafa;
  font-size: 0.85rem;
}

.onb-chat-input input:focus {
  outline: none;
  border-color: #6366f1;
}

.onb-chat-input button {
  background: #6366f1;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.onb-chat-input button:hover {
  background: #4f46e5;
}

.onb-chat-input button .material-symbols-outlined {
  font-size: 18px;
  color: white;
}

/* ─── Footer Navigation ─── */
.onb-footer {
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  gap: 0.75rem;
}

.onb-footer-spacer {
  flex: 1;
}

/* ─── Shared Button Styles ─── */
.btn-outline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #a1a1aa;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fafafa;
}

.btn-ghost {
  background: none;
  border: none;
  color: #71717a;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  transition: color 0.2s;
}

.btn-ghost:hover {
  color: #a1a1aa;
}

.btn-lg {
  padding: 0.8rem 2rem !important;
  font-size: 1rem !important;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .onb-header { padding: 1rem; }
  .onb-stepper { gap: 0.25rem; padding: 1rem; }
  .onb-stepper-label { display: none; }
  .onb-form-grid { grid-template-columns: 1fr; }
  .onb-tone-grid { grid-template-columns: 1fr; }
  .onb-body { padding: 1rem; }
  .onb-service-row { flex-wrap: wrap; }
  .onb-svc-name { flex: 1 1 100%; }
}
