/*Customized CSS*/

/* Unified rounded accordion block with light transparent background */
#stateSelect, #districtSelect, #areaSelect,
#searchAccordion .accordion-item,
#areaAccordion .accordion-item,
#layerAccordion .accordion-item,
#popup #popup-card .accordion-item,
#legendAccordion .accordion-item {
    background-color: rgba(173, 216, 230, 0.3) !important; /* LightBlue with 30% opacity */
    color: #003366 !important;
    border: 1px solid #4682B4 !important;
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(2px);
}

/* Transparent header and body */
.accordion-button,
.accordion-body {
    background-color: transparent !important;
    color: #003366 !important;
    border: none;
}

    /* Divider line between title and body */
    .accordion-button.collapsed {
        border-bottom: 2px solid #4682B4 !important;
    }

    /* Remove focus shadow */
    .accordion-button:focus {
        box-shadow: none;
    }

    /* Darken the toggle arrow */
    .accordion-button::after {
        filter: brightness(0.3);
    }

/* Layer and legend labels */
.layer-toggle label,
.legend-item {
    color: #003366;
    font-size: 16px;
    margin: 3px;
}

/* Legend color swatches */
.legend-color {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border: 1px solid #003366;
    border-radius: 2px;
}

/* Ensure each legend item is on its own line */
.legend-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin-bottom: 6px;
}
/**/

/* Side Bar collapsed*/
.page {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 250px;
    transition: all 0.3s ease;
}

    .sidebar.collapsed {
        width: 0;
        min-width: 0;
        overflow: hidden;
    }

.main {
    flex-grow: 1;
    transition: all 0.3s ease;
}

.sidebar.collapsed + .main {
    margin-left: 0;
}

.pinpoint-tooltip {
    background: white;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
