/* Extraction progress panel — inline on Extract tab (animations + layout) */
@keyframes extraction-overlay-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes extraction-progress-sheen {
  0% { transform: translateX(-130%); }
  100% { transform: translateX(360%); }
}

@keyframes extraction-row-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.12); }
  50% { box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.32), 0 4px 14px rgba(124, 58, 237, 0.12); }
}

@keyframes extraction-processing-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@keyframes extraction-orb-pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes extraction-orb-spin {
  to { transform: rotate(360deg); }
}

@keyframes extraction-spin {
  to { transform: rotate(360deg); }
}

.extraction-overlay {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem;
  width: 100%;
  animation: extraction-overlay-enter 0.35s ease-out;
}

.extraction-overlay__card {
  position: relative;
  width: 100%;
  border-radius: 14px;
  padding: 1rem 1.25rem 0.9rem;
  background: var(--hg-card, var(--bs-body-bg));
  border: 1px solid var(--hg-line, var(--bs-border-color));
  box-shadow: none;
  overflow: hidden;
}

.extraction-overlay__card::before {
  display: none;
}

.extraction-overlay__header {
  position: relative;
  margin-bottom: 0.85rem;
}

.extraction-overlay__title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.extraction-overlay__title-icon {
  position: relative;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hg-accent, #1f6f43) 12%, transparent);
}

.extraction-overlay__orb {
  display: none;
}

.extraction-overlay__title-icon .bi {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  color: var(--hg-accent, #1f6f43);
  animation: none;
}

.extraction-overlay__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--hg-ink, inherit);
  background: none;
  -webkit-text-fill-color: unset;
}

.extraction-overlay__subtitle {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--bs-secondary-color);
}

.extraction-overlay__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

@media (max-width: 575.98px) {
  .extraction-overlay__stats {
    grid-template-columns: 1fr;
  }
}

.extraction-overlay__stat {
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-tertiary-bg, rgba(var(--bs-primary-rgb), 0.04));
}

.extraction-overlay__stat--accent .extraction-overlay__stat-value {
  color: var(--hg-accent, #1f6f43);
}

.extraction-overlay__stat-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bs-secondary-color);
  margin-bottom: 0.2rem;
}

.extraction-overlay__stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bs-body-color);
}

.extraction-overlay__stat-value--mono {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.extraction-overlay__processing-live {
  color: var(--hg-accent, #1f6f43);
  font-weight: 700;
  animation: extraction-processing-text 1.2s ease-in-out infinite;
}

.extraction-overlay__overtime {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bs-secondary-color);
}

.extraction-overlay__progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--hg-line, var(--bs-border-color));
  border-radius: 12px;
  background: color-mix(in srgb, var(--hg-accent, #1f6f43) 6%, transparent);
}

.extraction-overlay__progress-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--hg-hover, rgba(0, 0, 0, 0.06));
  border: none;
}

.extraction-overlay__progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--hg-btn-primary-bg, var(--hg-accent, #1f6f43));
  transition: width 0.12s linear;
  box-shadow: none;
  position: relative;
}

.extraction-overlay__progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 35%;
  transform: translateX(-130%);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  animation: extraction-progress-sheen 1.05s ease-in-out infinite;
}

.extraction-overlay__progress-pct {
  flex-shrink: 0;
  min-width: 2.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  color: var(--hg-accent, #1f6f43);
  text-align: right;
}

.extraction-overlay__eta-note {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  color: var(--bs-secondary-color);
}

.extraction-overlay__file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: min(240px, 32vh);
  overflow-y: auto;
}

.extraction-overlay__file-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-tertiary-bg, rgba(var(--bs-primary-rgb), 0.03));
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.extraction-overlay__file-item--active {
  border-color: color-mix(in srgb, var(--hg-accent, #1f6f43) 40%, var(--bs-border-color));
  animation: none;
  background: color-mix(in srgb, var(--hg-accent, #1f6f43) 6%, transparent);
}

.extraction-overlay__file-item--done {
  border-color: color-mix(in srgb, var(--hg-accent, #1f6f43) 28%, var(--bs-border-color));
  opacity: 0.92;
}

.extraction-overlay__file-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-secondary-color);
}

.extraction-overlay__file-item--done .extraction-overlay__file-icon {
  color: var(--hg-accent, #1f6f43);
}

.extraction-overlay__file-item--active .extraction-overlay__file-icon {
  color: var(--hg-accent, #1f6f43);
}

.extraction-overlay__mini-spinner {
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid color-mix(in srgb, var(--hg-accent, #1f6f43) 25%, transparent);
  border-top-color: var(--hg-accent, #1f6f43);
  border-radius: 50%;
  animation: extraction-spin 0.7s linear infinite;
}

.extraction-overlay__file-name {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.extraction-overlay__file-badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  color: var(--bs-secondary-color);
}

.extraction-overlay__file-item--active .extraction-overlay__file-badge {
  background: color-mix(in srgb, var(--hg-accent, #1f6f43) 12%, transparent);
  border-color: color-mix(in srgb, var(--hg-accent, #1f6f43) 30%, var(--bs-border-color));
  color: var(--hg-accent, #1f6f43);
}

.extraction-overlay__file-item--done .extraction-overlay__file-badge {
  background: color-mix(in srgb, var(--hg-accent, #1f6f43) 10%, transparent);
  border-color: color-mix(in srgb, var(--hg-accent, #1f6f43) 28%, var(--bs-border-color));
  color: var(--hg-accent, #1f6f43);
}

/* Manage candidates view panels — backup-style show/hide */
@keyframes mc-view-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.manage-candidates-view-panel:not(.d-none) {
  animation: mc-view-fade-in 0.28s ease-out;
}

.manage-candidates-comparison-scroll {
  max-height: min(60vh, 520px);
  overflow: auto;
}
