.uptime-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.uptime-dashboard h1 {
  margin-bottom: 0.25rem;
}

.target-url {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.site-tabs,
.range-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.site-tabs a,
.range-tabs a {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
  color: #374151;
  background: #f3f4f6;
  border: 1px solid transparent;
}

.site-tabs a:hover,
.range-tabs a:hover {
  background: #e5e7eb;
}

.site-tabs a.active,
.range-tabs a.active {
  background: #3b82f6;
  color: white;
  font-weight: 500;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.summary-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.summary-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.summary-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

.summary-value .unit {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
}

.summary-meta {
  font-size: 0.875rem;
  color: #4b5563;
  font-weight: 500;
  margin-top: 0.25rem;
}

.status-up .summary-value {
  color: #059669;
}

.status-down .summary-value {
  color: #dc2626;
}

.status-unknown .summary-value {
  color: #f59e0b;
}

.detailed-table td.status-unknown {
  color: #f59e0b;
  font-weight: 600;
}

.section-title {
  width: 100%;
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
}

.table-note {
  width: 100%;
  margin: -0.25rem 0 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.check-table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.check-table-heading .section-title {
  width: auto;
  margin: 0;
}

.csv-download {
  flex: 0 0 auto;
  padding: 0.5rem 0.75rem;
}

.latest-detailed-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.latest-detailed-meta {
  color: #6b7280;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.latest-detailed-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.latest-detailed-metrics .metric {
  text-align: center;
}

.latest-detailed-metrics .metric-label {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.latest-detailed-metrics .metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

.latest-detailed-metrics .unit {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
}

.chart-wrapper {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  height: 430px;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.chart-canvas {
  position: relative;
  flex: 1;
  min-height: 0;
}

.no-chart-data {
  margin: 0.5rem 0 0;
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}

.availability-strip {
  display: flex;
  width: 100%;
  height: 12px;
  margin-top: 0.75rem;
  overflow: hidden;
  border-radius: 0.25rem;
  background: #d1d5db;
}

.availability-segment {
  flex: 1 1 0;
  min-width: 1px;
}

.availability-up {
  background: #10b981;
}

.availability-down {
  background: #ef4444;
}

.availability-unknown {
  background: #9ca3af;
}

.availability-legend {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 0.5rem;
  color: #6b7280;
  font-size: 0.75rem;
}

.availability-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.availability-legend i {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 0.125rem;
}

@media (max-width: 640px) {
  .chart-wrapper {
    height: 360px;
    padding: 0.75rem;
  }

  .availability-legend {
    justify-content: flex-start;
    gap: 0.75rem;
  }
}

.detailed-table-wrapper {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.detailed-table-wrapper h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.detailed-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.detailed-table th,
.detailed-table td {
  padding: 0.625rem 0.75rem;
  text-align: right;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
}

.detailed-table th:first-child,
.detailed-table td:first-child {
  text-align: left;
}

.detailed-table th {
  color: #6b7280;
  font-weight: 600;
}

.detailed-table td.status-up {
  color: #059669;
  font-weight: 600;
}

.detailed-table td.status-down {
  color: #dc2626;
  font-weight: 600;
}
