/* Custom Sandbox Styles & WhatsApp Micro-interactions */

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

.animate-fadeIn {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom WhatsApp Scrollbar */
.wa-messages::-webkit-scrollbar {
  width: 5px;
}

.wa-messages::-webkit-scrollbar-track {
  background: transparent;
}

.wa-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.wa-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.35);
}

/* Dark sidebar scrollbar */
.dark-scroll::-webkit-scrollbar {
  width: 5px;
}

.dark-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.dark-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.dark-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* WhatsApp Message Bubble Tail Accents */
.wa-tail-in {
  position: relative;
}

.wa-tail-in::before {
  content: "";
  position: absolute;
  top: 0;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 10px solid #ffffff;
  border-left: 8px solid transparent;
}

.wa-tail-out {
  position: relative;
}

.wa-tail-out::before {
  content: "";
  position: absolute;
  top: 0;
  right: -8px;
  width: 0;
  height: 0;
  border-top: 10px solid #d9fdd3;
  border-right: 8px solid transparent;
}

/* Subtle Pulsing Ring */
@keyframes pulseRing {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.pulse-badge {
  animation: pulseRing 2s infinite;
}

/* Glow effects */
.glow-emerald {
  box-shadow: 0 0 50px -10px rgba(16, 185, 129, 0.25);
}

.glow-subtle {
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
}

/* Custom Styled Range Sliders for ROI Calculator */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #334155;
  border-radius: 9999px;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #10b981;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  transition: transform 0.15s ease, background 0.15s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #34d399;
}

input[type=range]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: #10b981;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  transition: transform 0.15s ease, background 0.15s ease;
}

input[type=range]::-moz-range-thumb:hover {
  transform: scale(1.2);
  background: #34d399;
}

/* FAQ Accordion Transitions */
.faq-content {
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
}

.faq-content.open {
  max-height: 500px;
  opacity: 1;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-icon.open {
  transform: rotate(180deg);
}
