/* Video Frame Extractor Workbench Desktop Styles */
:root {
  --extract-primary: #0284c7;
  --extract-primary-hover: #0369a1;
  --extract-primary-bg: #f0f9ff;
  --extract-border: #e2e8f0;
  --extract-card-bg: #ffffff;
}

/* Preset Demo Showcase Bar */
.live-presets-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--extract-border);
  border-radius: 14px;
  padding: 8px 16px;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.presets-header .presets-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
}

.presets-scroll {
  display: flex;
  gap: 8px;
  align-items: center;
}

.preset-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.preset-pill-btn:hover {
  border-color: var(--extract-primary);
  color: var(--extract-primary);
  background: var(--extract-primary-bg);
}

.preset-pill-btn.active {
  background: var(--extract-primary);
  border-color: var(--extract-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.preset-pill-btn.upload-pill {
  border-style: dashed;
  border-color: #94a3b8;
}

/* Main Container & Card */
.main-card {
  background: var(--extract-card-bg);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  border: 1px solid #f1f5f9;
  padding: 1.75rem;
  margin-bottom: 2.5rem;
}

/* Upload Dropzone */
.dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  background: #fdfdfd;
  padding: 3.8rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.dropzone:hover {
  border-color: var(--extract-primary);
  background: var(--extract-primary-bg);
}

.dropzone-center {
  max-width: 520px;
  margin: 0 auto;
}

.dropzone-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: var(--extract-primary-bg);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--extract-primary);
}

.dropzone-icon {
  width: 34px;
  height: 34px;
}

.dropzone-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.dropzone-sub {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.privacy-badge {
  display: inline-flex;
  padding: 4px 12px;
  background: #f1f5f9;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

/* Extract Grid */
.extract-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.75rem;
  align-items: start;
}

/* Freeze Player Card */
.freeze-player-card {
  position: relative;
  background: #000000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.freeze-player-card video {
  width: 100%;
  max-height: 520px;
  display: block;
  object-fit: contain;
}

.player-top-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0ea5e9;
  box-shadow: 0 0 6px #0ea5e9;
}

.player-time-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: ui-monospace, monospace;
  font-weight: 700;
  z-index: 2;
}

/* Controls Column */
.extract-controls-col {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.panel-subtitle {
  font-size: 0.88rem;
  font-weight: 800;
  color: #1e293b;
}

/* Filmstrip Panel */
.filmstrip-panel {
  background: #ffffff;
  border: 1px solid var(--extract-border);
  border-radius: 14px;
  padding: 1.1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.filmstrip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.active-time-pill {
  font-size: 0.78rem;
  font-family: ui-monospace, monospace;
  font-weight: 700;
  color: var(--extract-primary);
  background: var(--extract-primary-bg);
  padding: 2px 8px;
  border-radius: 6px;
}

.filmstrip-track-wrapper {
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.filmstrip-track {
  display: flex;
  gap: 8px;
}

.filmstrip-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #1e293b;
  transition: all 0.15s ease;
}

.filmstrip-thumb:hover {
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.filmstrip-thumb.active {
  border-color: var(--extract-primary);
  box-shadow: 0 0 0 2px var(--extract-primary);
}

/* Step Controls Card */
.step-controls-card {
  background: #f8fafc;
  border: 1px solid var(--extract-border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.step-header {
  margin-bottom: 0.65rem;
}

.stepper-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.4fr 1fr;
  gap: 6px;
}

.btn-step {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 8px;
  padding: 8px 4px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.btn-step:hover {
  border-color: var(--extract-primary);
  color: var(--extract-primary);
  background: var(--extract-primary-bg);
}

.btn-step-main {
  background: #ffffff;
  font-weight: 800;
}

/* Format Card */
.format-card {
  background: #ffffff;
  border: 1px solid var(--extract-border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.format-chips-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 0.6rem;
}

.format-chip {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.format-chip:hover {
  border-color: var(--extract-primary);
  color: var(--extract-primary);
}

.format-chip.active {
  background: var(--extract-primary-bg);
  border-color: var(--extract-primary);
  color: var(--extract-primary);
  box-shadow: 0 0 0 1px var(--extract-primary);
}

/* Actions Group */
.actions-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0.25rem;
}

.btn-primary-action {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 13px 20px;
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary-action:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-zip-action {
  background: #ffffff;
  border: 1.5px solid #0284c7;
  color: #0284c7;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-zip-action:hover {
  background: var(--extract-primary-bg);
}

.btn-secondary-action {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #64748b;
  border-radius: 12px;
  padding: 11px 18px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-secondary-action:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

@media (max-width: 900px) {
  .extract-grid {
    grid-template-columns: 1fr;
  }
}
