/* Bird Alert App Theme */

:root {
    --primary-blue: #4a6fa5;
    --secondary-blue: #789ebf;
    --primary-green: #5b8c5a;
    --secondary-green: #8fbc8f;
    --light-gray: #f0f4f8;
    --dark-gray: #2c3e50;
    --white: #ffffff;
  }
  
  body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--light-gray);
    margin: 0;
    padding: 0;
  }
  
  .container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px;
  }
  
  h1, h2, h3 {
    color: var(--primary-blue);
  }
  
  a {
    color: var(--primary-green);
    text-decoration: none;
  }
  
  a:hover {
    color: var(--secondary-green);
  }
  
  /* Form Styles */
  form {
    background-color: var(--white);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  input[type="text"],
  input[type="email"],
  input[type="password"],
  select,
  textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--secondary-blue);
    border-radius: 4px;
    word-wrap: break-word;
  }
  
  input[type="submit"],
  button {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  input[type="submit"]:hover,
  button:hover {
    background-color: var(--secondary-blue);
  }
  
  /* Alert Styles */
  .alert {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
  }
  
  .alert-success {
    background-color: var(--secondary-green);
    color: var(--white);
  }
  
  .alert-danger {
    background-color: #e74c3c;
    color: var(--white);
  }
  
  /* Table Styles */
  table {
    width: 100%;
    min-width:600px;
    border-collapse: collapse;
    margin-bottom: 20px;
  }
  
  th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--secondary-blue);
  }
  
  th {
    background-color: var(--primary-blue);
    color: var(--white);
  }
  
  tr:nth-child(even) {
    background-color: var(--light-gray);
  }
  
  /* Navigation */
  nav {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 10px 0;
  }
  
  nav ul {
    padding: 0;
    list-style: none;
  }
  
  nav ul li {
    display: inline;
    margin-right: 20px;
  }
  
  nav ul li a {
    color: var(--white);
  }
  
  nav ul li a:hover {
    color: var(--secondary-green);
  }
  
  /* Dashboard specific styles */
  .dashboard-section {
    background-color: var(--white);
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .dashboard-section h2 {
    color: var(--primary-green);
    border-bottom: 2px solid var(--secondary-green);
    padding-bottom: 10px;
  }
  
  /* Bird list styles */
  .bird-list {
    list-style-type: none;
    padding: 0;
  }
  
  .bird-list li {
    background-color: var(--light-gray);
    margin-bottom: 5px;
    padding: 10px;
    border-radius: 4px;
  }
  
  .bird-list li:hover {
    background-color: var(--secondary-blue);
    color: var(--white);
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
        /* Table responsiveness code */
      /* table, thead, tbody, th, td, tr {
          display: block;
      } */
    .container {
      width: 95%;
    }
    
    nav ul li {
      display: block;
      margin-bottom: 10px;
    }
  }

  #life_list_tooltip {
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1;
    margin-left: 10px;
}

input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#clear-life-list {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 4px;
}

#clear-life-list:hover {
  background-color: #c0392b;
}

.landing-button {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 10px;
}

.landing-button:hover {
  background-color: var(--secondary-blue);
}

.button-container {
  margin-top: 20px;
}
button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled,
.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

#loading-message {
    color: #4a6fa5;
    margin-top: 10px;
    font-weight: bold;
}

.checkbox-options {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start; /* Ensure items are left-aligned */
}

.checkbox-container {
  margin-left: 0;
  padding-left: 0;
}

.checkbox-line label,
.checkbox-line input {
  margin: 0;
  padding: 0;
}

.tooltip {
  margin-top: 5px;
  font-size: 0.9em;
  color: #666;
}

/* Table Styles */
.table-container {
  width: 100%;
  overflow-x: auto;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: center; /* Center buttons horizontally */
  background-color: #fff; /* White background for the container */
  padding: 8px; /* Padding around the buttons */
  border: 1px solid #ccc; /* Optional border around the container */
  border-radius: 4px; /* Rounded corners */
}

.actions form {
  margin: 0;
}

.birds-cell {
  max-height: 300px; /* Adjust as needed */
  overflow-y: scroll;
  scrollbar-width: thin; /* For Firefox */
}



.birds-cell::-webkit-scrollbar {
  width: 8px; /* For WebKit browsers */
}

.birds-cell::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

.birds-cell::-webkit-scrollbar-track {
  background-color: #f1f1f1;
}

#added-birds {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 10px;
}

#added-birds ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#added-birds li {
  margin-bottom: 5px;
}

.bird-suggestions {
  border: 1px solid #ccc;
  max-height: 150px;
  overflow-y: auto;
  position: absolute;
  background-color: #fff; /* Ensure the background is opaque white */
  opacity: 1; /* Fully opaque */
  z-index: 1000;
  width: 200px; /* Adjust width as needed */
}

.suggestion-item {
  padding: 5px;
  cursor: pointer;
}

.suggestion-item:hover {
  background-color: #f0f0f0;
}

.add-bird-container,
.delete-bird-list-container {
    position: relative;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    margin-top: 10px;

}

.add-bird-container {
    margin-bottom: 20px; /* More space below the Add Bird section */
}

.add-bird-container .bird-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
}

.add-bird-form {
    display: flex;
    flex-direction: column;
}

.add-bird-form input {
    margin-bottom: 5px;
}

.add-bird-form button {
    align-self: flex-start;
}

.manual-add-bird-section {
  margin-bottom: 20px; /* Adjust as needed */
}

.manual-bird-list {
  margin-top: 20px; /* Space before the bird list */
}

.disabled-option {
  opacity: 0.5;
  cursor: not-allowed;
}

.disabled-option label {
  color: #999;
}

.disabled-option .tooltip {
  visibility: hidden;
  width: 300px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -150px;
  opacity: 0;
  transition: opacity 0.3s;
}

.disabled-option:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.tooltip {
  visibility: hidden;
  width: 300px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -150px;
  opacity: 0;
  transition: opacity 0.3s;
}

.disabled-option {
  opacity: 0.5;
  cursor: not-allowed;
}

#bird-list-selection {
  position: relative;
}

.bird-list-tooltip {
  display: none;
  position: fixed;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 10px;
  width: 200px;
  z-index: 1000;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  pointer-events: none;
}

#bird-list-selection:hover .bird-list-tooltip {
  display: block;
}

#include_exclude_options {
  margin-left: 20px; /* Adjust this value to increase or decrease the indentation */
}

#include_exclude_options label {
  display: inline-block;
  margin-bottom: 5px;
}

#use_local_commonness_threshold {
  order: 1;
  margin-right: 5px;
}
#use_local_commonness_threshold_label {
  order: 2;
  margin-right: 10px;
}

#sample-rarity-thresholds-btn {
  order: 3; /* Assign order to the button */
}
/* #local_commonness_threshold_label {
  order: 3;
  margin-right: 5px;
} */
/* Indent the threshold input group (label and input) */
.threshold-input-group {
  margin-left: 40px; /* Same indentation as the radio button options */
  margin-top: 10px;  /* Add space above the threshold label/input */
}

#threshold-input-container {
  display: inline-flex;
  align-items: center;
  margin-left: 5px; /* Optional: adjust the space between the label and input */
}

#local_commonness_threshold {
  width: 60px;
}
#local_commonness_threshold:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.percent-sign {
  width: 15px;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.4); /* Black with opacity */
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

/* Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
}

/* Birds list container */
.birds-list-container {
  margin-top: 20px;
}

.birds-list {
  max-height: 400px;
  overflow-y: scroll;
  border: 1px solid #ccc;
  padding: 10px;
}

.bird-item {
  padding: 5px 0;
}

.bird-item.grayed-out {
  color: #ccc;
}