body {
  font-family: Arial, sans-serif;
  margin: 20px;
  line-height: 1.4;
}

h1, h2 {
  color: #333;
  margin-bottom: 15px;
}

h1 {
  font-size: 2em;
  border-bottom: 2px solid #333;
  padding-bottom: 10px;
}

h2 {
  font-size: 1.5em;
  margin-top: 30px;
}

table {
  border-collapse: collapse;
  margin-top: 10px;
  width: 100%;
  font-size: 14px;
}

th, td {
  padding: 8px;
  text-align: center;
  border: 1px solid #ccc;
}

th {
  background-color: #f2f2f2;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

th:hover {
  background-color: #e8e8e8;
}

/* Sort indicators */
th.asc::after { content: " ▲"; }
th.desc::after { content: " ▼"; }

/* Table row hover effect */
tbody tr:hover {
  background-color: #f9f9f9;
}

/* Links styling */
a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #004499;
}

/* Form elements */
select {
  margin: 5px;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

label {
  font-weight: bold;
  margin-right: 5px;
}

/* Summary section */
#summary {
  background-color: #f0f0f0;
  padding: 15px;
  margin: 20px 0;
  border-radius: 5px;
  border-left: 4px solid #333;
}

#summary p {
  margin: 5px 0;
  font-weight: bold;
}

/* Buttons */
.back-button {
  margin: 20px 0;
  padding: 10px 20px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
}

.back-button:hover {
  background-color: #e0e0e0;
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    margin: 10px;
  }
  
  table {
    font-size: 12px;
  }
  
  th, td {
    padding: 4px;
  }
  
  h1 {
    font-size: 1.5em;
  }
  
  #summary {
    padding: 10px;
  }
}

/* Error messages */
.error {
  background-color: #ffebee;
  color: #c62828;
  padding: 15px;
  border-radius: 5px;
  border-left: 4px solid #c62828;
  margin: 20px 0;
}
