/* Tavus CVI Player Styles */
.cvi-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: transparent;
}

#cvi-player-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.loading-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  z-index: 10;
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.content-behind {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-behind h1 {
  color: white;
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .loading-indicator {
    font-size: 16px;
    padding: 15px;
  }
  
  .content-behind h1 {
    font-size: 2rem;
  }
}

/* CVI Player specific styles */
.tavus-player {
  width: 100% !important;
  height: 100% !important;
  border: none;
  background: transparent;
}

/* Hide default video controls if needed */
.tavus-player video {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Error state styling */
.cvi-error {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
}

/* Success state styling */
.cvi-ready {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

/* Loading animation */
.loading-indicator::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}