body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #f1f1f1;
  color: #333;
}

.parent-container {
  max-width: 700px;
  margin: 40px auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

h1 {
  margin-top: 0;
}

.intro {
  font-size: 0.95rem;
  color: #555;
}

.login-box {
  margin-top: 20px;
  padding: 20px;
  background: #fafafa;
  border-radius: 10px;
}

.login-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 18px;
  background: #4466aa;
  color: white;
  text-decoration: none;
  border-radius: 20px;
}

.login-btn:hover {
  background: #365b99;
}

.note {
  font-size: 0.85rem;
  color: #777;
  margin-top: 8px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.dash-card {
  padding: 16px;
  background: #fafafa;
  border-radius: 10px;
  text-align: center;
}

.dash-card h2 {
  margin-top: 0;
}

.dash-card button {
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 20px;
  border: none;

  background: #2f5bff;     /* calmer blue */
  color: #fbfaff;

  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;

  transition: background 0.2s ease, transform 0.1s ease;
}

.dash-card button:hover {
  background: #466eff;
}

.dash-card button:active {
  transform: scale(0.97);
}

.back-link {
  display: block;
  margin-top: 30px;
  text-align: center;
  color: #444;
  text-decoration: none;
  font-size: 0.9rem;
}

.parent-section {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 0 16px;
}

.parent-book-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.parent-book {
  display: flex;
  gap: 16px;
  background: #fff;
  padding: 14px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.parent-book img {
  width: 120px;
  height: auto;
  border-radius: 6px;
}

.parent-book-info h3 {
  margin: 0 0 6px;
}

.parent-book-info p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #555;
}

.purchase-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #ffcc66;
  border-radius: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

.purchase-btn:hover {
  background: #ffbb44;
}

.dash-link {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 20px;
  background: #ffcc66;
  color: #333;
  text-decoration: none;
  font-weight: 600;
}

.dash-link:hover {
  background: #ffbb44;
}

.hidden {
  display: none;
}

.parent-section {
  margin-top: 40px;
}

.dash-section {
  display: none;
  margin-top: 24px;
}

.dash-section:target {
  display: block;
}
