/**
 * Zyron CRM - Order Timeline Component
 */

/* Timeline Container */
.order-timeline {
  display: flex;
  justify-content: space-between;
  margin: var(--space-4) 0;
  padding: var(--space-4);
  background-color: var(--color-surface-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

/* Timeline Step */
.order-timeline__step {
  flex: 1;
  text-align: center;
  position: relative;
}

/* Connector Line */
.order-timeline__step::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 60%;
  right: -40%;
  height: 2px;
  background-color: var(--color-surface-4);
  z-index: 0;
}

.order-timeline__step:last-child::after {
  display: none;
}

/* Step States */
.order-timeline__step--done::after {
  background-color: var(--color-success);
}

.order-timeline__step--active::after {
  background: linear-gradient(90deg, var(--color-success) 50%, var(--color-surface-4) 50%);
}

/* Step Dot */
.order-timeline__dot {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background-color: var(--color-surface-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  position: relative;
  z-index: 1;
  transition: all var(--transition-base);
}

.order-timeline__step--done .order-timeline__dot {
  background-color: var(--color-success);
  color: white;
}

.order-timeline__step--active .order-timeline__dot {
  background-color: var(--color-primary);
  color: white;
  box-shadow: 0 0 0 4px rgba(215, 38, 61, 0.25);
}

.order-timeline__step--cancelled .order-timeline__dot {
  background-color: #EF4444;
  color: white;
}

/* Step Label */
.order-timeline__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.order-timeline__step--done .order-timeline__label,
.order-timeline__step--active .order-timeline__label {
  color: var(--color-text-secondary);
}

/* Order Product Row */
.order-product-row {
  padding: var(--space-2);
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
}
