/* MY BOOKS PAGE STYLING */

/* Background for the Books page */
body.books-page {
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
              url('bookBackground.jpg') center/cover no-repeat fixed;
  background-attachment: fixed;
  color: #fff;
}

/* Hero logo */
.hero-logo {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 60px;
  height: auto;
  cursor: pointer;
  z-index: 110;
  transition: transform 0.2s ease;
}
.hero-logo:hover {
  transform: scale(1.05);
}

/* Table container */
.table-container {
  overflow-x: auto;
  margin-top: 20px;
}

/* Table styling */
.book-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.92);
  color: #222;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border-radius: 12px;
  overflow: hidden;
  font-size: 1rem;
}

/* Header styling */
.book-table thead {
  background: #004aad;
  color: #fff;
}
.book-table th {
  padding: 14px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Body rows */
.book-table td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
}

/* Alternating row colors */
.book-table tbody tr:nth-child(even) {
  background: #f8faff;
}

/* Hover effect */
.book-table tbody tr:hover {
  background: #eaf2ff;
  transition: background 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .book-table th, .book-table td {
    padding: 10px;
    font-size: 0.9rem;
  }
}

/* Keep footer fixed at the bottom only on My Books page */
body.books-page footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 51, 119, 0.95);
  color: #fff;
  text-align: center;
  padding: 10px 0;
  font-size: 0.9rem;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
}

/* Add padding to main content so it doesn't get hidden behind footer */
body.books-page main {
  padding-bottom: 80px; /* room for footer */
}
