body {
  font-family: "Open Sans", sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f4f4f4;
}

.container {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgb(0 0 0 / 30%);
  width: 40%;
  height: auto;
  max-height: 90vh;
  overflow: auto; /* Enable scrolling if content exceeds viewport */
}

h1 {
  text-align: center;
  font-size: 25px;
  font-weight: bold;
  margin-bottom: 20px;
}

h2 {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
}

h3 {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
}

input,
select {
  margin-bottom: 20px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 80%;
  box-sizing: border-box;
}

.input-group {
  display: flex;
  flex-wrap: wrap;
}

.input-wrapper {
  flex: 1 0 calc((100% - 40px) / 3);
  margin-bottom: 5px;
  margin-right: 20px;
}

.input-wrapper:last-child {
  margin-right: 0;
}

.input-wrapper label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.input-wrapper input {
  width: 100%;
}

label {
  text-align: left;
  width: 80%;
  margin-bottom: 5px;
  font-weight: bold;
}

button {
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 80%;
}

button:hover {
  background-color: #0056b3;
}

#resultsBenchmark,
#resultsPrecision,
#resultsImprovement {
  padding: 10px 20px;
  width: 80%;
  margin: 20px auto;
  text-align: justify;
  background-color: #f9f9f9;
  border-radius: 5px;
}

.resultsBenchmark li {
  list-style-type: disc;
  margin-bottom: 5px;
}

#chartContainerBenchmark,
#chartContainerPrecision,
#chartContainerImprovement {
  width: 100%;
  height: 400px;
  margin-top: 20px;
  /* Keep chart within container when scrolling */
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: #fff;
}

#source {
  text-align: center;
  margin: 20px auto;
}

.styled-table {
  border-collapse: collapse;
  margin: 5px 0 25px;
  font-size: 0.9em;
  font-family: sans-serif;
  min-width: 400px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.styled-table thead tr {
  background-color: #007bff;
  color: #ffffff;
  text-align: left;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
}

.styled-table tbody tr {
  border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
  background-color: #f3f3f3;
}

.styled-table tbody tr:last-of-type {
  border-bottom: 2px solid #007bff;
}
