.body-section {
    width: 1920px;
    height: 960px;
    display: flex;
    align-items: center;
    margin: auto;
    position: relative;
    overflow: hidden;
}

.bg-image {
    width: 1920px;
    height: 1080px;
    object-fit: cover;
    position: absolute;
    top: -1.5rem;
    left: 0;
    z-index: -1;
}

.global-loader {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, rgba(20, 22, 28, 0.9), rgba(7, 7, 10, 0.95));
    color: #f7f7f8;
    z-index: 9999;
    gap: 12px;
    text-align: center;
    backdrop-filter: blur(4px);
}

.body-box-left-container {
    height: 900px;
    position: relative;
    width: 480px;
    top: .5rem;
    background-repeat: no-repeat;
}

.body-box-right-container {
    display: flex;
    flex-direction: column;
}

.chart-container {
    width: 850px;
    background-repeat: no-repeat;
    height: 600px;
    margin-top: 1rem;
}

.body-box-right-container-inner-bottom {
    width: 1400px;
    height: 350px;
    margin-left: 10px;
    margin-top: -3rem;
    background-repeat: no-repeat;
    object-fit: contain;
    padding: 2rem;
    /* position: relative; */
    /* display: flex; */
    position: absolute;
    align-items: flex-start;
    bottom: 0;
    gap: 1rem;
    right: 10px;
}

/* Dropdown Column Styles */
.dropdown-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 40px;
    gap: 0.5rem;
}

/* Dropdown Header Styles */
.dropdown-header {
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    background-image:
        repeating-linear-gradient(90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px);
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    padding: 0.75rem 1rem;
    text-align: center;
    border-radius: 4px;
}

/* Dropdown Wrapper */
.dropdown-wrapper {
    position: relative;
    width: 90%;
    margin: 0px auto;
    transition: all 0.3s ease;
}
.statement-dropdown-wrapper{
    margin: 0px !important;
    margin-left: 1px !important;
}
.dropdown-wrapper.highlighted {
    animation: highlightGlow 2s ease-in-out infinite;
}

@keyframes highlightGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.6));
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.9));
    }
}

.parameter-popup,
.statement-popup {
    /* Will be controlled by JS */
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 1rem;
    border-radius: 4px;
    z-index: 1000;
}

/* Selected Dropdown Item */
.dropdown-selected {
    background: #d2d5d6;
    border-radius: 0;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.dropdown-selected-content {
    flex: 1;
    background: #ffffff;
    border-radius: 999px;
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.8),
        0 1px 3px rgba(0, 0, 0, 0.2);
}

.dropdown-indicator {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
}

.dropdown-selected-text {
    flex: 1;
    color: #000000;
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.dropdown-chevron {
    flex-shrink: 0;
    width: auto;
    height: 0.7rem;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.dropdown-chevron.open {
    transform: rotate(180deg);
}

/* Dropdown List Container */
.dropdown-list-container {
    display: none;
    /* Hidden by default */
    background: #ffffff;
    border-radius: 0px;
    margin: 0px 20px;
    position: absolute;
    z-index: 10;
    height: 150px;
    overflow: auto;
    width: 90%;
}

/* Dropdown List */
.dropdown-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
    height: 150px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dropdown-list::-webkit-scrollbar {
    display: none;
}

/* Dropdown Item */
.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    position: relative;
    white-space: normal !important;
}

.dropdown-item:hover {
    background-color: #e8e8e8;
}

/* Dropdown Item Text */
.dropdown-item-text {
    color: #999;
    font-size: 16px;
    line-height: 1.5;
}

.chart-placeholder {
    border-radius: 8px;
    padding: 12px;
    height: 100%;
    overflow: auto;
    font-size: 14px;
    line-height: 1.4;
}

.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: #f1f1f1;
    min-height: 200px;
}

.loader-spin {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ff4d4f;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
}

.global-loader-spin {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    position: relative;
    background: conic-gradient(from 180deg, #ff4d4f, #ff9b4d, #ffd24d, #ff4d4f);
    mask: radial-gradient(circle 52% at 50% 50%, transparent 65%, black 66%);
    animation: spin 1s linear infinite, pulse 1.4s ease-in-out infinite;
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.35);
}

.global-loader-spin::after {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0) 60%);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.35);
}

.loader-text {
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #e6e9ef;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(0.98);
    }

    50% {
        transform: scale(1.03);
    }
}

.chart-placeholder.error {
    color: #ffb3b3;
}

.chart-section-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.chart-row {
    margin-bottom: 6px;
}

.bar-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    justify-content: flex-start;
    flex-wrap: wrap;
    position: absolute;
    top: 233px;
    left: 593px;
    width: 710px;
    gap: 3rem;
    padding-left: .5rem;
}

.bar-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 60px;
}

.bar-column.bar-column-3 {
    margin-left: 1rem;
}
.bar-column.bar-column-2 {
    margin-left: 1.3rem;
}
.bar-column.bar-column-1 {
    margin-left: -1.3rem;
}

.bar-row .bar-column:nth-child(3)  {
    margin-left: .7rem;
}



.gap-between-bars {
    width: .5rem;
}

.bar-track {
    width: 50px;
    height: 160px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    background: transparent;
}

.bar-fill {
    width: 70px;
    background: repeating-linear-gradient(to bottom,
            #ff4d4f 0,
            #ff4d4f 12px,
            transparent 12px,
            transparent 22px);
    transition: height 0.2s ease;
}

.bar-value {
    font-weight: 700;
    color: #000000;
}


.bar-label {
    text-align: center;
    color: #f1f1f1;
    font-size: 14px;
    line-height: 1.3;
}

.chart-warnings {
    margin-top: 8px;
    padding: 8px;
    border: 1px dashed rgba(255, 255, 0, 0.5);
    border-radius: 6px;
    color: #ffeaa7;
}

.brand-logo-container {
    width: 505px;
    height: 250px;
    margin-top: 1rem;
}

.info-panel {
    width: 500px;
    height: 210px;
    margin: 4.5rem 0 0 3.25rem;
    background-repeat: no-repeat;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: .5rem;
}

.statement-text {
    /* border: 1px solid rgba(255, 255, 255, 0.08); */
    padding: 12px;
    font-size: 15px;
    word-break: break-word;
    line-height: 1.5;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    /* display: block !important; */
    flex-direction: column;
    position: absolute;
    max-width: 480px;
    top: 345px;
    right: 40px;
    max-height: 200px;
    text-align: center;
    overflow-y: auto;
}

.statement-content {
    max-height: 100%;
    overflow-y: auto;
    text-align: center;
}
.statement-main-text {
    width: 100%;
    text-align: center;
}

.statement-footnote {
    margin-top: 10px;
    font-weight: 700;
    width: 100%;
    text-align: center;
}

/* Flex utility classes */
.flex {
    display: flex;
}

.row {
    flex-direction: row;
}

.column {
    flex-direction: column;
}

.gap-4 {
    gap: 1rem;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.text-light {
    color: #f1f1f1;
}

.cursor-pointer {
    cursor: pointer;
}

/* Add these styles to BodySection.css */

/* Selected dropdown item style */
.dropdown-item.selected {
    background-color: #f0f0f0;
    position: relative;
}

/* Ensure dropdown list appears above other elements */
.dropdown-list-container {
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #ddd;
}

/* Make sure dropdown wrapper has proper z-index */
.dropdown-wrapper {
    position: relative;
    z-index: 1;
}

/* Prevent body scroll when dropdown is open */
body.dropdown-open {
    overflow: hidden;
}



.dropdown-list-sidebar {
    position: relative;
    width: 1px;
    flex-shrink: 0;
    background: #898989;
    margin: 10px 10px;
}


.dropdown-list-scroll-indicator {
    position: absolute;
    left: -6.5px;
    width: 15px;
    height: 20px;
    background: #898989;
    border-radius: 0px;
    transition: top 0.1s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Custom scrollbar track */
.dropdown-list-container::-webkit-scrollbar {
    width: 0;
}

/* Consistent keyboard focus visibility across custom controls */
.switch-box:focus-visible,
.age-slider-container:focus-visible,
.relationship-slider-container:focus-visible,
.additional-filter-slider-container:focus-visible,
.nccs-slider-container:focus-visible,
.zone-roll-img:focus-visible,
.town-roll-img:focus-visible,
.dropdown-selected:focus-visible {
    /* outline: 3px solid rgba(255, 77, 79, 0.95); */
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.25);
    border-radius: 6px;
}