/* ChartGauge Component */
.chart-gauge {
    background-color: #f9f9f9;
    border: 1px solid #e2e9f5;
    border-radius: 24px;
    padding: 20px 23px;
    display: flex;
    flex-direction: column;
    gap: 17px;
    width: 100%;
    position: relative;
}

/* Header Section */
.chart-gauge__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.chart-gauge__title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chart-gauge__title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chart-gauge__title-icon {
    width: 20px;
    height: 20px;
    object-fit: cover;
    flex-shrink: 0;
}

.chart-gauge__title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: normal;
    color: var(--color-blu);
    margin: 0;
}

.chart-gauge__suffix {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: normal;
    color: var(--color-blu);
}

.chart-gauge__subtitle {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 18px;
    color: var(--color-blu);
    margin: 0;
}

/* Badge Section */
.chart-gauge__badge {
    display: flex;
    align-items: center;
    gap: 4px;
}

.chart-gauge__badge-label {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: normal;
    color: var(--color-blu);
    text-align: right;
    white-space: nowrap;
}

.chart-gauge__badge-info {
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chart-gauge__badge-info:hover {
    opacity: 0.7;
}

.chart-gauge__info-icon {
    width: 18px;
    height: 18px;
    display: block;
}

/* Content Section */
.chart-gauge__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

/* Gauge Circle */
.chart-gauge__gauge {
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-gauge__gauge-circle {
    position: relative;
    width: 128px;
    height: 128px;
}

.chart-gauge__gauge-glow {
    position: absolute;
    inset: -60px;
    pointer-events: none;
}

.chart-gauge__gauge-svg {
    width: 100%;
    height: 100%;
}

.chart-gauge__gauge-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-gauge__gauge-value {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 40px;
    line-height: 1;
    color: #062b6b;
    text-align: center;
}

/* Progress Bar Container */
.chart-gauge__bar-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 323px;
}

.chart-gauge__bar {
    position: relative;
    height: 6px;
    width: 100%;
    border-radius: 100px;
    overflow: visible;
}

.chart-gauge__bar-gradient {
    position: absolute;
    inset: 0;
    border-radius: 100px;
    /* Background is set dynamically via inline style */
}

.chart-gauge__bar-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 14px;
    background-color: #152540;
    border: 1px solid #152540;
    border-radius: 100px;
}

/* Bar Labels */
.chart-gauge__bar-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 4px;
}

.chart-gauge__bar-label {
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    font-size: 10px;
    line-height: normal;
    color: #838e9f;
    text-align: center;
}

.chart-gauge__bar-label--low {
    text-align: left;
}

.chart-gauge__bar-label--medium {
    text-align: center;
}

.chart-gauge__bar-label--high {
    text-align: right;
}

/* No Data State */
.chart-gauge__gauge,
.chart-gauge__bar-container {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.chart-gauge.is-no-data .chart-gauge__gauge,
.chart-gauge.is-no-data .chart-gauge__bar-container {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.chart-gauge__no-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 200px;
    width: 100%;
    animation: chart-gauge-no-data-appear 0.4s ease-out forwards;
}

.chart-gauge__no-data-icon {
    color: #9CA3AF;
    opacity: 0;
    transform: scale(0.8);
    animation: chart-gauge-no-data-icon-appear 0.4s ease-out 0.1s forwards;
}

.chart-gauge__no-data-text {
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #6B7280;
    margin: 0;
    opacity: 0;
    transform: translateY(8px);
    animation: chart-gauge-no-data-text-appear 0.4s ease-out 0.2s forwards;
}

@keyframes chart-gauge-no-data-appear {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes chart-gauge-no-data-icon-appear {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes chart-gauge-no-data-text-appear {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
