body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #121212;
  color: #eee;
  margin: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 900px;
  margin-bottom: 1rem;
  align-items: center;
}

button {
  background-color: #d4af37; /* royal gold */
  border: none;
  padding: 0.5rem 1rem;
  color: black;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #b9952a;
}

.library-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  max-width: 900px;
  width: 100%;
}

.book-card {
  background: #222;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 10px #d4af3733;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.book-card h3 {
  margin: 0 0 0.5rem 0;
}

.book-card p {
  margin: 0.25rem 0;
}

.book-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
}

.book-actions button {
  padding: 0.25rem 0.5rem;
  font-size: 0.9rem;
  border-radius: 5px;
}

.read-status {
  font-weight: bold;
  color: #b9952a;
}

dialog {
  border: none;
  border-radius: 8px;
  padding: 1rem 2rem;
  background: #222;
  color: #eee;
  width: 320px;
}

form label {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  font-weight: 600;
}

.form-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}
footer {
  text-align: center;
  padding: 1rem 0;
  color: #aaa;
  font-size: 0.9rem;
  margin-top: 2rem;
  border-top: 1px solid #333;
}

footer a {
  color: #d4af37; /* royal gold accent */
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
