.container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg, 1.5rem);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-md, 1rem);
}

.headerLeft {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md, 1rem);
}

.backButton {
  padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
  background: transparent;
  border: 1px solid var(--color-border, #333);
  border-radius: var(--radius-md, 0.375rem);
  color: var(--color-text-secondary, #999);
  cursor: pointer;
  transition: all var(--transition-fast, 150ms);
}

.backButton:hover {
  border-color: var(--color-primary, #76b900);
  color: var(--color-text, #e8e8e8);
}

.taskInfo h2 {
  margin: 0;
  font-size: var(--text-2xl, 1.5rem);
}

.taskInfo p {
  margin: var(--spacing-xs, 0.25rem) 0 0;
  color: var(--color-text-secondary, #999);
}

.headerRight {
  display: flex;
  gap: var(--spacing-sm, 0.5rem);
}

.exportButton {
  padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
  background: transparent;
  border: 1px solid var(--color-border, #333);
  border-radius: var(--radius-md, 0.375rem);
  color: var(--color-text-secondary, #999);
  cursor: pointer;
  font-size: var(--text-sm, 0.875rem);
  transition: all var(--transition-fast, 150ms);
}

.exportButton:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-primary, #76b900);
  color: var(--color-text, #e8e8e8);
}

.summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md, 1rem);
}

.summaryCard {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs, 0.25rem);
  padding: var(--spacing-md, 1rem) var(--spacing-lg, 1.5rem);
  background: var(--color-bg-secondary, #242424);
  border: 1px solid var(--color-border, #333);
  border-radius: var(--radius-md, 0.375rem);
}

.summaryLabel {
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-text-secondary, #999);
}

.summaryValue {
  font-size: var(--text-2xl, 1.5rem);
  font-weight: 600;
}

.results {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md, 1rem);
}

.resultCard {
  background: var(--color-bg-secondary, #242424);
  border: 1px solid var(--color-border, #333);
  border-radius: var(--radius-lg, 0.5rem);
  overflow: hidden;
}

.resultHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md, 1rem) var(--spacing-lg, 1.5rem);
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--color-border, #333);
}

.resultTitle {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm, 0.5rem);
}

.dimensionIndicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dimensionLabel {
  font-weight: 600;
  font-size: var(--text-lg, 1.125rem);
}

.datasetName {
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-text-secondary, #999);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-sm, 0.25rem);
}

.metricsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--spacing-md, 1rem);
  padding: var(--spacing-lg, 1.5rem);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs, 0.25rem);
}

.metricLabel {
  font-size: var(--text-xs, 0.75rem);
  color: var(--color-text-secondary, #999);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metricValue {
  font-size: var(--text-xl, 1.25rem);
  font-weight: 600;
}

.details {
  padding: 0 var(--spacing-lg, 1.5rem) var(--spacing-lg, 1.5rem);
}

.details h4 {
  margin: 0 0 var(--spacing-sm, 0.5rem);
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-text-secondary, #999);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparisonGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md, 1rem);
}

.comparisonItem {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs, 0.25rem);
  padding: var(--spacing-md, 1rem);
  background: var(--color-bg, #1a1a1a);
  border: 1px solid var(--color-border, #333);
  border-radius: var(--radius-md, 0.375rem);
  text-align: center;
}

.comparisonLabel {
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-text-secondary, #999);
}

.comparisonValue {
  font-size: var(--text-xl, 1.25rem);
  font-weight: 600;
}

.confusionMatrix {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.matrixRow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.matrixCell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md, 1rem);
  border-radius: var(--radius-sm, 0.25rem);
}

.matrixLabel {
  font-size: var(--text-xs, 0.75rem);
  color: var(--color-text-secondary, #999);
}

.matrixValue {
  font-size: var(--text-2xl, 1.5rem);
  font-weight: 600;
}

.efficiencyBanner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--spacing-md, 1rem);
  padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
  background: rgba(118, 185, 0, 0.1);
  border: 1px solid rgba(118, 185, 0, 0.3);
  border-radius: var(--radius-md, 0.375rem);
}

.efficiencyLabel {
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-text-secondary, #999);
}

.efficiencyValue {
  font-weight: 600;
  color: var(--color-primary, #76b900);
}

.metadata {
  background: var(--color-bg-secondary, #242424);
  border: 1px solid var(--color-border, #333);
  border-radius: var(--radius-lg, 0.5rem);
  padding: var(--spacing-lg, 1.5rem);
}

.metadata h3 {
  margin: 0 0 var(--spacing-md, 1rem);
  font-size: var(--text-lg, 1.125rem);
}

.metadataList {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--spacing-xs, 0.25rem) var(--spacing-lg, 1.5rem);
}

.metadataList dt {
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-text-secondary, #999);
}

.metadataList dd {
  margin: 0;
  font-family: var(--font-mono, monospace);
  font-size: var(--text-sm, 0.875rem);
}

/* Dimension Info Box */
.dimensionInfoBox {
  margin-top: var(--spacing-md, 1rem);
  padding: var(--spacing-lg, 1.5rem);
  background: linear-gradient(135deg, rgba(118, 185, 0, 0.05) 0%, rgba(118, 185, 0, 0.02) 100%);
  border: 1px solid rgba(118, 185, 0, 0.2);
  border-radius: var(--radius-md, 0.375rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg, 1.5rem);
}

.infoItem {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md, 1rem);
  font-size: var(--text-sm, 0.875rem);
  line-height: 1.6;
}

.infoIcon {
  font-size: var(--text-xl, 1.25rem);
  flex-shrink: 0;
  margin-top: 2px;
}

.infoText {
  color: var(--color-text, #e8e8e8);
  flex: 1;
  word-break: break-word;
}

.datasetId {
  display: block;
  margin-top: var(--spacing-xs, 0.25rem);
  font-family: var(--font-mono, monospace);
  color: var(--color-text-secondary, #999);
  font-size: var(--text-xs, 0.75rem);
}

/* Test Case Section */
.testCaseSection {
  margin-top: var(--spacing-md, 1rem);
  border-top: 1px solid var(--color-border, #333);
  padding-top: var(--spacing-md, 1rem);
}

.toggleDetailsButton {
  width: 100%;
  padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border, #333);
  border-radius: var(--radius-md, 0.375rem);
  color: var(--color-text, #e8e8e8);
  font-size: var(--text-sm, 0.875rem);
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast, 150ms);
}

.toggleDetailsButton:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-primary, #76b900);
}

.testCaseList {
  margin-top: var(--spacing-md, 1rem);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm, 0.5rem);
  max-height: 600px;
  overflow-y: auto;
}

.testCase {
  padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--color-border, #333);
  border-radius: var(--radius-sm, 0.25rem);
  font-size: var(--text-sm, 0.875rem);
}

.testCaseCorrect {
  border-left-color: #22c55e;
}

.testCaseIncorrect {
  border-left-color: #ef4444;
}

.testCaseSkip {
  border-left-color: #f59e0b;
}

.testCaseHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xs, 0.25rem);
}

.testCaseIndex {
  font-family: var(--font-mono, monospace);
  font-size: var(--text-xs, 0.75rem);
  color: var(--color-text-secondary, #999);
}

.testCaseStatus {
  font-weight: 600;
  font-size: var(--text-base, 1rem);
}

.statusCorrect {
  color: #22c55e;
}

.statusIncorrect {
  color: #ef4444;
}

.statusSkip {
  color: #f59e0b;
}

.testCaseContent {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs, 0.25rem);
}

.testCaseQuery {
  color: var(--color-text, #e8e8e8);
}

.testCaseComparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm, 0.5rem);
  margin-top: var(--spacing-xs, 0.25rem);
}

.testCaseExpected,
.testCaseActual {
  padding: var(--spacing-xs, 0.25rem);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm, 0.25rem);
}

.testCaseExpected code,
.testCaseActual code {
  font-family: var(--font-mono, monospace);
  font-size: var(--text-xs, 0.75rem);
  color: var(--color-text-secondary, #999);
}

.testCaseReason {
  margin-top: var(--spacing-xs, 0.25rem);
  padding: var(--spacing-xs, 0.25rem);
  background: rgba(245, 158, 11, 0.1);
  border-radius: var(--radius-sm, 0.25rem);
  color: #f59e0b;
  font-size: var(--text-xs, 0.75rem);
}

.testCaseTruncated {
  padding: var(--spacing-sm, 0.5rem);
  text-align: center;
  color: var(--color-text-secondary, #999);
  font-size: var(--text-sm, 0.875rem);
  font-style: italic;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--spacing-md, 1rem);
  padding: var(--spacing-sm, 0.5rem);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md, 0.375rem);
}

.paginationButton {
  padding: var(--spacing-xs, 0.25rem) var(--spacing-md, 1rem);
  background: transparent;
  border: 1px solid var(--color-border, #333);
  border-radius: var(--radius-sm, 0.25rem);
  color: var(--color-text, #e8e8e8);
  font-size: var(--text-sm, 0.875rem);
  cursor: pointer;
  transition: all var(--transition-fast, 150ms);
}

.paginationButton:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-primary, #76b900);
}

.paginationButton:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.paginationInfo {
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-text-secondary, #999);
}

.paginationButtons {
  display: flex;
  gap: var(--spacing-sm, 0.5rem);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: var(--spacing-md, 1rem);
  }

  .headerLeft {
    flex-direction: column;
    width: 100%;
  }

  .headerRight {
    width: 100%;
    justify-content: flex-start;
  }

  .summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .dimensionInfoBox {
    grid-template-columns: 1fr;
    gap: var(--spacing-md, 1rem);
  }

  .comparisonGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metricsGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testCaseComparison {
    grid-template-columns: 1fr;
  }

  .pagination {
    flex-direction: column;
    gap: var(--spacing-sm, 0.5rem);
  }

  .paginationInfo {
    order: -1;
  }

  .paginationButtons {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .comparisonGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metricsGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .taskInfo h2 {
    font-size: var(--text-xl, 1.25rem);
  }

  .backButton {
    width: 100%;
  }

  .exportButton {
    width: 100%;
  }
}
