
/* Preview Section */
.preview-section {
  margin-bottom: 30px;
  background: #111111;
  padding: 20px;
  border: 1px solid #444;
}

.preview-section h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  color: #2adb5c;
}

.video-preview {
  text-align: center;
  margin-bottom: 15px;
}

.video-preview video {
  max-width: 100%;
  max-height: 300px;
}

.video-info {
  background: #222222;
  padding: 15px;
  font-size: 0.9rem;
  color: #ffffff;
  border: 1px solid #333333;
}

/* Settings Section */
.settings-section {
  background: #111111;
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid #444;
}

.settings-section h3 {
  color: #2adb5c;
  margin-bottom: 20px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.setting-item {
  display: flex;
  flex-direction: column;
}

.setting-item label {
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.process-section {
  text-align: center;
}

.process-btn {
  background: #2adb5c;
  color: #fff;
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}

.process-btn:hover {
  background: #22c44e;
  transform: translateY(-2px);
}

.process-btn:disabled {
  background: #333333;
  color: #666666;
  cursor: not-allowed;
  transform: none;
}

/* Progress Section */
.progress-section {
  background: #111111;
  padding: 30px;
  text-align: center;
  border: 1px solid #444;
  margin-bottom: 30px;
}

.progress-section h3 {
  color: #2adb5c;
  margin-bottom: 20px;
}

.progress-container {
  margin-bottom: 15px;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background: #333333;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid #444;
}

.progress-fill {
  height: 100%;
  background: #2adb5c;
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 1.2rem;
  font-weight: bold;
  color: #2adb5c;
}

.progress-info {
  color: #ffffff;
  font-size: 0.95rem;
  margin-top: 10px;
}

/* Results Section */
.results-section {
  background: #111111;
  padding: 30px;
  text-align: center;
  border: 1px solid #444;
  margin-bottom: 30px;
}

.results-section h3 {
  color: #2adb5c;
  margin-bottom: 20px;
}

.result-item {
  background: #222222;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #333333;
}

.result-info h4 {
  color: #2adb5c;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.result-info p {
  color: #ffffff;
  margin-bottom: 15px;
}

.result-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.download-btn {
  background: #2adb5c;
  color: #fff;
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
  font-weight: bold;
}

.download-btn:hover {
  background: #22c44e;
}

.play-btn {
  background: #2adb5c;
  color: #fff;
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
  font-weight: bold;
}

.play-btn:hover {
  background: #22c44e;
}

.secondary-btn {
  background: #333333;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.secondary-btn:hover {
  background: #444444;
}

.new-extraction {
  margin-top: 20px;
  display: none;
}

/* Error Section */
.error-section {
  background: #111111;
  padding: 30px;
  text-align: center;
  border: 1px solid #444;
  margin-bottom: 30px;
}

.error-section h3 {
  color: #ff4757;
  margin-bottom: 20px;
}

.error-container {
  background: #222222;
  border: 1px solid #444;
  padding: 20px;
  margin-bottom: 20px;
}

.error-message {
  color: #fff;
  margin-bottom: 15px;
  font-size: 1rem;
}

.error-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.retry-btn {
  background: #ff4757;
  color: #fff;
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
  font-weight: bold;
}

.retry-btn:hover {
  background: #ff3742;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  .upload-area {
    padding: 30px 20px;
  }
  
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .result-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .error-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* Animation for smooth transitions */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading spinner */
.spinner {
  border: 3px solid #333333;
  border-top: 3px solid #2adb5c;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}