.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: white;
}

.app-header {
  background-color: transparent;
  color: white;
  padding: 2rem 2rem 1rem;
  text-align: center;
}

.app-header h1 {
  margin: 0;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  background: linear-gradient(to right, #34d399, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.demo-title {
  margin: 0.5rem 0 0 0;
  font-size: 1.125rem;
  color: #cbd5e1;
  font-weight: 400;
}

.demo-content {
  flex: 1;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  align-items: stretch;
}

.video-section {
  background-color: transparent;
  border-radius: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.status-section {
  background-color: transparent;
  border-radius: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Error and loading states */
.error-state,
.loading-state {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.error-message,
.loading-message {
  text-align: center;
  max-width: 600px;
}

.error-message h1 {
  color: #d32f2f;
  margin-bottom: 1rem;
}

.error-message p {
  color: #666;
  line-height: 1.6;
  margin: 0.5rem 0;
}

.loading-message h1 {
  color: #1976d2;
  margin-bottom: 1rem;
}

.loading-message p {
  color: #666;
}

/* Responsive design */
@media (max-width: 1024px) {
  .demo-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .video-section {
    order: 1;
  }
  
  .status-section {
    order: 2;
  }
}

@media (max-width: 640px) {
  .app-header {
    padding: 1rem;
  }
  
  .app-header h1 {
    font-size: 1.5rem;
  }
  
  .demo-content {
    padding: 1rem;
    gap: 1rem;
  }
  
  .video-section,
  .status-section {
    padding: 1rem;
  }
}

/* Timeline toggle button */
.timeline-toggle {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  backdrop-filter: blur(8px);
}

.timeline-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.timeline-toggle:active {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(1px);
}