/* Main styles */
body {
  background-color: #f8f9fa;
  color: #212529;
}

.card {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: #495057;
}

.display-4 {
  font-size: 2.5rem;
  font-weight: 500;
}

/* Navigation */
.navbar-brand {
  font-weight: 600;
}

/* Table styles */
.table th {
  background-color: #f1f3f5;
  font-weight: 500;
}

.table-responsive {
  overflow-x: auto;
}

/* Request details */
.request-details-section,
.worker-details-section,
.model-details-section {
  background-color: #f8f9fa;
  border-radius: 0.25rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.request-details-section h6,
.worker-details-section h6,
.model-details-section h6 {
  color: #495057;
  font-weight: 500;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.response-message {
  background-color: #f1f3f5;
  border-left: 3px solid #0d6efd;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 0.25rem;
}

.prompt-text {
  white-space: pre-wrap;
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 0.25rem;
  font-family: monospace;
}

.response-text {
  white-space: pre-wrap;
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 0.25rem;
  font-family: monospace;
}

/* Stats cards */
.stats-card {
  text-align: center;
  padding: 1rem;
}

.stats-card .value {
  font-size: 2rem;
  font-weight: 600;
}

.stats-card .label {
  color: #6c757d;
  font-size: 0.9rem;
}

/* Metrics */
.metric-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem;
  border-bottom: 1px solid #dee2e6;
}

.metric-item:last-child {
  border-bottom: none;
}

.metric-label {
  color: #495057;
}

.metric-value {
  font-weight: 500;
}

/* Truncate long text */
.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* Loading indicator */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Auto refresh toggle */
.auto-refresh {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.auto-refresh label {
  margin-left: 0.5rem;
  margin-bottom: 0;
}