/* 1. Global Reset & Layout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Fira Sans", sans-serif;
}

html,
body {
  height: 100%;
  color: rgb(85, 85, 85);
}

body {
  display: flex;
  flex-direction: column;
}

/* 2. Header & Navigation */
.header {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  padding: 10px 20px;
  color: rgb(85, 85, 85);
  font-weight: 100;
  border-bottom: 2px solid rgb(196, 57, 6);
  flex-shrink: 0;
}

.logo img {
  width: 50px;
  display: block;
}

.title-nav {
  padding-left: 15px;
}

nav {
  padding-top: 5px;
}

nav a {
  text-decoration: none;
  font-weight: 400;
  color: rgb(85, 85, 85);
  transition: color 0.2s ease;
}

nav a:hover {
  color: rgb(196, 57, 6);
}

/* 3. Language Dropdown System */
.language {
  margin-left: auto;
  font-weight: 400;
}

.dropdown {
  position: relative;
  display: inline-block;
}

/* The Toggle popup_button */
.dropbtn {
  text-decoration: none;
  color: rgb(85, 85, 85);
  cursor: pointer;
}

.dropbtn::after {
  content: " \25BE";
  display: inline-block;
  font-size: 12px;
  margin-left: 5px;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.dropbtn.active::after {
  transform: rotate(180deg);
}

/* Dropdown Menu Container */
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  min-width: 140px;
  background-color: #ffffff;
  border: 1px solid #ececec;
  border-radius: 6px;
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  overflow: hidden;
}

.dropdown-content a {
  display: block;
  padding: 12px 20px;
  color: #444;
  text-decoration: none;
  font-size: 14px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #f8f9fa;
  color: rgb(196, 57, 6);
}

.dropdown-content a:not(:last-child) {
  border-bottom: 1px solid #f0f0f0;
}

.show {
  display: block;
}

/* 4. Main Content Area */
.content-container {
  display: flex;
  flex: 1;
  flex-direction: row;
  overflow: hidden;
}

/* 4.1. Side bar */

.side-bar {
  flex: 0.3;
  padding: 2px;
  margin: 20px;
}

.side-bar hr {
  border-bottom: 1px solid rgb(209, 138, 138);
  margin-bottom: 15px;
}

.side-bar p {
  margin-bottom: 5px;
}

#analysisForm {
  display: block;
}

select {
  border: 2px solid #dddddd;
  background: #eeeeee;
  padding: 10px;
  transition: 0.4s;
  margin-bottom: 20px;
  width: 100%;
}

select:hover,
select:focus {
  background: #dddddd;
}

select::picker-icon {
  color: #999999;
  transition: 0.4s rotate;
}

select:open::picker-icon {
  rotate: 180deg;
}

fieldset {
  padding: 15px;
  margin-bottom: 20px;
  border: 1.5px solid rgb(71, 67, 66);
  display: flex;
  flex-direction: column;
  gap: 10px; /* Changed to 10px so they aren't touching */
}

.checkbox-container {
  display: flex;
  align-items: center; /* This vertically centers the text with the checkbox */
  cursor: pointer;
}

.fieldset-input {
  margin: 0 8px 0 0; /* Keeps spacing only on the right */
  cursor: pointer;
}

/* 4.2. Map */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#map {
  flex: 1;
  width: 100%;
  background-color: #ddd;
}

.right {
  flex: 0 0 20%;
  background-color: rgba(228, 30, 47, 0.75);
  padding: 15px;
  overflow-y: auto;
  color: #ddd;
}

/* 5. Footer */
.footer {
  background-color: #f1f1f1;
  text-align: center;
  padding: 10px;
  font-size: 12px;
  flex-shrink: 0;
}

/* 6. Map */
/*-- Leend--*/
.legend {
  line-height: 18px;
  color: #555;
}
.legend i {
  width: 18px;
  height: 18px;
  display: inline-block;
  margin-right: 8px;
  opacity: 0.7;
}
.info {
  padding: 6px 8px;
  font:
    14px/16px Arial,
    Helvetica,
    sans-serif;
  background: white;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  max-width: 250px;
}
.info h4 {
  margin: 0 0 5px;
  color: #777;
  text-align: center;
}
.info hr {
  width: 100%;
  height: 1px;
  padding: 0;
  margin: 0;
  border: none; /* Remove default styling */
  border-top: 1px solid rgb(157, 157, 163); /* Sets the thickness, style, and color */
}
/*--Popup--*/
/*---popup_button---*/
.popup_button {
  margin: 10px auto;
  border-radius: 4px;
  background-color: rgb(196, 57, 6);
  border: none;
  color: #ffffff;
  text-align: center;
  /* font-size: 28px; */
  padding: 10px;
  width: 100%;
  cursor: pointer;
}

.popup_button span {
  display: block;
  position: relative;
  transition: 0.5s;
}

.popup_button span:after {
  content: "\00bb";
  position: absolute;
  opacity: 0;
  right: -20px;
  transition: 0.5s;
}

.popup_button:hover span {
  padding-right: 25px;
}

.popup_button:hover span:after {
  opacity: 1;
  right: 0;
}

/* Create a container for the buttons if you haven't already */
.button-group {
  display: flex;
  gap: 10px;       /* Adds space between them without breaking the line */
  width: 100%;
  margin-top: 15px;
}

.button-group .popup_button {
  flex: 1;         /* Makes both buttons take up equal available space */
  width: auto;     /* Overrides your 50% setting */
  margin: 0;       /* Removes default margins that might interfere */
}
/* After analysis functions */
#new_analysis {
  display: none;
}

#download_data {
  display: none;
}



/* 7. Responsive Design */
@media only screen and (max-width: 800px) {
  .content-container {
    flex-direction: column;
    overflow: visible;
  }

  .right {
    display: none;
  }

  #map {
    min-height: 400px;
  }
}
