* {
  box-sizing: border-box;
}
body {
  font-family: system-ui, 'Segoe UI', sans-serif;
  background: #f4f4f9;
  margin: 0;
  padding: 20px;
  color: #333;
}
.container {
  max-width: 850px;
  margin: 0 auto;
  background: #f4f4f9;
  border-radius: 8px;
}
h2 {
  margin-top: 0;
}
.dataset-status {
  background: #e2e8f0;
  padding: 8px;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 13px;
}
.filters-panel {
  background: #fff;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
}
.filters-panel h4 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #4a5568;
}
.filters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  font-size: 13px;
}
.filter-group {
  display: flex;
  flex-direction: column;
}
.filter-group label {
  font-weight: bold;
  margin-bottom: 4px;
}
.checkbox-scroll {
  max-height: 100px;
  overflow-y: auto;
  border: 1px solid #cbd5e0;
  padding: 5px;
  border-radius: 4px;
  background: #fafafa;
}
.inline-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 100px;
}
.inline-scroll label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: normal;
  white-space: nowrap;
}
.full-width {
  grid-column: span 2;
}
button {
  background: #e53e3e;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s ease;
}
button:hover {
  background: #c53030;
}
button:disabled {
  background: #a0aec0;
  cursor: not-allowed;
}
.result-box {
  margin-top: 20px;
  background: #fff;
  padding: 15px;
  border-radius: 4px;
  border: 1px solid #cbd5e0;
  min-height: 180px;
  position: relative;
}
.result-box h3 {
  margin-top: 0;
}
.result-box p {
  margin: 8px 0;
}
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  backdrop-filter: blur(2px);
}
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #e53e3e;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 0.6s linear infinite;
  margin-bottom: 10px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.loading-overlay span {
  font-weight: bold;
  color: #e53e3e;
  letter-spacing: 1px;
  animation: pulse 0.3s infinite alternate;
}
@keyframes pulse {
  0% { opacity: 0.4; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1.02); }
}