body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
}

h1 {
    background: rgb(4, 68, 142);
    padding: 8px 12px;
    font-size: 30px;
    border-radius: 0px;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    z-index: 1000;
    text-align: center; /* Adjust alignment as needed */
    margin-top: 0px;
    margin-left: 0px; /* Adjust this value to move slightly to the left */
    color: #ffffff;
}

#map {
    height: 88.5vh;
    width: 83%;
    margin-top: 20px;
    padding: 0;
    border: 1.5px solid #000000;
    border-radius: 5px;
}

/* Flexbox layout for the container to align map and sidebar */
#container {
    display: flex;
    justify-content: space-between; /* Space between map and sidebar */
    align-items: flex-start;
    padding: 0px;
    margin-left: 10px;
    gap: 0.5vw; /* Add space between the map and the sidebar */
}

#sidebar {
    width: 30%;
    padding: 10px;
    background-color: #a5cfd5;
    border: 1.5px solid #000000;
    border-radius: 5px;
    margin-right: 10px;
    margin-top: 20px;
}

#notebox {
    height: 7vh; /* Full viewport height */
    width: 30%; 
    padding: 15px;
    background-color: #ffffff;
    border: 1.5px solid #ffffff;
    border-radius: 5px;
    margin-top: 730px; /* Adds space between info box and contact box */
    margin-right: 10px;
    margin-left: -490px;
}

/* Sidebar headings */
#sidebar h2 {
    color: #2832e6;
    font-size: 22px;
    margin-bottom: 10px;
    margin-top: 5px;
}

/* Dropdown styling */
select {
    width: 100%; /* Make dropdowns take up full width */
    padding: 0px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    background-color: #fff;
    margin-bottom: 0px; /* Reduced space between the dropdowns */
    transition: border-color 0.3s;
}

/* Info section styling */
#reservoirInfo {
    background-color: #d5e2ec;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 0px;
    margin-bottom: 0px;
    font-size: 16px;
}

#reservoirInfo h3 {
    margin-top: 5px; /* Adjust this value as needed */
    font-size: 18px; /* You can also adjust the font size if needed */
}

#reservoirInfo h5 {
    margin-top: 20px; /* Adjust this value as needed */
    margin-bottom: 20px;
    font-size: 18px; /* You can also adjust the font size if needed */
}

h6 {
    color: #000000;
    font-size: 18px;
    margin-bottom: 0px;
    margin-top: 15px;
}

/*========================= Reservoir information table */
.styled-table {
    width: 100%;
    border-collapse: collapse; /* Ensures borders don't double up */
    margin: -10px 0 1px 0; /* Adjust vertical margins as needed */
    font-size: 15px;
    text-align: left;
    background-color: #f8f8f8; /* Light gray background for the table */
}

.styled-table th, .styled-table td {
    padding: 4px 5px; /* Space inside each cell */
    padding-left: 7px;
    border: 1.5px solid #b8b9bf; /* Light gray border around the cells */
}

.styled-table td {
    background-color: #fefeea8c; /* White background for table cells */
}

.styled-table td:nth-child(2) {
    padding-left: 7px; /* Adjust as needed */
    padding-right: 80px; /* Adjust as needed to maintain balance */
}

/* =================Media query for smaller screens */

#basinInfo p, #reservoirInfo p {
    margin: 0;
    padding: 5px 0;
}

#basinInfo {
    margin-top: 0px;
    margin-bottom: 0px;
    border-top: 1px solid #ccc;
    padding-top: 10px;
}

#basinDropdown {
    width: 100%;
    padding: 5px;
}

#reservoirInfo {
    margin-top: 20px;
    border-top: 1px solid #ccc;
    padding-top: 10px;
}

#reservoirDropdown {
    width: 100%;
    padding: 5px;
}

/*================ Time-series Buttons*/
.time-series-button {
    padding: 7px 10px;
    font-size: 16px;
    background-color: #1d8421;
    color: rgb(255, 255, 255);
    border: none;
    cursor: pointer;
}

.short-term-button {
    margin-left: 5px; /* Move the entire button to the right */
}

.long-term-button {
    margin-left: 10px; /* Move the entire button to the right */
}

.time-series-button:hover {
    background-color: #1d8421; /* Optional: change color on hover */
}

/*======================================================*/
/* Circle Marker */
.circle-marker div {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: inherit;  /* Color will be set dynamically */
    border: 1px solid black;
}

/* Square Marker */
.square-marker div {
    width: 14px;
    height: 14px;
    background-color: inherit;  /* Color will be set dynamically */
    border: 1px solid black;
}

/* Triangle Marker (using inline SVG) */
.triangle-marker div {
    width: 20px;
    height: 20px;
}

/*======================================================*/
/* Styles for the new shape legend */
/* Base styles for legend container */
.shape-legend {
    background: rgb(238, 238, 229);
    border: 1px solid #fffcfc;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px black;
    font-size: 15px;
    line-height: 2;
}

/* Base styles for legend items */
.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

/* Base styles for legend icons */
.legend-icon {
    width: 15px;
    height: 15px;
    margin-right: 8px;
    border: 1px solid black; /* Add border to ensure visibility */
}

/* Circle icon */
.legend-icon.circle {
    border-radius: 50%;
    background-color: black;
}

/* Square icon */
.legend-icon.square {
    background-color: black;
}

/* Triangle icon */
.legend-icon.triangle {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 15px solid black;
    border-top: none; /* Ensure no top border is applied */
}

/* Custom tooltip style */
.leaflet-tooltip.custom-tooltip {
    background-color: #fffdd1 !important;
    color: #000;
    border: 1px solid #870909;
    font-size: 14px;
}

/*=============== Storage anomaly legend ==========================*/
/* Styles for the new status legend */
.status-buttons {
    position: absolute;
    bottom: 250%;
    right: 720%;
    background: rgb(230, 229, 229);
    padding: 0px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;      
    justify-content: space-between;
    align-items: center;
    gap: 0.5vh;
    z-index: 1000;
}

/* Style for the buttons */
.status-buttons button {
    width: 180px;
    padding: 5px 18px;
    border: 1px solid #0c0000;;
    border-radius: 0px;
    font-size: 15px;
    cursor: pointer;
    min-width: 50px;
}

/*================ Legend tag ========================*/
/* Style for the buttons */
#legend-tag {
    position: absolute;
    bottom: 34%;
    right: 79.5%;
    color: #3c20dc;
    padding: 10px;
    font-size: 20px;
    width: 15%;
    z-index: 1000;
    /*flex-direction: column-reverse;        /* horizontal */
}

/*============ Foot note (Contact details) ======================*/
/* Styles for the notebox */

#notebox h7 {
    color: #e62838;
    font-size: 17px;
    margin-bottom: 0px;
    margin-top: 0px;
    font-weight: bold;
}

#notebox p {
    margin: 5px 0;
    font-size: 15px;
}

#notebox a {
    color: #1a73e8;
    text-decoration: none;
}

#notebox a:hover {
    text-decoration: underline;
}

/*============ Date box ======================*/
#date-display {
    position: absolute;
    top: 5%;
    left: 0%;
    background: rgb(4, 68, 142);
    padding: 8px 12px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 0px;
    z-index: 1000;
    width: 98.6%;
    text-align: center;
    color: rgb(255, 255, 255);
}

/*============ Disclaimer ======================*/
#disclaimer-box {
    position: absolute;
    top: 91%; /* adjust if overlapping */
    right: 29%;
    color: #333;
    padding: 10px;
    font-size: 12px;
    border: 1px solid #000000;
    border-radius: 5px;
    width: 30%;
    z-index: 1000;
}
