/* ============================================================
   SNIPPER.CSS: CAPTURA EN GRANDE ESTILO LIGHTSHOT / RECORTES
   SaaS Dark Design System (Zinc / Slate)
   ============================================================ */

.snipping-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(9, 9, 11, 0.96);
  z-index: 100;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.snipping-header-bar {
  height: 52px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 110;
  flex-shrink: 0;
}

.step-indicator-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.step-pill .step-number {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.step-pill.active {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.step-pill.active .step-number {
  background: var(--primary);
  color: #ffffff;
}

.step-pill.pending {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.step-pill.pending .step-number {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.step-pill.completed {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.step-pill.completed .step-number {
  background: var(--success);
  color: #ffffff;
}

.step-arrow {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.snipping-instructions {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-main);
  background: var(--bg-card);
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  max-width: 520px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.snipping-workspace {
  flex: 1;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 30px;
  position: relative;
  background-color: var(--bg-base);
}

.snipping-workspace::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.snipping-workspace::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.snipping-stage {
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: #ffffff;
  border-radius: 4px;
  line-height: 0;
}

#snipping-canvas {
  display: block;
}

#snipping-overlay-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  z-index: 10;
}

/* CAJA DE ACCIONES FLOTANTE DE SELECCIÓN (LIGHTSHOT) */
.selection-action-box {
  position: absolute;
  z-index: 50;
  background: var(--bg-overlay);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  pointer-events: auto;
  transform: translateY(8px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.selection-meta {
  font-size: 0.74rem;
  font-weight: 600;
  color: #93c5fd;
  white-space: nowrap;
  padding: 0 4px;
}

.selection-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.selection-btns .btn {
  height: 28px;
  padding: 0 8px;
  font-size: 0.76rem;
}
