body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 20px;
  background-color: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #eee;
}

h1 {
  color: #333;
  margin-bottom: 10px;
}

code {
  background-color: #f4f4f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Monaco', 'Menlo', monospace;
}

.stats {
  margin: 20px 0;
  padding: 15px;
  background-color: #f0f8f0;
  border-radius: 5px;
  border: 1px solid #90ee90;
}

/* Collapsible sections using CSS only */
.details {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
}

.summary {
  cursor: pointer;
  font-weight: bold;
  padding: 8px;
  background-color: #e9e9e9;
  border-radius: 3px;
  margin: -10px -10px 10px -10px;
  transition: background-color 0.2s;
  list-style: none;
  display: flex;
  align-items: center;
}

.summary:hover {
  background-color: #d9d9d9;
}

.summary::before {
  content: '▶';
  margin-right: 8px;
  transition: transform 0.2s;
}

.details[open] .summary::before {
  transform: rotate(90deg);
}

.details[open] .summary {
  background-color: #d0d0d0;
}

.dataset-item {
  margin: 5px 0;
  padding: 8px;
  background-color: white;
  border-left: 3px solid #007acc;
  padding-left: 15px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dataset-name {
  font-weight: 500;
  color: #333;
}

.dataset-links {
  display: flex;
  gap: 10px;
}

.dataset-links a {
  text-decoration: none;
  color: #007acc;
  font-weight: 500;
  padding: 4px 8px;
  border: 1px solid #007acc;
  border-radius: 3px;
  transition: all 0.2s;
}

.dataset-links a:hover {
  background-color: #007acc;
  color: white;
}

.year-section {
  margin: 20px 0;
  border: 2px solid #333;
  border-radius: 8px;
  background-color: #f0f8ff;
}

.president-section {
  margin: 10px 0;
  border: 1px solid #666;
  border-radius: 5px;
  background-color: #f5f5f5;
}

.ministry-section {
  margin: 8px 0;
  border: 1px solid #999;
  border-radius: 3px;
  background-color: #fafafa;
}

.department-section {
  margin: 5px 0;
  border: 1px solid #bbb;
  border-radius: 3px;
  background-color: #fefefe;
}

.sub-section {
  margin: 3px 0;
  border: 1px solid #ccc;
  border-radius: 2px;
  background-color: #fdfdfd;
}

.download-btn {
  display: inline-block;
  margin-left: 10px;
  padding: 4px 8px;
  background-color: #28a745;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: 500;
  transition: background-color 0.2s;
}

.download-btn:hover {
  background-color: #218838;
  color: white;
  text-decoration: none;
}

.download-link {
  display: inline-block;
  padding: 6px 12px;
  background-color: #6c757d;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.2s;
  margin-right: 8px;
}

.download-link:hover {
  background-color: #5a6268;
  color: white;
  text-decoration: none;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 0;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 20px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  color: #333;
}

.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close:hover {
  color: #000;
}

.modal-body {
  padding: 0;
  overflow: auto;
  flex: 1;
}

.modal-body pre {
  margin: 0;
  padding: 20px;
  background-color: #f8f9fa;
  border: none;
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 60vh;
  overflow: auto;
}

.modal-footer {
  padding: 15px 20px;
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  border-radius: 0 0 8px 8px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.copy-btn, .download-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.copy-btn {
  background-color: #17a2b8;
  color: white;
}

.copy-btn:hover {
  background-color: #138496;
}

.download-btn {
  background-color: #28a745;
  color: white;
}

.download-btn:hover {
  background-color: #218838;
}

footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid #eee;
  text-align: center;
  color: #666;
}
