/* Investment Statistics Section Styles */
.investment-statistics-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.statistics-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a5a96;
    text-align: center;
    margin: 0 0 3rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.statistics-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    max-width: 1600px;
    margin: 0 auto;
}

.section-title-wrapper {
    padding: 2rem 2rem 1.5rem 2rem;
}

.chart-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a5a96;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chart-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 2rem 1.5rem 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.chart-filters {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
    margin: 0;
}

.filter-group .form-select {
    min-width: 120px;
    padding: 0.4rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #333;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-group .form-select:hover {
    border-color: #1a5a96;
}

.filter-group .form-select:focus {
    outline: none;
    border-color: #1a5a96;
    box-shadow: 0 0 0 2px rgba(26, 90, 150, 0.1);
}

.chart-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #f8f9fa;
}

.chart-subtitle {
    font-size: 0.95rem;
    color: #333;
    margin: 0;
    font-weight: 600;
}

.chart-legend {
    display: flex;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    background: linear-gradient(to top, #0A4E8A 0%, #1a5a96 100%);
    border-radius: 2px;
}

.legend-text {
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
}

.chart-label {
    padding: 1.5rem 2rem;
    text-align: center;
    background: #ffffff;
}

.chart-label-text {
    font-size: 1rem;
    font-weight: 600;
    color: #1a5a96;
    margin: 0;
}

.chart-container {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    padding: 3rem 2rem 2rem 5rem;
    min-height: 400px;
    display: flex;
    margin: 0 2rem 2rem 2rem;
}

.y-axis {
    position: absolute;
    left: 0;
    top: 3rem;
    bottom: 4rem;
    width: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding-right: 0.5rem;
}

.y-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.chart-bars {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    flex: 1;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-left: 2px solid #e0e0e0;
    border-bottom: 2px solid #e0e0e0;
    min-height: 350px;
}

.bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.bar-value-top {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1a5a96;
    text-align: center;
    margin-bottom: 0.5rem;
    min-height: 1.2rem;
}

.bar-wrapper {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.bar {
    width: 80%;
    max-width: 80px;
    background: linear-gradient(to top, #0A4E8A 0%, #1a5a96 100%);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.3s ease;
    min-height: 15px;
    cursor: pointer;
}

.bar:hover {
    background: linear-gradient(to top, #083d6e 0%, #14497a 100%);
    transform: scaleX(1.05);
    box-shadow: 0 4px 8px rgba(10, 78, 138, 0.3);
}

.bar-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.bar-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
}

.bar:hover .bar-tooltip {
    opacity: 1;
    visibility: visible;
}

.bar-label {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.statistics-summary {
    background: transparent;
    border-radius: 0;
    padding: 1.5rem 2rem;
    border-left: none;
    margin: 0 2rem 2rem 2rem;
}

.statistics-summary h4 {
    font-size: 1rem;
    color: #1a5a96;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #666;
}

.summary-list li i {
    color: #1a5a96;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .chart-bars {
        gap: 1rem;
    }
    
    .bar {
        max-width: 60px;
    }
}

@media (max-width: 991px) {
    .investment-statistics-section {
        padding: 2.5rem 0;
    }
    
    .statistics-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .section-title-wrapper {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }
    
    .chart-section-title {
        font-size: 1.1rem;
    }
    
    .chart-header {
        padding: 0 1.5rem 1rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .investment-statistics-section {
        padding: 2rem 0;
    }
    
    .statistics-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .statistics-card {
        padding: 0;
        border-radius: 4px;
    }
    
    .section-title-wrapper {
        padding: 1.25rem 1rem 1rem 1rem;
    }
    
    .chart-section-title {
        font-size: 1.05rem;
    }
    
    .chart-header {
        padding: 0 1rem 1rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .chart-filters {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .filter-group {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
    
    .filter-group label {
        font-size: 0.85rem;
        font-weight: 600;
        color: #1a5a96;
    }
    
    .filter-group .form-select {
        width: 100%;
        min-width: 100%;
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
        border: 2px solid #ddd;
        border-radius: 4px;
    }
    
    .filter-group .form-select:focus {
        border-color: #1a5a96;
        box-shadow: 0 0 0 3px rgba(26, 90, 150, 0.1);
    }
    
    .chart-title-row {
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .chart-subtitle {
        font-size: 0.85rem;
    }
    
    .chart-container {
        padding: 1.5rem 0.5rem 1.5rem 2.5rem;
        min-height: 300px;
        margin: 0 0.5rem 1rem 0.5rem;
        overflow-x: auto;
        overflow-y: visible;
    }
    
    .y-axis {
        width: 2rem;
        top: 1.5rem;
        bottom: 3rem;
        left: 0.5rem;
    }
    
    .y-label {
        font-size: 0.7rem;
    }
    
    .chart-bars {
        min-height: 250px;
        min-width: 500px;
        gap: 0.5rem;
        padding-bottom: 2.5rem;
    }
    
    .bar-wrapper {
        height: 200px;
    }
    
    .bar {
        max-width: 40px;
    }
    
    .bar-item {
        min-width: 50px;
    }
    
    .bar-value-top {
        font-size: 0.7rem;
    }
    
    .bar-label {
        font-size: 0.75rem;
    }
    
    .statistics-summary {
        padding: 1.25rem 1rem;
    }
    
    .summary-list {
        gap: 0.75rem;
    }
    
    .summary-list li {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .statistics-title {
        font-size: 1.15rem;
        padding: 0 0.75rem;
    }
    
    .section-title-wrapper {
        padding: 1rem 0.75rem 0.75rem 0.75rem;
    }
    
    .chart-section-title {
        font-size: 0.95rem;
    }
    
    .chart-header {
        padding: 0 0.75rem 0.75rem 0.75rem;
    }
    
    .filter-group label {
        font-size: 0.8rem;
    }
    
    .filter-group .form-select {
        padding: 0.55rem 0.7rem;
        font-size: 0.85rem;
    }
    
    .chart-container {
        padding: 1.25rem 0.25rem 1.25rem 2rem;
        margin: 0 0.25rem 1rem 0.25rem;
        overflow-x: auto;
        overflow-y: visible;
    }
    
    .y-axis {
        width: 1.75rem;
        left: 0.25rem;
    }
    
    .y-label {
        font-size: 0.65rem;
    }
    
    .chart-bars {
        gap: 0.3rem;
        min-height: 220px;
        min-width: 450px;
        padding-bottom: 2.5rem;
    }
    
    .bar-wrapper {
        height: 180px;
    }
    
    .bar {
        max-width: 30px;
    }
    
    .bar-item {
        min-width: 45px;
    }
    
    .bar-value-top {
        font-size: 0.6rem;
    }
    
    .bar-label {
        font-size: 0.7rem;
    }
    
    .statistics-summary {
        padding: 1rem 0.75rem;
    }
    
    .summary-list li {
        font-size: 0.85rem;
    }
}
