/* Import Raleway font */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap');

/* Global variables */
:root {
  --sans-font: 'Raleway', sans-serif;
  --text: #212121;
  --accent: #61223b; /* Primary color */
  --accent-hover: #b79962; /* Secondary color */
  --bg: #fff;
  --accent-bg: rgba(183, 153, 98, 0.1); /* Secondary color at 10% opacity */
  --border: #898EA4;
  --accent-text: var(--bg);
}

/* Basic reset and global styles */
html {
  font-family: var(--sans-font);
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  background-color: var(--bg);
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 0;
  display: flex;
  min-height: 100vh;
  -webkit-font-feature-settings: "liga" 0;
  -moz-font-feature-settings: "liga" 0;
  -ms-font-feature-settings: "liga" 0;
  font-feature-settings: "liga" 0;
}

.container {
  display: flex;
  width: 100%;
}

.sidebar {
  width: 250px;
  background-color: var(--accent-bg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar img.logo {
  display: block;
  margin-bottom: 20px;
  width: 100%;
  max-width: 200px;
  height: auto;
}

.sidebar nav {
  width: 100%;
}

.sidebar nav ul {
  list-style-type: none;
  padding: 0;
}

.sidebar nav ul li {
  margin: 10px 0;
}

.sidebar nav ul li a {
  text-decoration: none;
  color: var(--accent);
  font-size: 1.2rem;
}

.sidebar nav ul li a:hover {
  color: var(--accent-hover);
}

.main-content {
  flex-grow: 1;
  padding: 20px;
}

h1 {
  font-size: 3rem;
  color: var(--accent);
}

h2 {
  font-size: 2.6rem;
  margin-top: 3rem;
  color: var(--accent);
}

p {
  margin: 1.5rem 0;
}

a,
a:visited {
  color: var(--accent-hover);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.map-container {
  flex: 2;
  margin-right: 20px; /* Space between the map and charts container */
}

/* Custom form styling */
.form-container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Ensures the button is on the far right */
  width: 100%;
  margin-bottom: 20px;
}

.form-container div {
  flex: 1 1 auto; /* Allow each item to take necessary space */
  min-width: 150px;
  margin-right: 10px; /* Space between each filter */
}

.form-container div label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.form-container div select,
.form-container div input[type="date"] {
  margin-right: 10px; /* Space between filter options */
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 4px;

}

.form-container div input[type="submit"] {
  flex: 1 1 100%;
  background-color: var(--accent);
  color: var(--accent-text);
  border: none;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.form-container div input[type="submit"]:hover {
  background-color: var(--accent-hover);
}

.form-container div:last-child {
  margin-right: 0; /* No margin on the last element */
}

/* Active filters styling */
#active-filters {
  width: 100%; /* Full width */
  margin-top: 5px;
  display: flex;
  flex-direction: column;
}

#active-filters h3 {
  font-weight: bold;
  margin-bottom: 2px;
}

#active-filters ul {
  list-style: none;
  padding: 0;
}

#active-filters ul li {
  background-color: var(--accent-bg);
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 5px;
}

.content-area {
  display: flex;
}


/* Charts container takes up 1/3 of the content area */
.charts-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Each chart inside the charts container */
.chart {
  margin-bottom: 20px; /* Space between charts */
  flex: 1; /* Each chart takes equal space */
}
.layer-button {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #007bff;
  padding: 5px 10px;
  margin: 2px;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.layer-button:hover {
  background-color: #e6f2ff;
}

.layer-button.selected {
  background-color: #007bff;
  color: #ffffff;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
