#pageTitle {
font-size: 24px;
font-weight: bold;
text-align: center;
margin-bottom: 5px;
text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000;
}

#leftPanel h3 {
margin-bottom: 8px;
margin-top: 5px;
text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000;
}

#topControlsContainer {
display: flex;
gap: 10px;
align-items: center;
}

#topControlsContainer .data-version-selector-container {
flex-grow: 1;
}

#resetButton {
padding: 8px 15px;
background-color: #4CAF50;
color: white;
border: none;
cursor: pointer;
border-radius: 8px;
transition: background-color 0.3s ease;
font-weight: bold;
white-space: nowrap;
}

#resetButton:hover {
background-color: #367c39;
}

#filterPanel {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px 20px;
background-color: #1c1c1c;
border: 1px solid #444;
border-radius: 8px;
padding: 15px;
}

.filter-item label {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000;
}

.filter-item label img {
    position: static !important;
    margin-right: 8px !important;
    left: auto !important;
}

.filter-item p {
    margin: 3px 0 0 0;
}

.filter-value-display {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 11px;
}

.filter-value-display span {
    text-shadow: 0.5px 0.5px 0 #000, -0.5px 0.5px 0 #000, 0.5px -0.5px 0 #000, -0.5px -0.5px 0 #000;
}

.range-slider-container {
    position: relative;
    width: 100%;
    height: 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.range-track,
.range-fill {
    position: absolute;
    left: 0;
    height: 6px;
    border-radius: 3px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.range-track {
    background-color: #444;
    width: 100%;
    z-index: 1;
}

.range-fill {
    background-color: #63a365;
    z-index: 2;
}

#filterPanel input[type="range"] {
-webkit-appearance: none;
appearance: none;
background: transparent;
cursor: pointer;
width: 100%;
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
margin: 0;
pointer-events: none;
z-index: 3;
}

#filterPanel input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 16px;
height: 16px;
border-radius: 50%;
background-color: #4CAF50;
cursor: pointer;
margin-top: -5px;
pointer-events: auto;
position: relative;
z-index: 4;
}

#filterPanel input[type="range"]::-moz-range-thumb {
width: 16px;
height: 16px;
border-radius: 50%;
background-color: #4CAF50;
cursor: pointer;
border: none;
pointer-events: auto;
position: relative;
z-index: 4;
}

#searchInput {
padding: 8px;
border-radius: 8px;
border: 1px solid #444;
background-color: #1c1c1c;
color: white;
width: 100%;
box-sizing: border-box;
display: block;
}

.data-version-selector-container,
.color-mode-selector-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.data-version-selector-container label,
.color-mode-selector-container label {
    font-size: 14px;
    text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000;
    white-space: nowrap;
    margin-bottom: 0;
}

#dataVersionSelector,
#dataVersionSelectorMobile,
#colorModeSelector,
#colorModeSelectorMobile {
padding: 8px;
border-radius: 8px;
border: 1px solid #444;
background-color: #1c1c1c;
color: white;
flex-grow: 1;
min-width: 100px;
cursor: pointer;
}

#colorLegend {
background-color: #1c1c1c;
border: 1px solid #444;
border-radius: 8px;
padding: 10px 15px;
font-size: 13px;
}

#colorLegend .legend-title {
font-weight: bold;
margin-bottom: 6px;
flex-basis: 100%;
}

.legend-section .legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.legend-section.horizontal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 15px;
    justify-content: flex-start;
    align-items: center;
}

.legend-section.horizontal-legend .legend-item {
    margin-bottom: 0;
}

.legend-section .legend-item:last-child {
    margin-bottom: 0;
}

.legend-swatch {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    margin-right: 8px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.legend-gradient-bar {
    width: 100%;
    height: 15px;
    border-radius: 3px;
    margin-bottom: 3px;
}

.legend-gradient-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #aaa;
}

.legend-trend .legend-circle {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
    background-color: #333;
    border: 3px solid #ccc;
    box-sizing: border-box;
}
.legend-trend .fill-growth { background-color: #2e7d32; }
.legend-trend .fill-decline { background-color: #c62828; }
.legend-trend .stroke-growth { border-color: #66bb6a; }
.legend-trend .stroke-decline { border-color: #ef5350; }
