/* Index page css */

/* Global styles */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #28282b;
    color: #f0f0f0;
}

/* Header and navigation */

#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 20px 10px 10px;
    background-color: #28282b;
    color: #f0f0f0;
}

#header h1 {
    margin: 0;
    font-size: 20px;
}

#navBar {
    display: flex;
    gap: 20px;
    font-size: 15px;
    background: none;
    padding: 0;
}

.navLink {
    text-decoration: none;
    color: #f0f0f0;
    font-weight: bold;
    padding: 4px 8px;
}

.navLink.active {
    color: #ffffff;
    background-color: #0077cc;
    border-radius: 4px;
}

/* Filter controls and visualisation info section */

button, #citySelect, #healthCategorySelect {
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

#controls {
    display: flex;
    align-items: center;
    padding-left: 10px;
    padding-top: 8px;
    padding-bottom: 8px;
    background: #f0f0f0;
    background-color: #28282b;
    color: #f0f0f0;
}

#clearLsoaSelection {
    font-weight: bold;
}

#toggleVisualisationInfo {
    margin-left: auto;
}

#toggleParkInfo {
    margin-left: 20px;
}

#toggleVisualisationInfo,
#toggleParkInfo {
    margin-right: 20px;
    font-weight: bold;
    cursor: pointer;
}

#loadingDataText {
    margin-left: 10px;
}

#toggleVisualisationInfo.active {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
    border-radius: 4px;
}

#visualisationInfo {
    display: none;
    padding-left: 10px;
}

/* Map */
#map {
    width: 100%;
    height: 60vh;
    position: relative;
}

#legend {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #1f1f1f;
    padding: 10px;
    border: 1px solid #ccc;
    z-index: 1000;
    font-size: 12px;
    border-radius: 5px;
    color: white;
    width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#colourGradientBar {
    height: 16px;
    width: 260px;
    background: linear-gradient(to right, red, yellow, blue);
    border: 1px solid #888;
    border-radius: 3px;
    margin-bottom: 10px;
    align-self: flex-end;
}

.labelRow {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 6px;
}

.rowLabel {
    width: 70px;
    text-align: left;
    flex-shrink: 0;
    padding-right: 25px;
}

.valueLabels {
    flex: 1;
    display: flex;
    justify-content: space-between;
    padding: 0 0.5rem;
}

/* Park marker labels */

.parkNumberLabel {
    pointer-events: none;
}

.numberLabelBox {
    background: white;
    color: black;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 4px 8px;
    min-width: 20px;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.labelArrow {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    margin-left: -5px;
    width: 0;
    height: 0;
    border-top: 6px solid #333;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}

/* Information panels */

#colourInformation {
    margin-left: 10px;
}

#lsoaInfo, #parkInfo {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px;
    border-top: 1px solid #ccc;
    background-color: #28282b;
    color: #f0f0f0;
}

#parkInfo {
    display: none;
}

.infoBlock {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.infoBlock h3 {
    margin-top: 0;
}

.progressBarContainer {
    position: relative;
    background: #3a3a3a;
    height: 10px;
    width: 100%;
    margin-bottom: 4px;
    border-radius: 4px;
    overflow: hidden;
}

.progressBarFill {
    position: absolute;
    top: 0;
    bottom: 0;
    background: green;
}

.selectedParkBlock {
    background-color: #2e8b57 !important;
    color: white !important;
    padding: 10px;
    border: none !important;
}
.selectedParkMarker .numberLabelBox {
    background-color: green !important;
    color: white !important;
}



