.tutorial-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  display: none;
  pointer-events: none;
}

.tutorial-overlay.active {
  display: block;
}

.tutorial-spotlight {
  position: absolute;
  border: 4px solid #00d4ff;
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.75), 0 0 30px rgba(0, 212, 255, 0.8);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(2px);
  z-index: 9999;
  pointer-events: none;
  transition: all 0.3s ease;
  display: none;
}

.tutorial-tooltip {
  position: absolute;
  background: white;
  border-radius: 8px;
  padding: 20px;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  pointer-events: auto;
  display: none;
}

.tutorial-tooltip h5 {
  margin: 0 0 10px 0;
  color: #0d6efd;
}

.tutorial-tooltip p {
  margin: 0 0 15px 0;
  color: #333;
}

.tutorial-tooltip .tutorial-progress {
  font-size: 12px;
  color: #666;
  margin-bottom: 15px;
}

.tutorial-tooltip .tutorial-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.tutorial-tooltip .btn-sm {
  padding: 5px 15px;
}

.tutorial-hint {
  position: absolute;
  background: #0d6efd;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  z-index: 10001;
  animation: pulse 2s infinite;
  cursor: pointer;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

body.welcome-modal-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
  top: 0 !important;
  left: 0 !important;
}

html.welcome-modal-open {
  overflow: hidden !important;
  height: 100% !important;
}

.welcome-modal-open .container-fluid,
.welcome-modal-open main {
  overflow: hidden !important;
}

#welcomeModal ~ .modal-backdrop {
  opacity: 0.8 !important;
  background-color: #000 !important;
  overflow: hidden !important;
}

.modal-backdrop.show {
  opacity: 0.8 !important;
  overflow: hidden !important;
}

#welcomeModal {
  overflow-y: auto !important;
}

#welcomeModal .modal-dialog {
  pointer-events: auto !important;
}

#welcomeModal .modal-content {
  background-color: #fff !important;
  opacity: 1 !important;
  z-index: 1056 !important;
}

#welcomeModal .modal-body .border {
  background-color: #fff !important;
  opacity: 1 !important;
}

[data-theme="dark"] #welcomeModal .modal-content {
  background-color: #1a1a1a !important;
  color: #fff !important;
}

[data-theme="dark"] #welcomeModal .modal-body .border {
  background-color: #2a2a2a !important;
  border-color: #444 !important;
}

[data-theme="dark"] #welcomeModal .modal-body .text-muted {
  color: #aaa !important;
}

[data-theme="dark"] #welcomeModal .modal-body p.small {
  color: #bbb !important;
}

[data-tutorial-id] {
  position: relative;
}

.quick-tip {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0d6efd;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-width: 300px;
  z-index: 9997;
  display: none;
}

.quick-tip.active {
  display: block;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
