.tutorial-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInOverlay 0.3s ease;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tutorial-step {
  position: absolute;
  max-width: 260px;
  background: white;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  z-index: 10000;
  animation: fadeSlideIn 0.4s ease;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tutorial-arrow {
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-bottom-color: white;
  position: absolute;
  top: -20px;
  left: 20px;
}

.tutorial-highlight {
  box-shadow: 0 0 0 4px #ff0;
  position: relative;
  z-index: 10001;
  animation: glowPulse 1.2s ease-in-out infinite;
  border-radius: 6px;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 4px #ff0; }
  50% { box-shadow: 0 0 10px 6px #ff0; }
}

.tutorial-buttons {
  margin-top: 1rem;
  text-align: right;
}

.tutorial-buttons button {
  background: #007acc;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  margin-left: 0.5rem;
  border-radius: 0.3rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.tutorial-buttons button:hover {
  background: #005fa3;
}

#tutorial-trigger {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: #007acc;
  color: white;
  font-size: 1.2rem;
  border-radius: 50%;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: background 0.2s ease;
}
#tutorial-trigger:hover {
  background: #005fa3;
}
