/* fx-progressbar.css */

.fx-progressbar {
    display: inline-flex;
    align-items: center;
    gap: var(--nx-space-small);
    width: 100%;
    font-size: 0.8rem;
}

.fx-progressbar-track {
    flex: 1 1 auto;
    position: relative;
    min-height: 1.6rem;
    border-radius: var(--nx-border-radius);
    background: var(--nx-secondary-bg);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.fx-progressbar-fill {
    position: absolute;
    inset: 0;
    height: 100%;
    border-radius: var(--nx-border-radius);
    background: var(--nx-highlight-fg);
    transition: width 0.3s ease, background 0.3s ease;

}



.fx-progressbar-label {
    position: relative;
    z-index: 1;
    padding: 0 var(--nx-space-small);
    text-align: left;
    white-space: nowrap;
    background: var(--nx-secondary-bg);
    margin-right: auto;
    margin-left: auto;
    border-radius: 3px;
}

/* ── Over 100 % — turn negative red ── */
.fx-progressbar--over .fx-progressbar-track {
    background: var(--nx-negative-bg);
}

.fx-progressbar--over .fx-progressbar-fill {
    background: var(--nx-negative-fg);
    width: 100% !important;
}

.fx-progressbar--over .fx-progressbar-label {
    color: var(--nx-negative-fg);
    font-weight: 600;
}

@keyframes fx-progressbar-shimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}
