/* Results page css */

/* Global styles */

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

body {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
}

/* 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;
    padding-left: 0;
}

#navBar {
    display: flex;
    gap: 20px;
    font-size: 15px;
    padding: 0;
    background-color: #28282b;
    color: #f0f0f0;
}

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

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

/* Filter controls and visualisation info section */

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

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

label {
    margin-right: 20px;
}

.toggle-group {
    margin-bottom: 10px;
    font-weight: bold;
}

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

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

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

/* Scatterplot */

#scatterplot {
    width: 99%;
    padding-left: 10px;
    height: 630px;
}

.point {
    fill: steelblue;
    opacity: 0.7;
}

.axis-label {
    font-size: 14px;
    font-weight: bold;
}

/* Bar charts */

#barChartsContainer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 10px;
}

.barChartRow {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.barChart {
    width: 49%;
    height: 300px;
    background-color: #1e1e1e;
}

/* Tables */

#rankingControls {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    padding-left: 10px;
}

#rankingTitle {
    font-size: 20px;
}

#toggleRankingBtn {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
}

#tablesContainer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    flex-wrap: wrap;
}

table {
    border-collapse: collapse;
    width: 49%;
    table-layout: fixed;
}

th, td {
    border: 1px solid #ccc;
    padding: 4px 6px;
    text-align: left;
    word-wrap: break-word;
    font-size: 13px;
}

th {
    background-color: #28282b;
    color: #f0f0f0;
}
