/**
 * BricksDash — Progress Bar Creator
 * Styles for linear, donut, and half-circle progress bars.
 */

/* ── Base Container ─────────────────────────────────────────── */
.bd-progress-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

/* ── Labels ─────────────────────────────────────────────────── */
.bd-progress-bar__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
    text-align: center;
}

.bd-progress-bar__label--above {
    order: -1;
    align-self: center;
}

.bd-progress-bar__label--below {
    order: 10;
    align-self: center;
}

/* Label drawn inline inside the linear bar */
.bd-progress-bar__label--center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    font-size: 0.7rem;
    color: #fff;
    pointer-events: none;
}

/* ── Linear Bar ─────────────────────────────────────────────── */
.bd-progress-bar--linear .bd-progress-bar__track {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #e0e0e0;
}

.bd-progress-bar--linear .bd-progress-bar__fill {
    height: 100%;
    width: 0;
    transition: width 0.8s ease;
    background: #4CAF50;
}

/* ── Circle Wrapper ─────────────────────────────────────────── */
.bd-progress-bar__circle-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bd-progress-bar__svg {
    display: block;
    overflow: visible;
}

/* SVG center text label */
.bd-progress-bar__svg-label {
    font-size: 14px;
    font-weight: 600;
    fill: #333;
    font-family: inherit;
}

/* ── Donut specific ─────────────────────────────────────────── */
.bd-progress-bar__circle-wrap {
    position: relative;
    margin: 0 auto;
}

.bd-progress-bar__label-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}
.bd-progress-bar--half_circle .bd-progress-bar__label-overlay {
    justify-content: flex-end;
}

/* ── Stacked Labels ─────────────────────────────────────────── */

.bd-progress-bar__label--stacked {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1;
}

.bd-progress-bar__label-value {
    font-size: 24px;
    font-weight: 700;
}

.bd-progress-bar__label-suffix {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.7;
}

/* SVG stacked text */
.bd-progress-bar__svg-label-value {
    font-size: 18px;
    font-weight: 700;
    fill: #333;
    font-family: inherit;
}

.bd-progress-bar__svg-label-suffix {
    font-size: 11px;
    font-weight: 500;
    fill: #333;
    font-family: inherit;
}
