/* Tutorial interativo — menu central + spotlight + painel dinâmico */

:root {
  --sl-tut-accent: #0f172a;
  --sl-tut-accent-2: #2563eb;
  --sl-tut-bg: #ffffff;
  --sl-tut-text: #0f172a;
  --sl-tut-muted: #64748b;
}

/* FAB legado oculto */
#sl-tut-fab,
#sl-tut-fab-btn {
  display: none !important;
}

#sl-tut-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 12015;
  background: rgba(15, 23, 42, 0.48);
  display: none;
}

#sl-tut-menu-backdrop.is-on {
  display: block;
}

#sl-tut-menu {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 12020;
  min-width: min(360px, calc(100vw - 32px));
  max-width: 420px;
  background: var(--sl-tut-bg);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  overflow: hidden;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

#sl-tut-menu.is-on {
  display: block;
}

#sl-tut-menu header {
  padding: 14px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
  font-weight: 800;
  color: var(--sl-tut-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

#sl-tut-menu header button {
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  padding: 0 4px;
}

#sl-tut-menu .sl-tut-menu-body button {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 650;
  color: #1e293b;
  cursor: pointer;
  border-top: 1px solid #f1f5f9;
}

#sl-tut-menu .sl-tut-menu-body button:hover {
  background: #f1f5f9;
}

#sl-tut-menu .sl-tut-menu-body button small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--sl-tut-muted);
}

/* Item Ajuda no menu lateral */
#sl-tut-nav-help,
.sl-tut-nav-help {
  list-style: none;
}

#sl-tut-nav-help button,
button.sl-tut-nav-help-btn {
  width: 100%;
}

#sl-tut-nav-help.is-active > button,
button.sl-tut-nav-help-btn.is-active {
  outline: 2px solid rgba(147, 197, 253, 0.7);
  outline-offset: 1px;
}

#sl-tut-overlay {
  position: fixed;
  inset: 0;
  z-index: 11990;
  pointer-events: none;
  display: none;
}

#sl-tut-overlay.is-on {
  display: block;
}

#sl-tut-shade {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  pointer-events: auto;
}

#sl-tut-hole {
  position: absolute;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.55);
  outline: 2px solid #93c5fd;
  pointer-events: none;
  transition: all 0.2s ease;
}

#sl-tut-panel {
  position: fixed;
  z-index: 12010;
  width: min(400px, calc(100vw - 24px));
  background: var(--sl-tut-bg);
  color: var(--sl-tut-text);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.28);
  display: none;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
  max-height: calc(100vh - 24px);
}

#sl-tut-panel.is-on {
  display: flex;
  flex-direction: column;
}

#sl-tut-panel .sl-tut-head {
  padding: 14px 16px 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-shrink: 0;
}

#sl-tut-panel .sl-tut-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sl-tut-accent-2);
}

#sl-tut-panel h3 {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

#sl-tut-panel .sl-tut-body {
  padding: 0 16px 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #334155;
  font-weight: 600;
  overflow: auto;
}

#sl-tut-panel .sl-tut-body ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

#sl-tut-panel .sl-tut-body li {
  margin: 4px 0;
}

#sl-tut-panel .sl-tut-progress {
  padding: 0 16px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--sl-tut-muted);
  flex-shrink: 0;
}

#sl-tut-panel .sl-tut-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  margin: 0 16px 12px;
  flex-shrink: 0;
}

#sl-tut-panel .sl-tut-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--sl-tut-accent), var(--sl-tut-accent-2));
  width: 0%;
  transition: width 0.2s ease;
}

#sl-tut-panel .sl-tut-actions {
  display: flex;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  flex-shrink: 0;
}

#sl-tut-panel .sl-tut-actions button {
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 750;
  cursor: pointer;
}

#sl-tut-panel .sl-tut-actions .ghost {
  background: #fff;
  color: #475569;
}

#sl-tut-panel .sl-tut-actions .primary {
  background: var(--sl-tut-accent);
  border-color: var(--sl-tut-accent);
  color: #fff;
  flex: 1;
}

#sl-tut-panel .sl-tut-actions .primary:hover {
  background: var(--sl-tut-accent-2);
  border-color: var(--sl-tut-accent-2);
}

/* checkbox removido */
#sl-tut-ack-wrap {
  display: none !important;
}

body.sl-tut-active {
  overflow: hidden;
}

@media (max-width: 720px) {
  #sl-tut-panel {
    width: calc(100vw - 24px);
  }
}
