/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Universal Onboarding System Styles */

.onboarding-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  pointer-events: none;
}

.onboarding-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  pointer-events: auto;
}

.onboarding-tooltip {
  position: absolute;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 350px;
  pointer-events: auto;
  z-index: 10001;
  animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.onboarding-content {
  padding: 20px;
}

.onboarding-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.onboarding-title {
  margin: 0;
  color: #2c3e50;
  font-weight: 600;
  font-size: 1.1rem;
}

.onboarding-close {
  border: none;
  background: none;
  font-size: 1.2rem;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding-close:hover {
  color: #495057;
}

.onboarding-body {
  margin-bottom: 20px;
}

.onboarding-text {
  margin: 0;
  color: #495057;
  line-height: 1.5;
  font-size: 0.95rem;
}

.onboarding-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.onboarding-progress {
  color: #6c757d;
  font-size: 0.85rem;
}

.current-step {
  font-weight: 600;
  color: #7252d3;
}

.onboarding-buttons {
  display: flex;
  gap: 8px;
}

.onboarding-arrow {
  position: absolute;
  width: 0;
  height: 0;
  border: 10px solid transparent;
}

.onboarding-arrow.top {
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-color: white;
}

.onboarding-arrow.bottom {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-top-color: white;
}

.onboarding-arrow.left {
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-right-color: white;
}

.onboarding-arrow.right {
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-left-color: white;
}

.onboarding-highlight {
  position: relative;
  z-index: 9999;
  box-shadow: 0 0 0 4px rgba(114, 82, 211, 0.3), 0 0 0 2000px rgba(0, 0, 0, 0.7) !important;
  border-radius: 8px;
}

.onboarding-help-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #7252d3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(114, 82, 211, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  animation: pulse 2s infinite;
}

.onboarding-help-btn:hover {
  background: #5a3fb8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(114, 82, 211, 0.4);
}

/* Button styling overrides for onboarding */
.onboarding-buttons .btn {
  border-radius: 6px;
  font-weight: 600;
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.onboarding-buttons .btn-primary {
  background: linear-gradient(135deg, #7252d3 0%, #8b6fe8 100%);
  color: white;
}

.onboarding-buttons .btn-primary:hover {
  background: linear-gradient(135deg, #5a3fb8 0%, #7459d4 100%);
  transform: translateY(-1px);
}

.onboarding-buttons .btn-outline-secondary {
  background: transparent;
  color: #6c757d;
  border: 1px solid #6c757d;
}

.onboarding-buttons .btn-outline-secondary:hover {
  background: #6c757d;
  color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .onboarding-tooltip {
    max-width: 280px;
    margin: 10px;
  }
  
  .onboarding-content {
    padding: 15px;
  }
  
  .onboarding-help-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  
  .onboarding-buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .onboarding-footer {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
}

/* Animation for help button */
@keyframes pulse {
  0% {
    box-shadow: 0 4px 12px rgba(114, 82, 211, 0.3);
  }
  50% {
    box-shadow: 0 4px 12px rgba(114, 82, 211, 0.6);
  }
  100% {
    box-shadow: 0 4px 12px rgba(114, 82, 211, 0.3);
  }
}
