/* Progress status — viz header; pairs with navigator card border colors */

.vp-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-wrap: wrap;
}

.vp-practice-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  color: #0d1117;
  background: linear-gradient(180deg, #3fb950 0%, #2ea043 100%);
  border: 1px solid rgba(46, 160, 67, 0.85);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 2px 8px rgba(0, 0, 0, 0.35);
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.vp-practice-link:hover {
  filter: brightness(1.08);
  color: #0d1117;
}

.vp-practice-link:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(63, 185, 80, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.vp-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vp-progress-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

/* Shell: houses chevron + focus ring (native select stays flush inside) */
.vp-progress-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  border-radius: 10px;
  background: linear-gradient(180deg, #21262d 0%, #161b22 100%);
  border: 1px solid var(--border);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 2px 8px rgba(0, 0, 0, 0.35);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.vp-progress-select-wrap:hover {
  border-color: #484f58;
}

.vp-progress-select-wrap:focus-within {
  border-color: var(--blue);
  box-shadow:
    0 0 0 2px rgba(56, 139, 253, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.vp-progress-select-wrap::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--muted);
  pointer-events: none;
  opacity: 0.85;
}

.vp-progress-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  margin: 0;
  width: 100%;
  min-width: 11rem;
  max-width: min(100vw - 48px, 16rem);
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.35;
  padding: 9px 34px 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  outline: none;
}

.vp-progress-select option {
  background: var(--bg2);
  color: var(--text);
  padding: 8px;
}

/* Status tint on the control (matches card border semantics) */
.vp-progress-wrap[data-vp-st='IN_PROGRESS'] .vp-progress-select-wrap {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.12) inset,
    0 2px 8px rgba(0, 0, 0, 0.35);
}
.vp-progress-wrap[data-vp-st='IN_PROGRESS'] .vp-progress-select-wrap:focus-within {
  border-color: #fbbf24;
  box-shadow:
    0 0 0 2px rgba(251, 191, 36, 0.25),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.vp-progress-wrap[data-vp-st='PRACTICE_PENDING'] .vp-progress-select-wrap {
  border-color: rgba(129, 140, 248, 0.5);
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, 0.12) inset,
    0 2px 8px rgba(0, 0, 0, 0.35);
}
.vp-progress-wrap[data-vp-st='PRACTICE_PENDING'] .vp-progress-select-wrap:focus-within {
  border-color: #818cf8;
  box-shadow:
    0 0 0 2px rgba(129, 140, 248, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.vp-progress-wrap[data-vp-st='SOLVED'] .vp-progress-select-wrap {
  border-color: rgba(63, 185, 80, 0.45);
  box-shadow:
    0 0 0 1px rgba(63, 185, 80, 0.12) inset,
    0 2px 8px rgba(0, 0, 0, 0.35);
}
.vp-progress-wrap[data-vp-st='SOLVED'] .vp-progress-select-wrap:focus-within {
  border-color: #3fb950;
  box-shadow:
    0 0 0 2px rgba(63, 185, 80, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.vp-progress-wrap[data-vp-st='NEEDS_REVISION'] .vp-progress-select-wrap {
  border-color: rgba(247, 129, 102, 0.45);
  box-shadow:
    0 0 0 1px rgba(247, 129, 102, 0.12) inset,
    0 2px 8px rgba(0, 0, 0, 0.35);
}
.vp-progress-wrap[data-vp-st='NEEDS_REVISION'] .vp-progress-select-wrap:focus-within {
  border-color: #f78166;
  box-shadow:
    0 0 0 2px rgba(247, 129, 102, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

@media (max-width: 720px) {
  .vp-header-actions {
    margin-left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .vp-practice-link {
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }
  .vp-progress-wrap {
    width: 100%;
    justify-content: space-between;
  }
  .vp-progress-select {
    min-width: 0;
    flex: 1;
  }
}
