/* result.css */

body {
  font-family: Arial, sans-serif;
  background-color: #fafafa;
  margin: 0;
  padding: 0 20px 40px;
  color: #333;
}

h1, h2 {
  color: #5d3878;
  margin-bottom: 10px;
}

.summary {
  background-color: #f5edfa;
  border: 2px solid #5d3878;
  padding: 15px 20px;
  margin-bottom: 25px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 16px;
}

.collapsible {
  background-color: #5d3878;
  color: white;
  cursor: pointer;
  padding: 14px 20px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 18px;
  border-radius: 6px;
  margin-bottom: 10px;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.collapsible:after {
  content: '\25BC'; /* Down arrow */
  font-size: 14px;
  transition: transform 0.3s ease;
}

.collapsible.active:after {
  transform: rotate(180deg); /* Up arrow */
}

.content {
  padding: 0 20px 15px 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 6px 6px;
  background-color: white;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 12px;
}

th, td {
  text-align: left;
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
}

th {
  background-color: #5d3878;
  color: white;
  position: sticky;
  top: 0;
  z-index: 2;
  cursor: pointer;
}

tr:hover {
  background-color: #f0e6fa;
}

.button-group {
  margin: 25px 0;
  display: flex;
  gap: 12px;
}

button, .download-link {
  background-color: #5d3878;
  border: none;
  color: white;
  padding: 12px 20px;
  font-size: 15px;
  cursor: pointer;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  user-select: none;
  transition: background-color 0.25s ease;
}

button:hover, .download-link:hover {
  background-color: #7a52a1;
}

button:focus {
  outline: 3px solid #a78cd4;
}

@media screen and (max-width: 768px) {
  body {
    padding: 10px;
  }
  th, td {
    font-size: 12px;
    padding: 8px 10px;
  }
  button, .download-link {
    font-size: 13px;
    padding: 10px 15px;
  }
}
.collapsible {
  background-color: #eee;
  color: #333;
  cursor: pointer;
  padding: 10px;
  width: 100%;
  border: none;
  text-align: left;
  font-size: 16px;
  margin-top: 10px;
}

.collapsible.active, .collapsible:hover {
  background-color: #ccc;
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
  background-color: #f9f9f9;
  padding: 0 10px;
}

/* Filter/search input box */
.filter-box {
  margin: 12px 0;
  padding: 8px 12px;
  width: 100%;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Sort icons on column headers */
th::after {
  content: " \21C5";
  font-size: 10px;
  color: #ccc;
  padding-left: 5px;
}

th.asc::after {
  content: " \25B2";
  font-size: 12px;
}

th.desc::after {
  content: "\25BC";
  font-size: 12px;
}

/* Optional: Give a little spacing inside collapsible content */
.content {
  padding-top: 12px;
}

