/* ============================================================
   DOM 02.08 — Putting it together: the class dashboard
   ============================================================
   No new CSS in this example — the lesson is in 08-class-dashboard.js.
   ============================================================ */

/* ------------------------------------------------------------
   Only to make it look nice — not part of this lesson
   ------------------------------------------------------------ */
body {
  font-family: Arial, sans-serif;
  background-color: #FCFCFC;
  padding: 24px 32px;
}

h1 {
  margin-top: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
  border: 1px solid #E4E4E4;
  border-radius: 12px;
  padding: 14px 18px;
}

.stat-value {
  font-size: 30px;
  font-weight: bold;
  color: #2D62EF;
}

.stat-label {
  color: #525252;
  font-size: 14px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background-color: #FFFFFF;
  border: 1px solid #E4E4E4;
  border-radius: 12px;
  padding: 4px 20px 8px;
}

.card p {
  margin: 6px 0;
}

/* the same attribute selector the JS uses */
.card[data-paid="no"] .fee {
  color: #E54B4F;
  font-weight: bold;
}

@media (max-width: 760px) {
  .stats,
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}
