/* General Panel Styling */
.panel-container {
  padding: 50px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
}

/* Boundary Section Layout */
#boundary-section-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}


/* ============== AG GRID SIZING ============== */
#myGrid {
  width: 100%;
  height: 60vh; /* Adjust as desired */
}
#combinedDataGrid {
  width: 100%;
  height: 60vh; /* Adjust as desired */
};
/* ============== SELECTED BOUNDARIES ============== */
.selected-boundary-list {
  margin-top: 1rem;
  padding: 0.5rem;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
}

.selected-boundary-list h3 {
  margin-top: 0;
}

.selected-boundary-list .boundary-item {
  display: flex;
  justify-content: space-between;
  background: #f9f9f9;
  padding: 4px;
  margin: 2px 0;
}

.table-btn {
  background-color: #4CAF50;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  box-shadow: 2px 0 5px rgba(0,0,0,0.3);
}
.table-btn:hover {
  background-color: #45a049;
}




/* Style for the zoom level info box */
#map-state-info {
  position: fixed;
  display: block;
  bottom: 5px;
  left: 5px;
  background: rgba(255, 255, 255, 0.9);
  padding: 5px;
  border-radius: 3px;
  z-index: 10000;
}

/* Style for the map overlay */
.map-overlay {
  bottom: 10px;
  top: auto;
  width: 200px;
  position: absolute;
  right: 10px;
  background: white;
  border-radius: 5px;
  padding: 10px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
}



body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
}
 


h2, h3 {
  margin-top: 50px;
}

button.global-button {
  background-color: #4CAF50; /* Green background */
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  z-index: 10002;
  margin-bottom: 10px; /* Adds space between buttons */
  display: block; /* Makes the button expand to the width of its container */
  box-shadow: 2px 0 5px rgba(0,0,0,0.3);
}

/* Hover effect for all buttons */
button:hover {
  background-color: #45a049;
}

/* Button Styling */
.global-button {
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
}

.global-button:hover {
  background-color: #45A049;
}

/* Specific styles for the 'Add Current Slide To Chart' button */
#add-to-chart {
  background-color: #EF8A62; /* Orange color for differentiation */
}

/* Specific styles for the 'Toggle Data Analysis View' button */
#toggle-view {
  background-color: #67A9CF; /* Red color for differentiation */
  margin-top: 20px; /* Adds extra space above this button */
  box-shadow: 2px 0 5px rgba(0,0,0,0.3);

}

.spinner {
  border: 4px solid rgba(0,0,0,.1);
  border-radius: 50%;
  border-top: 4px solid #000;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



label {
  display: block;
}

input[type="text"], select, input[type="month"], input[type="range"] {
  width: 100%;
  padding: 12px 20px;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

#slider-date {
  width: auto;
}

.noUi-connect {
  background: #4CAF50 !important;
}
.mapboxgl-canvas {
  cursor: crosshair !important;
}

#sidebar {
  background-color: #fff;
  box-shadow: 2px 0 5px rgba(0,0,0,0.3);
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 300px;
  padding: 2px;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  height: 100vh; /* This ensures the sidebar spans the full viewport height */
}

.sidebar-content {
  max-height: calc(100vh - 50px);
  padding: 30px;
  overflow-y: auto;
}


/* Adjust the data analysis container when the sidebar is toggled */
#data-analysis-container {
padding: 75px; 
transition: padding-left 0.3s ease-in-out;
}




/* Style for collapsible group headers */
.collapsible-header {
cursor: pointer;
background-color: #e9e9e9;
padding-left: 0.5em; /* Add some padding */
border-bottom: 1px solid #ccc; /* Add a bottom border */
transition: background-color 0.3s ease; /* Smooth transition for background color */
}

/* Hidden rows for collapsed groups */
.hidden-row {
display: none;
}

#data-table th {
cursor: pointer;
}

/* Style for collapsible group headers when collapsed */
.collapsible-header.collapsed {
background-color: #d3d3d3; /* A lighter color when collapsed */
}

/* Style for the collapse indicator arrow */
.collapse-indicator {
cursor: pointer;
user-select: none;
-webkit-user-select: none;  /* Safari */
-moz-user-select: none;     /* Firefox */
-ms-user-select: none;      /* Internet Explorer/Edge */  
width: 1em; /* Fixed width */
text-align: center; /* Center the arrow */
transition: transform 0.3s ease; /* Smooth transition for rotation */
}



/* When the sidebar is open, add left padding to the data analysis container */
#sidebar.open ~ #data-analysis-container {
padding: 75px; 
}

#data-analysis-container h2 {
margin-top: 0px;}

/* Table styles */
#data-table {
width: 100%;
border-collapse: collapse;
margin-top: 20px; /* Add some space above the table */
}

#data-table th,
#data-table td {
text-align: left;
padding: 8px;
border: 1px solid #ddd; /* Light grey border for cells */
}

#data-table th {
background-color: #4CAF50;
color: white;
}

/* Chart container adjustment */
#chart-container {
padding-left: 300px; /* This should match the sidebar width */
transition: padding-left 0.3s ease-in-out;
}
#chart-container h3 {
margin-top: 0px;
}


#sidebar.open {
  transform: translateX(0);
}



#sidebar-toggle {
  box-shadow: 2px 0 5px rgba(0,0,0,0.3);
  position: fixed;
  left: 10px;
  top: 10px;
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
}



#instructions-sidebar {
  background-color: #fff;
  box-shadow: -2px 0 5px rgba(0,0,0,0.3);
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 250px;
  padding: 20px;
  transform: translateX(100%); /* Starts off-screen to the right */
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
  z-index: 900;

}

#instructions-sidebar.open {
  transform: translateX(0); /* Slides in to view */
}

#instructions-toggle {
  box-shadow: -2px 0 5px rgba(0,0,0,0.3);
  position: fixed;
  right: 10px;
  top: 10px;
  z-index: 1001;
  color: white;
  transition: transform 0.3s ease-in-out;
  /* Rest of the button styling here */
}






.view-container.hidden-view {
  display: none; /* This will completely hide the element and take it out of the flow */
  transition: opacity 0.3s ease, visibility 0.3s ease; /* Removed height transition */
}

.view-container {
  /* Remove height and overflow properties if you always want it to be the height of the viewport */
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease; /* Removed height transition */
}

#map-container {
  height: 100vh; /* This will ensure it's always the height of the viewport */
  overflow: hidden; /* This will hide any overflow */
  transition: margin 0.3s ease-in-out;
}

#map {
  height: 100vh;
}


.map-overlay {
  position: fixed;
  pointer-events: none; /* This makes sure the map underneath can still be interacted with */
}

/* .instructions {
  position: fixed;
  top: 10px;
  right: 10px;
  pointer-events: auto; 
  z-index: 10; 
}*/

.legend {
  position: fixed;
  bottom: 10px;
  right: 10px;
  pointer-events: auto; /* So that it's clickable */
  z-index: 10; /* To ensure it's above the map elements */
}

/* This will style the legend items you're adding via JavaScript */
#legend div {
  background: rgba(255, 255, 255, 0.8);
  padding: 5px;
  margin-bottom: 5px;
}

#legend i {
  width: 12px;
  height: 12px;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}



.mapboxgl-popup-content {
  max-height: 300px; /* Adjust the max-height to fit your needs */
  overflow-y: auto; /* This will enable scrolling */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);

}

/* Responsive CSS for Mobile */

@media (max-width: 768px) { 
  /* Stack the overlays and instructions on mobile for better visibility */
  .instructions, .legend {
    position: static;
    display: block;
    pointer-events: auto;
    z-index: 10;
    margin: 10px 0;
  }

  /* Make the sidebars, legend, and instructions full width on mobile */
  #sidebar, #instructions-sidebar, #legend, .instructions {
    width: 100%;
    padding: 10px;
    transform: none !important; /* Override any transform property */
  }

  /* Make the sidebar content scrollable within the viewport */
  #sidebar .sidebar-content, #instructions-sidebar .sidebar-content {
    max-height: calc(100vh - 60px); /* Adjust height for play button and header */
    overflow-y: auto;
  }

  /* Adjust the sidebar padding to make sure the play button is accessible */
  #sidebar, #instructions-sidebar {
    padding-bottom: 60px;
  }

  /* Reposition the toggle buttons on mobile */
  #sidebar-toggle, #instructions-toggle {
    position: fixed;
    top: 10px;
    z-index: 9999; /* Ensure it's above other elements */
  }

  /* Adjust for the sidebar toggle on the left */
  #sidebar-toggle.closed {
    left: 10px; /* Reset to left on mobile */
    right: auto; /* Clear any right property */
  }

  /* Adjust for the instructions toggle on the right */
  #instructions-toggle.closed {
    right: 10px; /* Keep on the right on mobile */
  }

  /* Optional: If you want to hide the map controls when sidebars are open */
  .mapboxgl-ctrl-top-right, .mapboxgl-ctrl-top-left {
    display: none;
  }

  /* Ensure the map container takes full width when sidebars are closed */
  #map-container {
    margin-left: 0;
    margin-right: 0;
    transition: margin 0.3s ease-in-out;
  }
}







/* Adjusts the spacing around each section within the sidebar */
.sidebar-content > div {
  margin-bottom: 20px; /* Space below each section */
}

/* Adjusts the spacing of each control group within sections */
.filter-group > div, .layers-content > div, .input-group {
  margin-bottom: 10px; /* Space below each control group */
}

/* For individual form controls, you may want to adjust the margin for top and bottom */
.sidebar-content label,
.sidebar-content input,
.sidebar-content select {
  margin-top: 5px; /* Space above each control */
  margin-bottom: 5px; /* Space below each control */
}

/* You can add a class to each group of settings to control spacing more granularly */
/* Example: */
.filters-content,
.layers-content,
.time-slider-inputs {
  padding: 10px 0; /* Top and bottom padding within each settings group */
}

/* Space between the lat/long inputs and the date slider */
.lat-lng-inputs {
  margin-bottom: 20px; /* Adjust as needed */
}

/* Space between the date slider and the date inputs */
.date-slider-group {
  margin-bottom: 20px; /* Adjust as needed */
}

/* This ensures there is space around the date input fields */
.date-inputs input[type="text"] {
  margin-bottom: 10px; /* Adjust as needed */
}












/* COMBINED CHART CONTAINER STUFF */


.chart-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding-left 0.3s ease-in-out;
}

#table-container {
  padding: 50px;
  box-shadow: 2px 0 5px rgba(0,0,0,0.3);
}
#table-container h2 {
  margin-top: 0px;
}

#chart-with-arrows {
  margin-top: 0px;
  padding: 50px;
  margin-top: 20px; /* Space outside the top of the container */
  margin-bottom: 20px; /* Space outside the bottom of the container */
  box-shadow: 2px 0 5px rgba(0,0,0,0.3);
}

#chart-with-arrows h3{
  margin-top: 0px;
  }

#pie-chart-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 75vh; /* Adjust the vh value based on how much height you want it to take */
  box-shadow: 2px 0 5px rgba(0,0,0,0.3);
}

.pie-chart-wrapper {
  flex: 1; /* This will make the pie chart grow to fill the container */
  position: relative;
  height: 100%;
  width: 80% !important;
}

#line-chart-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 75vh; /* Adjust the vh value based on how much height you want it to take */
  box-shadow: 2px 0 5px rgba(0,0,0,0.3);
}

.line-chart-wrapper {
  flex: 1;
  position: relative;
  height: 100%;
  width: 80% !important;
}


/* Base styles for arrow buttons */
.arrow-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed; /* Make the button stick to a fixed position on the screen */
  top: 50%; /* Center the button vertically */
  margin-top: -20px; /* Half the height of the button to center align it */
  z-index: 1000; /* Ensure the button is above other content */
  transition: left 0.3s ease-in-out; 
}

#prev-month {
left: 10px; /* Distance from the left edge of the viewport */
}

#next-month {
right: 10px; /* Distance from the right edge of the viewport */
}

.arrow-button svg {
transition: transform 0.2s ease-in-out;
}

.arrow-button:hover svg {
transform: scale(1.2);
background: #4CAF50;
border-radius: 4px;
box-shadow: 2px 0 5px rgba(0,0,0,0.3);
}

.arrow-button:hover svg path {
stroke: white;
}

.arrow-button:disabled {
opacity: 0.5;
cursor: default;
}

.arrow-button:disabled svg {
transform: none; /* Removes the hover effect transform if any */
}


.layer-toggle input[type="checkbox"]:checked + label {
font-weight: bold;
}



.sort-asc::after {
content: "  ▲";
}

.sort-desc::after {
content: "  ▼";
}



#finger-point {
font-size: 24px;
position: absolute;
z-index: 10; /* Ensure it's above other content if needed */
display: none; /* Start hidden */
}












/* ADVANCED CHART CONTAINER STUFF */


/* Advanced Table Container */
#table-container-adv {
  padding: 50px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
}

#table-container-adv h3 {
  margin-top: 0;
}

/* Advanced Chart with Arrows Container */
#chart-with-arrows-adv {
  margin-top: 0;
  padding: 50px;
  margin-top: 20px; /* Matches combined mode */
  margin-bottom: 20px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
}

#chart-with-arrows-adv h3 {
  margin-top: 0;
}

/* Advanced Pie Chart Container */
#pie-chart-container-adv {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 75vh; /* Matches combined mode */
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
}


/* Advanced Line Chart Container */
#line-chart-container-adv {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 75vh; /* Matches combined mode */
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
}


/* Advanced Arrow Buttons */
#prev-month-adv {
  left: 10px;
}

#next-month-adv {
  right: 10px;
}



/* Advanced Details Section */
#details-section {
  padding: 50px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
  margin-top: 20px;
}

/* Advanced Insights Section */
#insights-section {
  padding: 50px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
  margin-top: 20px;
}

/* Export Controls for Advanced Mode */
#export-controls {
  padding: 50px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
  margin-top: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #prev-month-adv,
  #next-month-adv {
    position: absolute; /* Ensure buttons move with the view */
    top: auto;
    bottom: 20px; /* Place at the bottom of the viewport */
    left: 20px; /* Adjust for smaller screens */
  }

  #next-month-adv {
    right: 20px;
    left: auto;
  }
}

/* General styling for mode containers */
.mode-container {
  padding: 20px;
  display: none;
}

.mode-container:not(.hidden-view) {
  display: block;
}



.month-display {
  font-size: 18px;
  font-weight: bold;
}












#info {
position: fixed;
bottom: 5px;
left: 50%;
transform: translateX(-50%);
z-index: 999;
background-color: white; /* or any color you prefer */
padding: 10px;
border-radius: 5px;
border: 1px solid #ddd; /* or any other styles you want to apply */
}

#info-content {
padding: 5px;
}


.autocomplete-items {
position: relative;
border: 1px solid #d4d4d4;
border-bottom: none;
border-top: none;
z-index: 9999;
top: 100%;
left: 0;
right: 0;
overflow-y: auto; /* Enable scrolling */
max-height: 150px; /* Set maximum height */
overflow-x: hidden;
}

.autocomplete-items div {
padding: 10px;
z-index: 9999;
cursor: pointer;
background-color: #fff; 
border-bottom: 1px solid #d4d4d4; 
}

.autocomplete-items div:hover {
background-color: #e9e9e9; 
}


input:disabled {
background-color: #e0e0e0; /* Light grey background */
color: #a0a0a0; /* Dimmed text color */
}




/* Styling for disabled dropdown option */
.disabled-option {
color: grey;
}

/* Tooltip container */
.tooltip-container {
display: none;
position: absolute;
background-color: black;
color: #fff;
text-align: center;
border-radius: 5px;
padding: 5px;
z-index: 1;
font-size: 12px;
white-space: nowrap;
}

.tooltip-container.show {
display: block;
}






/* Optional: Make it look more like a slider or grouped toggle */
.layer-group {
display: flex;
align-items: center;
justify-content: space-between;
}

.boundary-toggle-group {
display: inline-block;
margin-right: 10px;
}

input[type="radio"] {
margin-right: 5px;
}








/* GPT Chat Container at top center with responsive width */
#gpt-chat-container {
position: fixed;
top: -100%; /* Initially hidden off the top of the screen */
left: 50%;
transform: translateX(-50%);
width: calc(100% - 320px); /* 100% width minus sidebar width + some margin */
max-width: 800px;
background-color: #f9f9f9;
color: #333;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
border-radius: 10px;
padding: 15px;
z-index: 10000;
font-family: Arial, sans-serif;
transition: top 0.5s ease-in-out; /* Smooth slide-down animation */
}

/* Chat container visible state to slide it down */
#gpt-chat-container.shown {
top: 10px; /* Move the chat into view when shown */
}


/* Styling for the chat messages area with scroll */
#chat-box {
max-height: 300px;
overflow-y: auto;
border: 1px solid #ddd;
padding: 10px;
background-color: #fff;
color: #333;
margin-bottom: 10px; /* Space for the input area */
font-family: Arial, sans-serif;
scroll-behavior: smooth;
}

/* Input and button container */
.input-container {
display: flex;
align-items: center; /* Vertically center items */
gap: 10px;
margin-top: 10px;
}

/* Input field styling */
#user-input {
flex: 1;
padding: 10px 15px;
font-size: 16px;
border-radius: 5px;
border: 1px solid #ddd;
background-color: #fff;
color: #333;
margin: 0;
box-sizing: border-box;
}

/* Send button styling */
#send-btn {
display: flex; /* Ensure button doesn't take full width */
align-items: center;
justify-content: center;
padding: 10px 15px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
margin: 0;
box-sizing: border-box;
box-shadow: 2px 0 5px rgba(0,0,0,0.3);
}

#send-btn:hover {
background-color: #45a049;
}



/* Close (X) button styling */
#close-chat {
position: absolute;
top: 10px;
right: 10px;
background-color: transparent;
color: #333;
font-size: 18px;
border: none;
cursor: pointer;
z-index: 10001;
}

#close-chat:hover {
color: red; /* Hover effect for close button */
}
/* Button to summon the chat */
#toggle-chat {
position: fixed;
top: 10px; /* Initial position */
left: 50%;
transform: translateX(-50%);
background-color: #4CAF50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
padding: 10px 15px;
z-index: 10001;
opacity: 1;
transition: top 0.5s ease-in-out, opacity 0.5s ease-in-out; /* Smooth slide-up animation for the button */
box-shadow: 2px 0 5px rgba(0,0,0,0.3);
}

#toggle-chat:hover {
  background-color: #45A049;
}

/* Button hidden state to slide it up */
#toggle-chat.hidden {
top: -50px; /* Move the button up */
opacity: 0; /* Fade out */
}



#toggle-chat.shown {
top: 10px; /* When the chat is hidden, the button appears */
}



/* Message Styles */
#messages p,
#messages div {
margin: 5px 0;
padding: 8px;
border-radius: 5px;
}

.user-input {
background-color: hsla(153, 31%, 86%, 0.677); /* Light green background */
}

/*.assistant-message {
background-color: #f8f5d7; /* Light yellow background */
/* }*/

.error-message {
background-color: #f8d7da; /* Light red background */
color: #842029;
}



/* Typing Indicator Styles */
#typing-indicator {
margin-top: 10px;
font-style: italic;
color: #555;
display: flex;
align-items: center;
}

.typing-dot {
width: 8px;
height: 8px;
background-color: #555;
border-radius: 50%;
margin-left: 4px;
animation: blink 1s infinite;
}

.typing-dot:nth-child(2) {
animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
animation-delay: 0.4s;
}

@keyframes blink {
0% { opacity: 0.2; }
20% { opacity: 1; }
100% { opacity: 0.2; }
}


/* Map Loading Indicator Styles */
#loading-indicator {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
color: white;
padding: 10px 20px;
border-radius: 5px;
display: none; /* Hidden by default */
z-index: 9999; /* Ensure it appears above the map */
text-align: center;
}



/* Toggle Switch Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin-right: 10px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
  box-shadow: 2px 0 5px rgba(0,0,0,0.3)
}

input:checked + .slider {
  background-color: #4CAF50; /* Green when checked */
  box-shadow: inset 2px 0 5px rgba(0,0,0,0.3)
}

input:checked + .slider:before {
  transform: translateX(26px);
}




/* Ensure hidden-view class hides elements */
.hidden-view {
  display: none;
}

/* Styles for Compare Mode Tables */
#compare-tables {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.compare-table {
  flex: 1 1 45%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.compare-table th, .compare-table td {
  border: 1px solid #ddd;
  padding: 8px;
}

.compare-table th.sortable-header {
  cursor: pointer;
}

.compare-table th.sort-asc::after {
  content: " ▲";
}

.compare-table th.sort-desc::after {
  content: " ▼";
}

/* Styles for Compare Mode Charts */
#compare-pie-charts-container, #compare-line-charts-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.compare-chart {
  flex: 1 1 45%;
  position: relative;
}

/* Adjust the size of dynamically added charts */
.compare-chart canvas {
  width: 100% !important;
  height: 300px !important;
}











#summary-section, #chart-controls, #details-section, #insights-section {
  margin-bottom: 30px;
}

/* Summary Table Styling */
#summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

#summary-table th, #summary-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

#summary-table th {
  background-color: #f4f4f4;
}

/* Chart Controls */
.chart-control-group {
  margin-bottom: 15px;
}



/* Boundary Details Section */
#boundary-details-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Insights Section */
#insights-section {
  font-style: italic;
  background-color: #fafafa;
  padding: 10px;
  border-left: 4px solid #4CAF50;
}

/* Export Buttons */
#export-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
}





/* For the advanced month navigation */
#month-navigation {
  margin-bottom: 20px;
}

/* Summary table in advanced mode */
#summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

#summary-table th, #summary-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

#summary-table th {
  background-color: #f4f4f4;
}

/* The chart controls and custom chart area */
#chart-controls {
  margin: 20px 0;
}

.chart-control-group {
  margin-bottom: 15px;
}



/* Basic layout for boundary details container */
#boundary-details-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Insights section highlight */
#insights-section {
  font-style: italic;
  background-color: #fafafa;
  padding: 10px;
  border-left: 4px solid #4CAF50;
}




