.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* status */
.live-status-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
}

.live-text {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

/* performance summary cards */
.metrics-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.metric-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  width: 240px;

  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.metric-card h3 {
  margin-bottom: 16px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text);
}

.metric-number {
  font-size: 42px;
  font-weight: 800;
  margin: 0;

  color: var(--text);
}

.error-number {
  color: var(--red);
}

.metric-change {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

.increase {
  color: var(--red);
}

.decrease {
  color: var(--amber);
}

/* graphs */
.charts-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.chart-card {
  flex: 1;
  min-width: 320px;

  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;

  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.chart-card h3 {
  margin-bottom: 20px;

  font-family: var(--sans);
  color: var(--text);
}

/* bar chart */
.bar-chart {
  height: 180px;

  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.bar {
  flex: 1;

  background: linear-gradient(to top, var(--orange), var(--amber));

  border-radius: 8px 8px 0 0;

  transition:
    height 0.4s ease,
    background-color 0.25s ease;
}

/* recent errors */
.recent-errors-logs {
  flex: 1;
  min-width: 560px;

  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;

  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.recent-errors-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 16px;
}

.recent-errors h3 {
  font-family: var(--sans);
  color: var(--text);
}

#view-all-errors {
  font-family: var(--sans);
  font-size: 14px;
  cursor: pointer;
}

/* recent errors table */
.recent-errors-table {
  width: 100%;
  color: var(--text);

  border-top: 2px solid var(--border);
  padding-top: 10px;

  border-collapse: separate;
  border-spacing: 0 20px;

  th:nth-child(1),
  td:nth-child(1) {
    width: 10%;
  }
  th:nth-child(2),
  td:nth-child(2) {
    width: 10%;
  }
  th:nth-child(3),
  td:nth-child(3) {
    width: 40%;
  }
  th:nth-child(4),
  td:nth-child(4) {
    width: 30%;
  }
  th:nth-child(5),
  td:nth-child(5) {
    width: 10%;
  }
}

.recent-errors-table th {
  text-decoration: underline;
}

.recent-errors-table td {
  font-weight: bold;
  text-align: center;
}

.recent-error-level-dot {
  display: inline-block;
  width: 32px;
  height: 16px;
  border: 2px solid var(--border);
  border-radius: 999px;
}

/* error level colors */
.recent-error-level-dot.error {
  background: var(--red);
}
.recent-error-level-dot.warn {
  background: var(--amber);
}
.recent-error-level-dot.info {
  background: var(--green);
}

.metric-description {
  margin-top: 10px;

  color: var(--text);

  font-size: 14px;
  line-height: 1.3;
}

/* performance metric text colors */
.metric-lcp {
  color: var(--orange);
}

.metric-fcp {
  color: var(--amber);
}

.metric-cls {
  color: var(--green);
}
