:root {
  --lib-primary: #1a3a5c;
  --lib-accent: #e8a020;
  --lib-surface: #f8f9fb;
  --lib-card-radius: 12px;
}

body {
  background-color: var(--lib-surface);
  font-family: 'Segoe UI', system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Navbar */
.navbar-brand {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

/* Book cards */
.book-card {
  border-radius: var(--lib-card-radius);
  border: 1px solid rgba(0,0,0,.06) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.book-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
}

.book-cover-thumb {
  height: 200px;
  object-fit: cover;
  border-radius: var(--lib-card-radius) var(--lib-card-radius) 0 0;
}

.book-cover-placeholder {
  height: 200px;
  border-radius: var(--lib-card-radius) var(--lib-card-radius) 0 0;
}

.book-cover-full {
  max-height: 380px;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Book description */
.book-description img {
  max-width: 100%;
  height: auto;
}

.book-description h1, .book-description h2, .book-description h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* Reviews */
.review-text img {
  max-width: 100%;
}

/* Cards */
.card {
  border-radius: var(--lib-card-radius);
}

.card-header {
  border-radius: var(--lib-card-radius) var(--lib-card-radius) 0 0 !important;
}

/* EasyMDE overrides */
.EasyMDEContainer .CodeMirror {
  border-radius: 0 0 8px 8px;
  font-size: 0.95rem;
}

.editor-toolbar {
  border-radius: 8px 8px 0 0;
}

/* Pagination */
.pagination .page-link {
  border-radius: 6px;
  margin: 0 2px;
}

/* Footer */
footer {
  margin-top: auto;
}

/* Alerts */
.alert {
  border-radius: 10px;
  border: none;
}

/* Table */
.table > :not(caption) > * > * {
  padding: 0.75rem 1rem;
}

/* Badges */
.badge {
  font-weight: 500;
}
