/* ══ WORKFLOW TRACKER ══ */
/* Fixed step-by-step guide between toolbar and canvas-area. */
/* Shows progress through the app workflow with completing steps. */
/* Optional alert row below steps (e.g. Beta warning for Protect). */

.workflow-tracker {
  background: white;
  border-bottom: 1px solid var(--grey-200);
  display: none;
  flex-direction: column;
  align-items: center;
}

.workflow-tracker.visible {
  display: flex;
}

/* ── Steps row ── */
.wf-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  width: 100%;
  transition: background 0.3s;
}

.wf-step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--grey-500);
  line-height: 1.4;
  transition: color 0.3s;
}

.wf-step.active {
  color: var(--grey-900);
}

.wf-step.done {
  color: var(--green);
}

.wf-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--grey-200);
  color: var(--grey-500);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.wf-step.active .wf-step-num {
  background: var(--accent-light);
  color: var(--accent);
}

.wf-step.done .wf-step-num {
  background: var(--green-light);
  color: var(--green);
}

/* Check icon: hidden by default, shown when step is done */
.wf-step-check {
  display: none;
}

.wf-step.done .wf-step-check {
  display: flex;
}

.wf-step.done .wf-step-num-text {
  display: none;
}

/* Arrow between steps */
.wf-step-arrow {
  color: var(--grey-300);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0 4px;
  transition: color 0.3s;
}

/* ── All-done state ── */
.workflow-tracker.all-done .wf-steps {
  background: var(--green-light);
}

/* ── Alert row (optional) ── */
.wf-alert {
  width: 100%;
  padding: 7px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  line-height: 1.4;
  border-top: 1px solid var(--grey-200);
}

.wf-alert-icon {
  flex-shrink: 0;
  display: flex;
}

/* Warning variant (amber) */
.wf-alert.warning {
  background: #fffde7;
  border-top-color: #fff9c4;
  color: #5d4037;
}

.wf-alert.warning .wf-alert-icon {
  color: #f9a825;
}

/* Info variant (blue) */
.wf-alert.info {
  background: #e8f0fe;
  border-top-color: #d2e3fc;
  color: #0c447c;
}

.wf-alert.info .wf-alert-icon {
  color: #1a73e8;
}

/* Beta badge inside alert — matches home page card badge style */
.wf-alert strong {
  font-weight: 600;
  font-size: 10px;
  background: rgba(249, 168, 37, 0.15);
  color: #f9a825;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .wf-step-arrow {
    display: none;
  }

  .wf-steps {
    flex-wrap: wrap;
    gap: 6px;
  }
}
