/* ═══════════════════════════════════════════════════════════════════
   SMART RETURNS — Tutorial Interativo
   ═══════════════════════════════════════════════════════════════════ */

/* ── Floating Card (bottom-right) ─────────────────────────────────── */
#sr-tutorial-card {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 340px;
  z-index: 10100;
  border-radius: 16px;
  background: var(--bs-body-bg, #fff);
  border: 1px solid rgba(13, 110, 253, 0.22);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(13, 110, 253, 0.1);
  overflow: hidden;
  animation: sr-tut-slidein 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes sr-tut-slidein {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ── Centered Overlay (Welcome / Complete) ──────────────────────── */
#sr-tutorial-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  z-index: 10090;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: sr-tut-fadein 0.28s ease both;
}

@keyframes sr-tut-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.sr-tutorial-center-card {
  width: 440px;
  max-width: 100%;
  border-radius: 20px;
  background: var(--bs-body-bg, #fff);
  padding: 2.25rem 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  animation: sr-tut-slidein 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ── Progress bar ─────────────────────────────────────────────────── */
.sr-tut-progress-track {
  height: 3px;
  background: rgba(13, 110, 253, 0.12);
}

.sr-tut-progress-fill {
  height: 3px;
  background: linear-gradient(90deg, #0d6efd 0%, #0dcaf0 100%);
  transition: width 0.4s ease;
  border-radius: 0 2px 2px 0;
}

/* ── Phase badge ──────────────────────────────────────────────────── */
.sr-tut-phase {
  display: inline-block;
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── Step counter ─────────────────────────────────────────────────── */
.sr-tut-counter {
  font-size: 0.7rem;
  color: #6c757d;
  font-weight: 600;
}

/* ── Action hint ──────────────────────────────────────────────────── */
.sr-tut-hint {
  font-size: 0.77rem;
  background: rgba(13, 110, 253, 0.07);
  border-left: 3px solid #0d6efd;
  border-radius: 0 8px 8px 0;
  padding: 8px 12px;
  color: #0d6efd;
  font-weight: 500;
  margin-top: 10px;
  line-height: 1.45;
}

/* ── Element highlight (spotlight) ───────────────────────────────── */
.sr-tutorial-highlight {
  outline: 2.5px solid #0d6efd !important;
  outline-offset: 5px !important;
  border-radius: 6px !important;
  box-shadow: 0 0 0 5px rgba(13, 110, 253, 0.14) !important;
  animation: sr-tut-pulse 2.2s ease-in-out infinite;
  position: relative;
  z-index: 1050;
  transition: box-shadow 0.3s ease !important;
}

@keyframes sr-tut-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.14); }
  50%       { box-shadow: 0 0 0 9px rgba(13, 110, 253, 0.07); }
}

/* ── Welcome icon ─────────────────────────────────────────────────── */
.sr-tut-welcome-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d6efd22, #0dcaf022);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  border: 1.5px solid rgba(13, 110, 253, 0.2);
}

/* ── Phase dots ────────────────────────────────────────────────────── */
.sr-tut-phase-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.sr-tut-phase-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(13, 110, 253, 0.2);
}

.sr-tut-phase-dot.active {
  background: #0d6efd;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 576px) {
  #sr-tutorial-card {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 16px;
  }
}

/* ── Dark mode ────────────────────────────────────────────────────── */
[data-theme="dark"] #sr-tutorial-card {
  background: #1c1f26;
  border-color: rgba(13, 110, 253, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(13, 110, 253, 0.2);
}

[data-theme="dark"] .sr-tutorial-center-card {
  background: #1c1f26;
}

[data-theme="dark"] .sr-tut-hint {
  background: rgba(13, 110, 253, 0.1);
  color: #6ea8fe;
}

[data-theme="dark"] .sr-tutorial-highlight {
  outline-color: #6ea8fe !important;
  box-shadow: 0 0 0 5px rgba(110, 168, 254, 0.18) !important;
}

/* ── "Iniciar Tour" button variant ───────────────────────────────── */
.btn-tutorial-start {
  border: 1.5px dashed rgba(13, 110, 253, 0.4);
  color: #0d6efd;
  background: rgba(13, 110, 253, 0.05);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 14px;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-tutorial-start:hover {
  background: rgba(13, 110, 253, 0.1);
  border-color: rgba(13, 110, 253, 0.6);
  color: #0d6efd;
}
