/* Restore semantic colours on Forgejo status SVGs.
   The lutinglt/gitea-github-theme remaps .text.green to var(--color-console-fg-subtle)
   (the dim console foreground), which renders as near-white on dark. That kills the
   success/failure/cancellation visual cues across the Actions UI, commit list, and
   issue badges. We override back to the semantic colours with high specificity. */

/* Override the theme's .text.{color} rules — the SVG itself carries these classes
   directly (e.g. `<svg class="text green svg octicon-check-circle-fill">`).
   Use double-class specificity + !important to win over the theme. */

svg.text.green,
.text.green.svg,
.text.green svg,
.text.green {
  color: #3fb950 !important;
}

svg.text.red,
.text.red.svg,
.text.red svg,
.text.red {
  color: #f85149 !important;
}

svg.text.yellow,
.text.yellow.svg,
.text.yellow svg,
.text.yellow {
  color: #d29922 !important;
}

svg.text.blue,
.text.blue.svg,
.text.blue svg,
.text.blue {
  color: #4493f8 !important;
}

svg.text.orange,
.text.orange.svg,
.text.orange svg,
.text.orange {
  color: #db6d28 !important;
}

svg.text.purple,
.text.purple.svg,
.text.purple svg,
.text.purple {
  color: #a371f7 !important;
}

/* Status-grey: brighter than the theme's default so "Skipped" / "Canceled" still reads */
svg.text.grey,
.text.grey.svg,
.text.grey svg,
.text.grey {
  color: #8b949e !important;
}

/* Spinning indicator for in-progress (Forgejo wraps the SVG in a span with
   data-tooltip-content of "Running" — animate on that container or directly on svg) */
[data-tooltip-content="Running"] svg.octicon,
[aria-label="Running"] svg.octicon {
  color: #4493f8 !important;
  animation: forgejo-status-spin 1.6s linear infinite;
}
@keyframes forgejo-status-spin { to { transform: rotate(360deg); } }
