.chart-card {
    max-width: 850px;
    width:100%;
    margin: auto;
    background: white;
    border: 1px solid #E9ECEF;
    border-radius: 12px;
    box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.05);
    padding: 24px;
}

.chart-title {
    font-size: 18px;
    color: #212529;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}


select {
    padding: 8px;
    border: 1px solid #CED4DA;
    border-radius: 4px;
}

#chartdiv {
    width: 100%;
    height: 400px;
    position: relative;
    margin-left: -20px !important;
    margin-bottom: -10px;
    margin-top: 15px;
}

.legend {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 600;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.note {
    display: flex;
    align-items: center; /* This ensures vertical centering */
    gap: 10px;
    padding: 12px 16px;
    background: #F7F8F9;
    border-radius: 12px;
    border: 1px solid #E9ECEF;
    font-size: 14px;
    color: #495057;
    text-align: left !important;
    margin-top: 20px;
}

.note-icon {
    flex-shrink: 0;
    margin-top: 20px;

}

.note-text {
    line-height: 22px;
}

    .note-text strong {
        font-weight: 600;
        color: #212529;
    }

.dropdowns {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    width: 100%;
}

    .dropdowns select {
        flex: 1;
        padding: 10px 14px;
        border: 1px solid #D0D5DD;
        border-radius: 4px;
        background: white;
        font-size: 16px;
        font-weight: 500;
        color: #344054;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25' height='24' viewBox='0 0 25 24' fill='none'%3E%3Cg clip-path='url(%23clip0)'%3E%3Cpath d='M8.07699 8.5918L12.667 13.1718L17.257 8.5918L18.667 10.0018L12.667 16.0018L6.66699 10.0018L8.07699 8.5918Z' fill='%23495057'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0'%3E%3Crect width='24' height='24' fill='white' transform='translate(0.666992 0.00183105)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 14px center;
        background-size: 16px 16px;
    }
    .dropdowns select {
        padding-right: 36px; /* leave space for the arrow */
    }


/*    next is the year range swiper*/

            .year-slider-wrapper {
                margin: 16px 0 24px;
                width: 100%;
                text-align: center;
            }

            .year-range-label {
                font-size: 14px;
                font-weight: 600;
                margin-bottom: 8px;
                color: #212529;
            }

            /* noUiSlider styles */
            #year-range-slider {
                height: 8px;
                background: #F2F4F7;
                border-radius: 24px;
                position: relative;
            }

.noUi-connect {
    background: #63CAD6 !important;
}

            .noUi-horizontal .noUi-handle {
                width: 28px !important;
                height: 20px;
                top: -6px;
                border-radius: 50%;
                background: #0C5E79;
                border: none;
                box-shadow: 0 0 0 2px white, 0 2px 6px rgba(0, 0, 0, 0.15);
                cursor: pointer;
            }

.noUi-handle::before {
    display: none;
    left: 11px !important;
    top: 7px !important
}
.noUi-handle::after {
    left: 15px !important;
    top: 7px !important
}
.noUi-base {
    background: #F5F5F5 !important;
    border-radius: 50% !important;
}
.noUi-target {
    background: #F5F5F5;
    border-radius: 10px !important;
    border: 1px solid #D3D3D3;
    box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB;
    border: none;
}
.slider-container {
    border: 1px solid #CED4DA;
    border-radius: 8px;
    padding-right: 29px !important;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 30px;
    background: none;
    width: 100%;
    box-sizing: border-box;
}

.year-label {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    white-space: nowrap;
    flex-shrink: 0;
}

.slider {
    flex-grow: 1;
}

/* end of slider*/

.scenario-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
}

.scenario-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 2px 2px 8px;
    border: 1px solid #DEE2E6;
    border-radius: 8px;
    background: white;
    font-weight: 600;
    font-size: 16px;
    color: #101828;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .scenario-btn:hover {
        background: #F9FAFB;
    }

    .scenario-btn .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
    }

    .scenario-btn .arrow {
        margin-left: auto;
        font-size: 16px;
        color: #667085;
        margin-top: 6px;
    }

    @media (max-width: 768px) {
    .dropdowns {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 12px;
    }

    .dropdowns select {
        width: 100%;
    }
      #chartdiv {
        height: 360px; 
    }

    .slider-container {
           align-items: flex-start;
        gap: 20px;
    }

    .year-label {
        margin-bottom: 4px;
    }

    .slider {
        width: 100%;
    }
   

    .note-icon-container {
        margin-top: 0 !important;
    }
      .scenario-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: flex-start;
    }

    .scenario-btn {
        /* flex: 1 1 calc(50% - 12px); */
        box-sizing: border-box;
        justify-content: flex-start;
        padding:1px 8px
    }
    .chart-card {
        padding:16px !important;
    }
}
