/* ─── Report Page Styles ──────────────────────────────────────────────────── */

.report-selector {
  margin-bottom: 28px;
  animation: fadeIn 0.4s ease;
}

.report-selector-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.report-select {
  width: 100%;
  max-width: 400px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.report-select:hover,
.report-select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

/* ─── Summary Cards ──────────────────────────────────────────────────────── */
.report-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
  animation: fadeSlideUp 0.4s ease both;
}

.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow var(--transition), transform 0.3s ease;
}

.summary-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.summary-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.summary-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.summary-card-value.success { color: var(--success); }
.summary-card-value.warning { color: var(--warning); }
.summary-card-value.danger { color: var(--error); }

.summary-card-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── Section ────────────────────────────────────────────────────────────── */
.report-section {
  margin-bottom: 28px;
  animation: fadeSlideUp 0.5s ease both;
}

.report-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-left: 4px;
}

/* ─── Response Time Grid ─────────────────────────────────────────────────── */
.response-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.response-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.response-card-location {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
  text-transform: capitalize;
}

.response-card-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

/* ─── History Chart Card ─────────────────────────────────────────────────── */
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* ─── Daily Table ────────────────────────────────────────────────────────── */
.daily-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.daily-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.daily-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.daily-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.daily-table tr:last-child td {
  border-bottom: none;
}

.daily-table tr {
  transition: background var(--transition);
}

.daily-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.uptime-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.uptime-badge.good {
  background: rgba(34,197,94,0.1);
  color: var(--success);
}

.uptime-badge.warning {
  background: rgba(245,158,11,0.1);
  color: var(--warning);
}

.uptime-badge.bad {
  background: rgba(239,68,68,0.1);
  color: var(--error);
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .report-summary {
    grid-template-columns: 1fr 1fr;
  }

  .daily-table {
    font-size: 0.78rem;
  }

  .daily-table th,
  .daily-table td {
    padding: 8px 10px;
  }
}
