/**
 * @file
 * Transcode form styles.
 *
 * Uses Gin admin theme CSS variables for dark mode compatibility.
 */

.ffmpeg-media-info {
  background: var(--ffmpeg-surface, #ffffff);
  border: 1px solid var(--ffmpeg-border, #e5e7eb);
  border-radius: var(--ffmpeg-radius-m, 10px);
  padding: 1.5rem;
  box-shadow: var(--ffmpeg-shadow, 0 2px 8px rgba(0, 0, 0, 0.08));
  margin-bottom: 2rem;
}

.ffmpeg-media-info h3 {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ffmpeg-title, #111827);
}

.ffmpeg-video-details {
  background: var(--ffmpeg-surface-2, #f5f5f5);
  border: 1px solid var(--ffmpeg-border, #e5e7eb);
  border-radius: var(--ffmpeg-radius-s, 6px);
  padding: 1rem;
}

.ffmpeg-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.ffmpeg-details-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--ffmpeg-text-muted, #6b7280);
}

/* Current status section */
.ffmpeg-current-status {
  margin-bottom: 2rem;
}

/* Existing outputs */
.ffmpeg-media-info + details {
  margin-bottom: 2rem;
}

/* Form options */
#edit-options {
  background: var(--ffmpeg-surface, #ffffff);
  border: 1px solid var(--ffmpeg-border, #e5e7eb);
  border-radius: var(--ffmpeg-radius-m, 10px);
  box-shadow: var(--ffmpeg-shadow, 0 2px 8px rgba(0, 0, 0, 0.08));
}

#edit-options .fieldset-legend {
  font-weight: 600;
}

/* Action buttons */
#edit-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

#edit-actions .button--primary {
  background: var(--ffmpeg-accent, #2563eb);
  border-color: var(--ffmpeg-accent, #2563eb);
  color: var(--ffmpeg-on-accent, #ffffff);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--ffmpeg-radius-s, 6px);
  transition: background 0.2s ease;
}

#edit-actions .button--primary:hover {
  background: var(--ffmpeg-accent-hover, #1d4ed8);
  border-color: var(--ffmpeg-accent-hover, #1d4ed8);
}

#edit-actions .button {
  padding: 0.75rem 1.5rem;
  border-radius: var(--ffmpeg-radius-s, 6px);
}

/* Danger button for destructive/cancel actions */
.button--danger {
  background: var(--ffmpeg-danger, #dc2626);
  border: 1px solid var(--ffmpeg-danger, #dc2626);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--ffmpeg-radius-s, 6px);
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.button--danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #ffffff;
}
