/* Shepherd.js Tour Styles */
@import url('https://cdn.jsdelivr.net/npm/shepherd.js@13.0.1/dist/css/shepherd.css');

.shepherd-theme-custom {
  max-width: 500px;
}

.shepherd-element {
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 0;
  z-index: 9999;
}

.shepherd-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px 8px 0 0;
  padding: 1.5rem 2rem;
}

.shepherd-title {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.shepherd-text {
  padding: 1.5rem 2rem;
  color: #4a5568;
  line-height: 1.6;
}

.shepherd-text p {
  margin: 0 0 1rem 0;
}

.shepherd-text p:last-child {
  margin-bottom: 0;
}

.shepherd-text ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.shepherd-text li {
  margin: 0.5rem 0;
}

.shepherd-text strong {
  color: #2d3748;
  font-weight: 600;
}

.shepherd-text em {
  color: #718096;
  font-style: italic;
}

.shepherd-footer {
  border-top: 1px solid #e2e8f0;
  padding: 1rem 2rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.shepherd-button {
  background: #667eea;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  transition: all 0.2s;
}

.shepherd-button:hover {
  background: #5a67d8;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shepherd-button-secondary {
  background: transparent;
  color: #718096;
  border: 1px solid #cbd5e0;
}

.shepherd-button-secondary:hover {
  background: #f7fafc;
  color: #4a5568;
  transform: none;
  box-shadow: none;
}

.shepherd-cancel-icon {
  color: white;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.shepherd-cancel-icon:hover {
  opacity: 1;
}

.shepherd-modal-overlay-container {
  z-index: 9998;
}

/* Highlight element being shown in tour */
.shepherd-target {
  position: relative;
  z-index: 9999 !important;
}

/* Tippy.js Tooltip Styles */
@import url('https://unpkg.com/tippy.js@6.3.7/dist/tippy.css');
@import url('https://unpkg.com/tippy.js@6.3.7/themes/light.css');

.tippy-box[data-theme~='light'] {
  background-color: white;
  color: #2d3748;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  font-size: 0.875rem;
}

.tippy-box[data-theme~='light'][data-placement^='top'] > .tippy-arrow::before {
  border-top-color: white;
}

.tippy-box[data-theme~='light'][data-placement^='bottom'] > .tippy-arrow::before {
  border-bottom-color: white;
}

.tippy-box[data-theme~='light'][data-placement^='left'] > .tippy-arrow::before {
  border-left-color: white;
}

.tippy-box[data-theme~='light'][data-placement^='right'] > .tippy-arrow::before {
  border-right-color: white;
}

.tippy-content {
  padding: 0.5rem 0.75rem;
  line-height: 1.5;
}

/* Info icon for tooltips */
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #667eea;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  cursor: help;
  margin-left: 0.25rem;
  vertical-align: middle;
}

.info-icon:hover {
  background: #5a67d8;
}

/* Tour trigger button */
.restart-tour-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
  cursor: pointer;
  transition: all 0.3s;
  z-index: 1000;
}

.restart-tour-btn:hover {
  background: #5a67d8;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.restart-tour-btn:active {
  transform: scale(0.95);
}

/* Tour completion banner */
.tour-completed-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 2rem;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.tour-completed-banner .message {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tour-completed-banner .actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.tour-completed-banner button {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.tour-completed-banner button:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}
