body {
  font-family: 'Inter', sans-serif;
}

/* Time range button active state */
.time-range-btn.active {
  background-color: #0e141b !important;
  color: #ffffff !important;
}


/* Ensure charts maintain aspect ratio in table cells */
.chart-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 200px;
  max-height: 200px;
}

/* Enhanced responsive chart sizing */
@media (max-width: 1200px) {
  .chart-img, td .chart-img {
    max-height: 180px;
  }
  
  .chart-container {
    min-height: 180px;
    max-height: 180px;
  }
}

@media (max-width: 992px) {
  .chart-img, td .chart-img {
    max-height: 160px;
  }
  
  .chart-container {
    min-height: 160px;
    max-height: 160px;
  }
}

@media (max-width: 768px) {
  .chart-img, td .chart-img {
    max-height: 140px;
  }
  
  .chart-container {
    min-height: 140px;
    max-height: 140px;
  }
  
  /* Adjust table row heights for tablet */
  .table-ttft-column, .table-latency-column, .table-failures-column, .table-model-column {
    height: 160px !important;
  }
  
  /* Improve touch targets on mobile */
  .time-range-btn {
    padding: 12px 16px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 600px) {
  .chart-img, td .chart-img {
    max-height: 120px;
  }
  
  .chart-container {
    min-height: 120px;
    max-height: 120px;
  }
  
  /* Reduce table row height for smaller tablets */
  .table-ttft-column, .table-latency-column, .table-failures-column, .table-model-column {
    height: 140px !important;
  }
}

@media (max-width: 480px) {
  .chart-img, td .chart-img {
    max-height: 100px;
  }
  
  .chart-container {
    min-height: 100px;
    max-height: 100px;
  }
  
  /* Further reduce table row height for mobile */
  .table-ttft-column, .table-latency-column, .table-failures-column, .table-model-column {
    height: 120px !important;
  }
  
  /* Mobile navigation adjustments */
  .time-range-btn {
    padding: 10px 12px !important;
    font-size: 12px !important;
    min-width: 60px !important;
  }
  
  /* Compact model names on mobile */
  .table-model-column {
    line-height: 1.2 !important;
  }
}

@media (max-width: 375px) {
  .chart-img, td .chart-img {
    max-height: 80px;
  }
  
  .chart-container {
    min-height: 80px;
    max-height: 80px;
  }
  
  /* Extra small mobile adjustments */
  .table-ttft-column, .table-latency-column, .table-failures-column, .table-model-column {
    height: 100px !important;
  }
  
  /* Very compact navigation for small phones */
  .time-range-btn {
    padding: 8px 10px !important;
    font-size: 11px !important;
  }
}



/* Chart image styling - consolidated */
.chart-img, td .chart-img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  display: block;
  margin-top: 0;
  transition: opacity 0.2s ease-in-out;
}

.chart-img:hover {
  opacity: 0.8;
  cursor: pointer;
}

/* Ensure table cells have proper vertical alignment */
.table-ttft-column, .table-latency-column, .table-failures-column {
  vertical-align: middle;
}

/* Chart container within table cells */
td > div {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}



.panel {
  background-color: #FFF;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 2px;
  margin-bottom: 2px;
}

.last-updated {
  text-align: center;
    font-size: 0.8em;
}