/* Reset some default browser styles */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
li,
form,
input,
button {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* font-family: "Arial", sans-serif; */
  font-family: "Segoe UI", "HelveticaNeue-Medium", Helvetica, sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f9f9f9;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* Header Styles */
header {
  background-color: #aeb6c4;
  color: white;
  padding: 20px 0;
  /* margin-bottom: 20px; */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

header .user-card {
  background-color: #374151;
  color: white;
  padding: 10px 10px;
  border: solid 2px #998888;
  border-radius: 8px;
  box-shadow: none;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 20px;
}
header .user-card #email{
    font-size: smaller;
}


header h1 {
  font-size: 24px;
  margin: 0;
  text-align: center;
  flex: 1;
}

header .header-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

header .header-buttons button {
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  background-color: rgb(121, 133, 150);;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

header .header-buttons button:hover {
  background-color: #374151;
}

#export-button {
  margin-left: auto;
}

#export-button:hover {
    background-color: #515c6c;;
  }

#page-title{
  margin: auto;
  color: #536072;
}

/* Main Content Styles */
main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.columns-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.column {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* First Column Styles */
#project-navigation {
  width: 180px;
}

#project-navigation h2 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #2d3748;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}

#project-navigation ul {
  list-style: none;
  margin-bottom: 20px;
}

#project-navigation ul li a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #4a5568;
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.3s ease;
  border-radius: 5px;
}

#project-navigation ul li a:hover,
#project-navigation ul li.selected {
  background-color: #7fd5f7;
  color: #2d3748;
  border-radius: 5px;
}

#project-navigation .filters {
  margin-bottom: 20px;
}

#project-navigation .filters h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #2d3748;
}

#search {
  height: 25px;
  width: 150px;
}

/* Styles for Checkbox Filters */
#project-navigation .filters form {
  display: flex;
  flex-direction: column;
  height: 200px;
  overflow: auto;

}

#project-navigation .filters form label {
  display: block;
  margin-bottom: 5px;
  color: #4a5568;
  font-weight: 500;
}

#project-navigation .filters form input[type="checkbox"] {
  margin-right: 8px;
  vertical-align: middle;
}

#project-navigation .filters .filter-group {
  margin-bottom: 15px;
}

#project-navigation .filters .filter-group label {
  margin-bottom: 5px;
  color: #4a5568;
  font-weight: 500;
  display: block; /* Ensure label takes full width */
}

#project-navigation .filters .filter-group label.filter-criteria{
    font-weight: bold;
}

#project-navigation .filters .filter-options {
  display: flex;
  flex-direction: column;
  margin-left: 0; /* Reset default left margin */
}

#project-navigation .filters .filter-options label {
  display: inline-flex; /* Use inline-flex for label and checkbox alignment */
  align-items: center; /* Vertically center checkbox and label */
  margin-right: 15px; /* Add some space between options */
  margin-bottom: 5px;
}
#project-navigation .filters .filter-options input[type="checkbox"] {
  margin-right: 5px;
}

#project-navigation .filter-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

#project-navigation .filter-buttons button {
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: white;
}

#project-navigation .filter-buttons button.apply {
  background-color: #798596;;
}

#project-navigation .filter-buttons button.apply:hover {
  background-color: #647081;
}

#project-navigation .filter-buttons button.reset {
  background-color: #cbd5e0;
  color: #4a5568;
}

#project-navigation .filter-buttons button.reset:hover {
  background-color: #a0aec0;
  color: #2d3748;
}

/* Second Column Styles */
#lessons-learned-list {
  flex: 1;
}

#lessons-learned-list h2 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #2d3748;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}

#lessons-learned-list ul {
  list-style: none;
}

#lessons-learned-list ul li {
  padding: 15px;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 5px;
  margin-bottom: 10px;
  background-color: #f7fafc;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

#lessons-learned-list ul li:hover,
#lessons-learned-list ul li.selected{
  background-color: #deeaf7;
}

#lessons-learned-list ul li:last-child {
  border-bottom: none;
}

/* Third Column Styles */
#lesson-details {
  flex: 2;
}

#lesson-details h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #2d3748;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}

#lesson-details p {
  margin-bottom: 15px;
  color: #4a5568;
  line-height: 1.7;
}

#lesson-details .case-description {
  background-color: #f7fafc;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  border: 1px solid #e2e8f0;
}

#lesson-details .case-description h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #2d3748;
  font-weight: 600;
}

#lesson-details .lesson-learned-section {
  margin-top: 20px;
}

#lesson-details .lesson-learned-section h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #2d3748;
  font-weight: 600;
}

/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 15px;
  }
  .columns-container {
    flex-direction: column;
  }
  .column {
    width: 100%;
  }

  header {
    flex-direction: column;
    text-align: center;
    padding: 20px 10px;
  }
  header .user-card {
    margin-right: 0;
  }
  header .header-buttons {
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 20px;
  }
  .columns-container {
    flex-direction: row;
    justify-content: space-between;
  }
  .column {
    width: 32%;
  }
  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 20px 30px;
  }
  header h1 {
    flex: 1;
    text-align: center;
  }
  header .header-buttons {
    justify-content: flex-start;
  }
}

/* Added to adjust spacing of header elements */
header .user-card {
  margin-right: 20px;
}

header h1 {
  margin-left: 20px;
  margin-right: 20px;
}

header .header-buttons {
  margin-left: 20px;
}


/* Reorder header buttons */
header {
  flex-direction: row; /* Ensure buttons are in a row */
  align-items: center; /* Vertically center items */
}

header .header-buttons {
  display: flex;
  margin-right: auto; /* Push buttons to the left */
  margin-left: 0; /* Reset left margin if any */
}

header h1 {
  flex: 1; /* Allow title to take up remaining space */
  text-align: center; /* Center the title */
}
