@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
  background-color: #fff;
  color: #000;
}

html {
  scroll-behavior: smooth;
}

.gradient-bg {
  background: #000;
}

.card-shadow {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Arrow animation styles */
.arrow-animate {
  animation: arrowPulse 3s infinite;
  stroke: #000;
}

.animation-delay-500 {
  animation-delay: 0.5s;
}

@keyframes arrowPulse {
  0% {
    opacity: 0.4;
    transform: translateX(0);
    stroke: #555;
  }
  50% {
    opacity: 1;
    transform: translateX(4px);
    stroke: #000;
  }
  100% {
    opacity: 0.4;
    transform: translateX(0);
    stroke: #555;
  }
}

/* Fade in/out animation for modal */
.modal-fade-enter {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}
.modal-fade-enter-active {
  opacity: 1;
}
.modal-fade-exit {
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}
.modal-fade-exit-active {
  opacity: 0;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.shake {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* Mobile text centering */
.mobile-center {
  text-align: inherit; /* Default alignment on larger screens */
}
@media (max-width: 768px) {
  .mobile-center {
    text-align: center;
  }

  .hero-text{
        font-size: 2rem !important;
  }
}

/* Call animation transitions */
.call-section {
  margin-bottom: 1.5rem;
}

.call-section-active {
  height: 172px; /* Fixed height for 2 items (76px each) + margins + padding */
}

.call-section-scheduled {
  height: 172px; /* Fixed height for 2 items (76px each) + margins + padding */
}

.call-item {
  height: 76px;
  margin-bottom: 0.5rem;
  overflow: hidden;
  position: relative;
  background-color: rgb(249, 250, 251); /* bg-gray-50 */
  border-radius: 0.5rem;
  padding: 0.75rem;
}

.call-item:last-child {
  margin-bottom: 0;
}

/* Content transition animations */
.call-content {
  transition: opacity 0.3s ease-in-out;
}

.call-content.fade-out {
  opacity: 0;
}

.call-content.fade-in {
  opacity: 1;
}

/* Remove old animation classes that are no longer needed */
.animate-in,
.animate-out {
  display: none;
}

/* Ensure consistent spacing and layout */
.call-dashboard {
  min-height: 400px;
  height: auto;
}

/* Status indicator pulse animation */
.status-indicator {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: rgb(220, 252, 231);
  color: rgb(22, 101, 52);
  margin-right: 0.5rem;
}

.status-dot {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  background-color: rgb(34, 197, 94);
  margin-right: 0.25rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-in-out forwards;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.animation-delay-1000 {
  animation-delay: 1s;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-3000 {
  animation-delay: 3s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

.font-oswald {
  font-family: 'Oswald', sans-serif;
}

.font-oswald-light {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
}

@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.animate-pulse-slow {
  animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Add this to your existing styles */
.tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer; /* Add this line to show the help cursor */
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.tooltip-text {
  visibility: hidden;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px;
  background-color: #000;
  color: white;
  text-align: center;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #000 transparent transparent transparent;
}

.btn-primary {
  background-color: #000;
  color: #fff;
}

.btn-primary:hover {
  background-color: #333;
}

.btn-secondary {
  background-color: #fff;
  color: #000;
  border: 1px solid #000;
}

.btn-secondary:hover {
  background-color: #f3f3f3;
}

.text-primary {
  color: #000;
}

.bg-primary {
  background-color: #000;
}

.border-primary {
  border-color: #000;
}
/* Card hover and appear animations */
.workflow-card {
  opacity: 0;
  animation: cardAppear 0.6s forwards;
}

.workflow-card:nth-child(1) {
  animation-delay: 0.1s;
}

.workflow-card:nth-child(2) {
  animation-delay: 0.3s;
}

.workflow-card:nth-child(3) {
  animation-delay: 0.5s;
}

/* Update flex container behavior */
@media (min-width: 768px) {
  .workflow-card {
    align-self: flex-start; /* Allow cards to have natural height */
  }
  
  .workflow-card > div {
    height: auto; /* Remove fixed height constraint */
  }
}

@keyframes cardAppear {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Agent option hover effect */
.agent-option, .crm-option {
  transition: all 0.2s ease;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.agent-option:hover, .crm-option:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Connection pulse animation */
.connection-status {
  position: relative;
}

.connection-pulse:after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Call progress animation */
.call-progress {
  position: relative;
  overflow: hidden;
}

.call-progress:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-image: linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.2) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.2) 75%,
    transparent 75%,
    transparent
  );
  background-size: 50px 50px;
  animation: progressAnimation 2s linear infinite;
}

@keyframes progressAnimation {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50px 0;
  }
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(17, 24, 39, 0.75);
    z-index: 50;
  }

  .modal.active {
    display: block;
  }

  .modal-content {
    position: relative;
    background-color: white;
    margin: 2rem auto;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 42rem;
    width: 95%;
  }

  .modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 10;
    padding: 0.5rem;
    border-radius: 0.375rem;
    background-color: white;
  }

  .modal-close:hover {
    background-color: #f3f4f6;
  }

/* Voice Sample Card Styles */
.voice-card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.voice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.voice-sample-select {
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.voice-sample-select:focus {
  border-color: #000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Common play button styles for both sections */
.play-voice-btn,
.play-voice {
  transition: all 0.2s ease-in-out;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.play-voice-btn:hover,
.play-voice:hover {
  transform: scale(1.05);
  background-color: #333;
}

.play-voice-btn:active,
.play-voice:active {
  transform: scale(0.95);
}

.play-voice-btn svg,
.play-voice svg {
  width: 20px;
  height: 20px;
}

.voice-progress {
  transition: width 0.1s linear;
}

/* Voice playback animation */
@keyframes voiceProgress {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

.playing .voice-progress {
  animation: voiceProgress var(--duration) linear forwards;
}

/* Pulse animation for playing state */
@keyframes playingPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.playing .play-voice-btn,
.playing .play-voice {
  animation: playingPulse 2s infinite;
  background-color: #4CAF50;
}

/* Sample text fade transition */
.voice-sample-text {
  transition: opacity 0.3s ease-in-out;
}

.voice-sample-text.changing {
  opacity: 0;
}
