/* Tutorial System Custom Styles for CCAMS */

/* Intro.js custom styling */
.introjs-tooltip {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #ffffff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  max-width: 350px;
  padding: 0;
  overflow: hidden;
}

.introjs-tooltip-header {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 15px 20px;
  font-weight: 600;
  font-size: 16px;
  margin: 0;
}

.introjs-tooltiptext {
  padding: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
}

/* Button styling */
.introjs-button {
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0 4px;
}

.introjs-button:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.introjs-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Skip button styling */
.introjs-skipbutton {
  background: #6b7280;
  color: white;
}

.introjs-skipbutton:hover {
  background: #4b5563;
}

/* Done button styling */
.introjs-donebutton {
  background: #10b981;
}

.introjs-donebutton:hover {
  background: #059669;
}

/* Progress bar */
.introjs-progress {
  background: #e5e7eb;
  border-radius: 10px;
  height: 6px;
  margin: 10px 20px;
}

.introjs-progressbar {
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  height: 100%;
  border-radius: 10px;
  transition: width 0.3s ease;
}

/* Bullets styling */
.introjs-bullets {
  text-align: center;
  padding: 10px 20px;
}

.introjs-bullets ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.introjs-bullets ul li {
  width: 8px;
  height: 8px;
  background: #d1d5db;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.introjs-bullets ul li.active {
  background: #3b82f6;
  transform: scale(1.2);
}

/* Overlay styling */
.introjs-overlay {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

/* Highlight styling */
.introjs-highlightClass {
  border: 3px solid #fbbf24;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.tutorial-highlight {
  position: relative;
  z-index: 9999999 !important;
}

.tutorial-highlight::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 3px solid #fbbf24;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
  pointer-events: none;
  z-index: 9999998;
  animation: tutorial-pulse 2s infinite;
}

@keyframes tutorial-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.02);
  }
}

/* Tooltip arrow */
.introjs-arrow {
  border: 8px solid transparent;
}

.introjs-arrow.top {
  border-bottom-color: #3b82f6;
}

.introjs-arrow.bottom {
  border-top-color: #3b82f6;
}

.introjs-arrow.left {
  border-right-color: #3b82f6;
}

.introjs-arrow.right {
  border-left-color: #3b82f6;
}

/* Custom tooltip classes */
.tutorial-tooltip {
  background: #ffffff;
  border: 2px solid #3b82f6;
}

.tutorial-tooltip-success {
  border-color: #10b981;
}

.tutorial-tooltip-success .introjs-tooltip-header {
  background: linear-gradient(135deg, #10b981, #059669);
}

.tutorial-tooltip-warning {
  border-color: #f59e0b;
}

.tutorial-tooltip-warning .introjs-tooltip-header {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Responsive design */
@media (max-width: 768px) {
  .introjs-tooltip {
    max-width: 280px;
    margin: 10px;
  }

  .introjs-tooltiptext {
    padding: 15px;
    font-size: 13px;
  }

  .introjs-tooltip-header {
    padding: 12px 15px;
    font-size: 14px;
  }

  .introjs-button {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* Animation for tutorial elements */
.intro-tutorial-element {
  transition: all 0.3s ease;
}

.intro-tutorial-element.highlighted {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Special styling for form elements during tutorial */
.introjs-showElement select,
.introjs-showElement input,
.introjs-showElement button {
  position: relative;
  z-index: 9999999;
}

/* Tutorial button in UI */
.tutorial-trigger-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tutorial-trigger-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.tutorial-trigger-btn i {
  font-size: 12px;
}