/* Statistics Page - Minimal Professional Design */

/* Hero Section */
.stats-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 48px 0 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stats-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.stats-hero-content {
    position: relative;
    z-index: 1;
}

.stats-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 16px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.stats-hero h1 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.stats-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin: 0;
}

/* Key Metrics Section */
.stats-metrics {
    margin-top: 32px;
    padding-top: 0;
    padding-bottom: 60px;
    position: relative;
    z-index: 2;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 50, 160, 0.12);
    border-color: rgba(0, 50, 160, 0.1);
}

.metric-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.375rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 50, 160, 0.25);
}

.metric-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 6px;
}

.metric-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.metric-source {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

/* Section Styles */
.stats-section {
    padding: 80px 0;
}

.stats-section:nth-child(even) {
    background: var(--color-bg-alt);
}

.section-header-minimal {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 50, 160, 0.08);
    color: var(--color-primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-header-minimal h2 {
    font-size: 1.75rem;
    color: var(--color-text);
    margin-bottom: 8px;
}

.section-header-minimal p {
    color: var(--color-text-light);
    font-size: 1rem;
    margin: 0;
}

/* Finance Section */
.finance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.finance-card {
    background: white;
    border-radius: 12px;
    padding: 20px 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}

.finance-card:hover {
    border-color: rgba(0, 50, 160, 0.15);
    box-shadow: 0 6px 20px rgba(0, 50, 160, 0.08);
    transform: translateY(-2px);
}

.finance-card-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 50, 160, 0.3);
}

.finance-card-primary:hover {
    box-shadow: 0 8px 24px rgba(0, 50, 160, 0.35);
    transform: translateY(-2px);
}

.finance-card-primary .finance-card-header,
.finance-card-primary .finance-card-value,
.finance-card-primary .finance-card-detail {
    color: white;
}

.finance-card-primary .finance-card-header {
    color: rgba(255, 255, 255, 0.85);
}

.finance-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.finance-card-header i {
    font-size: 1rem;
    opacity: 0.9;
}

.finance-card-value {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.finance-card-detail {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

/* Income Breakdown */
.income-breakdown {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.income-breakdown h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 16px;
}

.breakdown-bar {
    display: flex;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-bg-alt);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.breakdown-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.breakdown-ira {
    background: linear-gradient(90deg, var(--color-info) 0%, #0099cc 100%);
}

.breakdown-local {
    background: linear-gradient(90deg, var(--color-success) 0%, #05c793 100%);
}

.breakdown-label {
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.breakdown-legend {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 14px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--color-text);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-ira {
    background: var(--color-info);
}

.legend-local {
    background: var(--color-success);
}

/* Initial state for animated breakdown bars */
.breakdown-initial {
    width: 0;
}

/* Trends Section */
.trends-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.trend-stat {
    background: white;
    border-radius: 10px;
    padding: 16px 28px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}

.trend-stat:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.trend-stat-current {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border: none;
    box-shadow: 0 4px 16px rgba(0, 50, 160, 0.25);
}

.trend-stat-current:hover {
    box-shadow: 0 6px 20px rgba(0, 50, 160, 0.3);
}

.trend-stat-current .trend-stat-label,
.trend-stat-current .trend-stat-value {
    color: white;
}

.trend-stat-current .trend-stat-label {
    color: rgba(255, 255, 255, 0.85);
}

.trend-stat-growth {
    background: rgba(6, 167, 125, 0.08);
    border-color: rgba(6, 167, 125, 0.2);
}

.trend-stat-growth .trend-stat-value {
    color: var(--color-success);
}

.trend-stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-light);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.trend-stat-value {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-text);
}

.trend-arrow {
    color: var(--color-text-light);
    font-size: 1.125rem;
    opacity: 0.6;
}

/* Chart Wrapper */
.chart-wrapper {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    height: 380px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.chart-wrapper-bar {
    height: 420px;
}

/* Distribution Section */
.distribution-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.distribution-chart {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    height: 380px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.distribution-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.barangay-row {
    display: grid;
    grid-template-columns: 36px 110px 1fr 65px;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.barangay-row:hover {
    border-color: rgba(0, 50, 160, 0.15);
    box-shadow: 0 2px 8px rgba(0, 50, 160, 0.06);
    background: rgba(0, 50, 160, 0.01);
}

.barangay-row[data-rank="1"] {
    border-left: 3px solid #FFD700;
    background: rgba(255, 215, 0, 0.03);
}

.barangay-row[data-rank="2"] {
    border-left: 3px solid #C0C0C0;
    background: rgba(192, 192, 192, 0.03);
}

.barangay-row[data-rank="3"] {
    border-left: 3px solid #CD7F32;
    background: rgba(205, 127, 50, 0.03);
}

.barangay-row .rank {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--color-text-light);
}

.barangay-row .name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text);
}

.bar-wrap {
    height: 6px;
    background: var(--color-bg-alt);
    border-radius: 3px;
    overflow: hidden;
}

.bar-wrap .bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-info) 100%);
    border-radius: 3px;
    width: 0;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.barangay-row .pop {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
    text-align: right;
}

.more-barangays {
    margin-top: 20px;
}

.more-barangays summary {
    cursor: pointer;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.more-barangays summary:hover {
    background: rgba(0, 50, 160, 0.04);
}

.distribution-list-full {
    margin-top: 12px;
}

/* Economy Section */
.economy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.economy-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: all 0.25s ease;
}

.economy-card:hover {
    border-color: rgba(0, 50, 160, 0.12);
    box-shadow: 0 6px 20px rgba(0, 50, 160, 0.08);
    transform: translateY(-2px);
}

.economy-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 50, 160, 0.2);
}

.economy-value {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.economy-label {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.economy-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-success);
    background: rgba(6, 167, 125, 0.1);
    padding: 4px 10px;
    border-radius: 50px;
}

/* Sectors Chart */
.sectors-chart {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.sectors-chart h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 18px;
}

.sector-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sector-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sector-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sector-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text);
}

.sector-pct {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-primary);
}

.sector-bar-bg {
    height: 8px;
    background: var(--color-bg-alt);
    border-radius: 4px;
    overflow: hidden;
}

.sector-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-info) 100%);
    border-radius: 4px;
    width: 0;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Poverty Section */
.poverty-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.poverty-card {
    background: white;
    border-radius: 14px;
    padding: 28px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
    min-width: 180px;
    position: relative;
    transition: all 0.25s ease;
}

.poverty-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.poverty-card-2021 {
    border-color: rgba(6, 167, 125, 0.25);
    box-shadow: 0 4px 20px rgba(6, 167, 125, 0.12);
}

.poverty-card-2021:hover {
    box-shadow: 0 8px 28px rgba(6, 167, 125, 0.18);
}

.poverty-year {
    display: inline-block;
    background: var(--color-bg-alt);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 14px;
}

.poverty-card-2021 .poverty-year {
    background: rgba(6, 167, 125, 0.1);
    color: var(--color-success);
}

.poverty-rate {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 14px;
}

.rate-value {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
}

.poverty-card-2021 .rate-value {
    color: var(--color-success);
}

.rate-symbol {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--color-text-light);
}

.poverty-bar {
    height: 6px;
    background: var(--color-bg-alt);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.poverty-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 3px;
    width: 0;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.poverty-card-2021 .poverty-fill {
    background: var(--color-success);
}

.poverty-ci {
    font-size: 0.6875rem;
    color: var(--color-text-light);
}

.poverty-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--color-success);
    color: white;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.6875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(6, 167, 125, 0.3);
}

.poverty-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--color-text-light);
}

.poverty-change {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-success);
}

/* Data Source */
.data-source {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--color-text-light);
    margin-top: 24px;
}

.data-source i {
    margin-right: 4px;
}

.data-source a {
    color: var(--color-primary);
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 991px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .finance-grid,
    .economy-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .distribution-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .distribution-chart {
        height: 320px;
    }

    .trends-summary {
        gap: 12px;
    }

    .trend-stat {
        padding: 14px 20px;
    }

    .poverty-comparison {
        gap: 16px;
    }

    .cmci-overview-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .cmci-indicator-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 575px) {
    .stats-hero {
        padding: 32px 0 40px;
    }

    .stats-hero h1 {
        font-size: 1.375rem;
    }

    .stats-metrics {
        margin-top: -30px;
    }

    .metrics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .metric-card {
        padding: 16px 14px;
    }

    .metric-icon {
        width: 44px;
        height: 44px;
        font-size: 1.125rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .metric-label {
        font-size: 0.8125rem;
    }

    .stats-section {
        padding: 48px 0;
    }

    .section-header-minimal h2 {
        font-size: 1.375rem;
    }

    .chart-wrapper {
        height: 280px;
        padding: 14px;
    }

    .chart-wrapper-bar {
        height: 480px;
    }

    .barangay-row {
        grid-template-columns: 30px 85px 1fr 55px;
        gap: 6px;
        padding: 8px 10px;
    }

    .barangay-row .name {
        font-size: 0.75rem;
    }

    .barangay-row .pop {
        font-size: 0.75rem;
    }

    .poverty-card {
        padding: 20px;
        min-width: 150px;
    }

    .rate-value {
        font-size: 2.25rem;
    }

    .trend-stat {
        padding: 10px 16px;
    }

    .trend-stat-value {
        font-size: 1.125rem;
    }

    .cmci-tabs {
        flex-direction: column;
        gap: 6px;
    }

    .cmci-tab {
        justify-content: center;
        padding: 10px 14px;
    }

    .cmci-overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .cmci-indicator-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .cmci-indicator-card {
        padding: 12px;
    }

    .indicator-value {
        font-size: 1rem;
    }

    .pillar-score {
        font-size: 1.125rem;
    }
}

/* Chart.js Customizations */
.chart-wrapper canvas {
    max-height: 100%;
}

/* Loading State */
.chart-loading {
    position: relative;
}

.chart-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid var(--color-bg-alt);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Smooth number counting animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counting {
    animation: countUp 0.3s ease-out;
}


/* ============================================
   COMPETITIVE INDEX (CMCI) SECTION
   ============================================ */

.stats-competitive {
    background: var(--color-bg-alt);
}

/* CMCI Tabs */
.cmci-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 28px;
}

.cmci-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.cmci-tab:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(0, 50, 160, 0.02);
}

.cmci-tab.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    box-shadow: 0 3px 10px rgba(0, 50, 160, 0.25);
}

.cmci-tab i {
    font-size: 0.9375rem;
}

/* CMCI Panels */
.cmci-panel {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.cmci-panel.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Overview Grid */
.cmci-overview-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.cmci-pillar-card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
    cursor: pointer;
}

.cmci-pillar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 50, 160, 0.1);
    border-color: rgba(0, 50, 160, 0.15);
}

.pillar-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    box-shadow: 0 3px 10px rgba(0, 50, 160, 0.2);
}

.pillar-icon i {
    font-size: 1.125rem;
    color: white;
}

.cmci-pillar-card h4 {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.pillar-score {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.pillar-trend {
    font-size: 0.625rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 20px;
}

.pillar-trend.trend-up {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.pillar-trend.trend-down {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.pillar-trend.trend-stable {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

/* Indicator Grid */
.cmci-indicator-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.cmci-indicator-card {
    background: white;
    border-radius: 10px;
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.cmci-indicator-card:hover {
    box-shadow: 0 4px 16px rgba(0, 50, 160, 0.08);
    border-color: rgba(0, 50, 160, 0.1);
}

.indicator-header {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.indicator-header i {
    color: var(--color-primary);
    font-size: 0.8125rem;
}

.indicator-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.indicator-bar {
    height: 5px;
    background: rgba(0, 50, 160, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.indicator-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 3px;
    width: 0;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.indicator-fill.animated {
    width: var(--fill-width, 0%);
}

/* Chart Container */
.cmci-chart-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.cmci-chart-container h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cmci-chart-container h4 i {
    color: var(--color-primary);
}

/* Responsive */
@media (max-width: 1200px) {
    .cmci-overview-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cmci-indicator-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cmci-tabs {
        flex-direction: column;
    }

    .cmci-tab {
        justify-content: center;
    }

    .cmci-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cmci-indicator-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pillar-score {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .cmci-overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .cmci-indicator-grid {
        grid-template-columns: 1fr;
    }

    .cmci-pillar-card {
        padding: 14px;
    }

    .pillar-icon {
        width: 38px;
        height: 38px;
    }

    .pillar-icon i {
        font-size: 1rem;
    }
}


/* Chart Container Classes */
.chart-container-full {
    height: 340px;
    width: 100%;
}

.chart-container-medium {
    height: 220px;
    width: 100%;
}

.chart-container-bar {
    height: 360px;
    width: 100%;
}

.chart-container-doughnut {
    height: 160px;
    width: 100%;
    position: relative;
}

.chart-center-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.chart-center-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0032a0;
}

.chart-center-text {
    font-size: 0.6875rem;
    color: #6c757d;
}

@media (max-width: 575px) {
    .chart-container-full {
        height: 280px;
    }

    .chart-container-bar {
        height: 300px;
    }

    .chart-container-medium {
        height: 180px;
    }

    .chart-center-value {
        font-size: 1rem;
    }
}