body {
  font-family: Arial, sans-serif;
  background-color: #fafafa;
  margin: 0;
  padding: 0;
}

.header {
  background-color: #f5edfa;
  padding: 30px 80px;
  border-bottom: 3px solid #5d3878;
}

.header h1 {
  margin: 0;
  font-size: 1.8rem;
  color: #3a1c61;
}

.main-content {
  padding: 20px 40px;
}

h2 {
  color: #3a1c61;
  margin-bottom: 10px;
}

.summary-box {
  background-color: #f2e9fc;
  border-left: 5px solid #5d3878;
  padding: 15px;
  margin-bottom: 20px;
}

.result-section {
  margin-bottom: 40px;
}

.toggle-btn {
  background-color: #5d3878;
  color: white;
  padding: 10px 20px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  margin-bottom: 10px;
  border-radius: 5px;
}

.toggle-btn:hover {
  background-color: #7b52a4;
}

.table-wrapper {
  overflow-x: auto;
}

.result-table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 20px;
  font-size: 14px;
}

.result-table th, .result-table td {
  border: 1px solid #ccc;
  padding: 8px 10px;
  text-align: center;
}

.result-table th {
  background-color: #e9dff7;
  position: sticky;
  top: 0;
  z-index: 2;
}

.result-table tr:nth-child(even) {
  background-color: #f8f8f8;
}

.download-links {
  margin-bottom: 30px;
}

.download-links a {
  margin-right: 15px;
  padding: 8px 12px;
  background-color: #3a1c61;
  color: white;
  text-decoration: none;
  font-size: 13px;
  border-radius: 4px;
  font-weight: bold;
}

.download-links a:hover {
  background-color: #7b52a4;
}

.back-button {
  background-color: white;
  color: #5d3878;
  font-weight: bold;
  padding: 10px 20px;
  border: 2px solid #5d3878;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
}

.back-button:hover {
  background-color: #f7f0fc;
}

.tooltip {
  display: inline-block;
  position: relative;
  cursor: help;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 180px;
  background-color: #666;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 5px;
  font-size: 11px;
  position: absolute;
  z-index: 1;
  top: 130%;
  left: 50%;
  margin-left: -90px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.footer {
  text-align: center;
  padding: 20px 0;
  background-color: #eee;
  border-top: 1px solid #ccc;
  margin-top: 30px;
}
