/* AI Video Generator - Additional Styles */

/* Custom animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

.slide-in {
  animation: slideIn 0.5s ease-out;
}

.pulse {
  animation: pulse 2s infinite;
}

/* Custom gradient backgrounds */
.bg-gradient-video {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-success {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.bg-gradient-error {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* File upload styling */
.file-upload-area {
  border: 2px dashed #cbd5e0;
  border-radius: 0.5rem;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-upload-area:hover {
  border-color: #3182ce;
  background-color: #f7fafc;
}

.file-upload-area.drag-over {
  border-color: #3182ce;
  background-color: #ebf8ff;
}

/* Progress bar enhancements */
.progress-bar {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

/* Card hover effects */
.video-card {
  transition: all 0.3s ease;
}

.video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Button enhancements */
.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  border: none;
  color: #4a5568;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(168, 237, 234, 0.4);
}

/* Status indicators */
.status-pending {
  color: #d69e2e;
  background-color: #fef5e7;
}

.status-processing {
  color: #3182ce;
  background-color: #ebf8ff;
}

.status-completed {
  color: #38a169;
  background-color: #f0fff4;
}

.status-failed {
  color: #e53e3e;
  background-color: #fed7d7;
}

/* Loading spinner */
.spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3182ce;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Scene image styling */
.scene-image {
  border-radius: 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.scene-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Form validation styling */
.form-error {
  border-color: #e53e3e !important;
  box-shadow: 0 0 0 1px #e53e3e !important;
}

.form-success {
  border-color: #38a169 !important;
  box-shadow: 0 0 0 1px #38a169 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .video-card {
    margin-bottom: 1rem;
  }
  
  .btn-group {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .btn-group .btn {
    width: 100%;
  }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
  .bg-white {
    background-color: #1a202c;
    color: #e2e8f0;
  }
  
  .text-gray-800 {
    color: #e2e8f0;
  }
  
  .text-gray-600 {
    color: #a0aec0;
  }
  
  .border-gray-200 {
    border-color: #2d3748;
  }
}

/* Utility classes */
.text-truncate {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
}