/* Onboarding Tour Styles */

/* Language Selection Modal */
.onboarding-language-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

.language-selection-box {
  background: white;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  transform: scale(0.8);
  animation: scaleIn 0.5s forwards;
}

.language-selection-box h2 {
  color: #2D5A5A;
  margin-bottom: 10px;
  font-size: 24px;
}

.language-selection-box p {
  color: #666;
  margin-bottom: 30px;
  font-size: 16px;
}

.language-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.language-btn {
  padding: 15px 30px;
  font-size: 18px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.language-btn.english {
  background: #8CB7B7;
  color: white;
}

.language-btn.telugu {
  background: #C9AB00;
  color: white;
}

.language-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Overlay for tour - now with cutout for clickable area */
.onboarding-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  display: none;
}

/* Dark overlay sections */
.overlay-top,
.overlay-bottom,
.overlay-left,
.overlay-right {
  position: fixed;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  z-index: 9998;
}

/* Spotlight effect - no visual effect, just for positioning */
.spotlight {
  position: fixed;
  border: none;
  z-index: 9999;
  pointer-events: none;
  background: transparent;
}

/* Tooltip styles */
.onboarding-tooltip {
  position: fixed;
  background: white;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
  max-width: 280px;
  min-width: 200px;
  z-index: 10001;
  animation: slideIn 0.5s ease;
  border: 2px solid #8CB7B7;
}

.tooltip-content {
  color: #333;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 10px;
}

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

.tooltip-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.tooltip-btn.skip {
  background: #f5f5f5;
  color: #666;
}

.tooltip-btn.next {
  background: #8CB7B7;
  color: white;
  font-weight: 600;
}

.tooltip-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Static arrow pointer */
.pointer {
  position: fixed;
  width: 40px;
  height: 40px;
  z-index: 10002;
  pointer-events: none;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.pointer.up {
  background-image: url('arrow-up.svg');
}

.pointer.left {
  background-image: url('arrow-left.svg');
}

.pointer.right {
  background-image: url('arrow-right.svg');
}

.pointer.down {
  background-image: url('arrow-down.svg');
}

/* Mini popup tips */
.mini-tip {
  position: fixed;
  background: #333;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 10003;
  opacity: 0;
  animation: fadeInUp 0.5s forwards;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.mini-tip::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #333;
}

.mini-tip.top::after {
  bottom: auto;
  top: -8px;
  border-top: none;
  border-bottom: 8px solid #333;
}

/* Progress indicator */
.tour-progress {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 10px 20px;
  border-radius: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  z-index: 10001;
  display: none;
}

.progress-dots {
  display: flex;
  gap: 8px;
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  transition: all 0.3s ease;
}

.progress-dot.active {
  background: #8CB7B7;
  transform: scale(1.2);
}

.progress-dot.completed {
  background: #4CAF50;
}

/* Animations */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  to {
    transform: scale(1);
  }
}

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



@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(-5px);
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .language-selection-box {
    padding: 30px 20px;
  }
  
  .language-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .language-btn {
    width: 100%;
  }
  
  .onboarding-tooltip {
    max-width: 250px;
    padding: 15px;
  }
  
  .tooltip-content {
    font-size: 14px;
  }
  
  .mini-tip {
    font-size: 13px;
    padding: 10px 15px;
  }
}