/* Modern & Sleek Library Management Styles */
body {
  font-family: "Segoe UI", "Roboto", Arial, sans-serif;
  background: linear-gradient(120deg, #f8fafc 0%, #e2e8f0 100%);
  margin: 0;
  color: #222222bf;
}

/* Auth Page Styles */
.auth-page {
  background: #4b3e3e53;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1000px;
  width: 100%;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(255, 255, 255, 0.1);
  min-height: 600px;
}

.auth-left {
  background: #0e1306d3;
  padding: 60px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.auth-branding {
  text-align: center;
  color: white;
}

.auth-branding h1 {
  font-size: 2.8em;
  margin: 0 0 15px 0;
  color: white;
  font-weight: 700;
  letter-spacing: 1px;
}

.tagline {
  font-size: 1em;
  opacity: 0.7;
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.auth-right {
  padding: 50px 60px;
  display: flex;
  flex-direction: column;
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 2px solid #e2e8f0;
}

.tab-btn {
  background: none;
  border: none;
  padding: 12px 24px;
  font-size: 1.05em;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: #000;
  background: rgba(0, 0, 0, 0.03);
}

.tab-btn.active {
  color: #000;
  border-bottom-color: #000;
}

.auth-forms {
  flex: 1;
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content h2 {
  font-size: 1.8em;
  margin: 0 0 25px 0;
  color: #1e293b;
  font-weight: 700;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-size: 0.9em;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
}

.input-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1em;
  transition: all 0.3s;
  box-sizing: border-box;
}

.input-group input:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95em;
  color: #64748b;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.auth-btn {
  width: 100%;
  padding: 14px;
  background: #000;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.05em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.auth-btn:hover {
  background: #333;
  transform: translateY(-2px);
}

.auth-btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .auth-container {
    grid-template-columns: 1fr;
  }

  .auth-left {
    padding: 40px 30px;
    min-height: 200px;
  }

  .auth-branding h1 {
    font-size: 2em;
  }

  .logo-icon {
    font-size: 60px;
  }

  .auth-right {
    padding: 40px 30px;
  }
}

header {
  background: #2d3748;
  color: #fff;
  padding: 0.5em 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 2em;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar a:hover {
  color: #63b3ed;
}

.container {
  /*max-width: 900px;*/
  max-width: 1000px;
  margin: 2em auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  padding: 2em;
}

h1 {
  text-align: center;
  font-size: 2.2em;
  margin-bottom: 1em;
  color: #2b6cb0;
  margin-top: -10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
  background: #f7fafc;
  border-radius: 8px;
  overflow: hidden;
}

thead {
  background: #2b6cb0;
  color: #fff;
}

th,
td {
  padding: 0.75em 1em;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

tr:nth-child(0) td:nth-child(7) {
  padding: 0.1em 1em;
  margin: 20px;
}

table {
  box-shadow: 0 2px 12px rgba(44, 62, 80, 0.07);
  border-radius: 8px;
  overflow: hidden;
}

thead {
  background: linear-gradient(90deg, #2b6cb0 60%, #4299e1 100%);
  color: #fff;
}

tr:nth-child(even) {
  background: #edf2f7;
}

tr:hover {
  background: #bee3f8;
  transition: background 0.2s;
}

.notice.success {
  background: #c6f6d5;
  color: #22543d;
  border-left: 4px solid #38a169;
  padding: 0.75em 1em;
  margin-bottom: 1em;
  border-radius: 6px;
  font-weight: 500;
}

form input,
form select,
form button {
  padding: 0.6em 1em;
  margin: 0.3em 0.5em 0.3em 0;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 1em;
}

form button {
  background: #2b6cb0;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

form button:hover {
  background: #4299e1;
}

th {
  font-weight: 600;
}

tr:nth-child(even) {
  background: #edf2f7;
}

.book-cover {
  width: 60px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.12);
}

.center-wrap {
  max-width: 400px;
  width: 100% !important;
  margin: 3em auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  padding: 2em 2em 1em 2em;
  margin-top: 9rem !important;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  padding: 0.7em;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 1em;
  background: #f7fafc;
  transition: border 0.2s;
}

input:focus {
  border-color: #2b6cb0;
  outline: none;
}

button {
  background: #2b6cb0;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.8em;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: #63b3ed;
}

.notice {
  padding: 0.7em 1em;
  border-radius: 6px;
  margin-bottom: 1em;
  font-size: 1em;
}

.notice.error {
  background: #fed7d7;
  color: #c53030;
}

.notice.success {
  background: #c6f6d5;
  color: #276749;
}

.notice.warning {
  background: #faf089;
  color: #b7791f;
}

hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 2em 0;
}

/* Filter Section */
.filter-section {
  margin-bottom: 4em;
  display: flex;
  gap: 0.5em;
  /*align-items: center;*/
  flex-wrap: wrap;
  height: 12px;
}

.filter-section select {
  padding: 0.6em 1em;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 0.95em;
  background: #fff;
  cursor: pointer;
  min-width: 150px;
}

.filter-section button {
  padding: 0.6em 1.2em;
  background: #2b6cb0;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95em;
  transition: background 0.2s;
  white-space: nowrap;
}

.filter-section button:hover {
  background: #4299e1;
}

.filter-section a {
  color: #2b6cb0;
  text-decoration: none;
  padding: 0.6em 1em;
  font-size: 0.95em;
  white-space: nowrap;
}

.filter-section a:hover {
  text-decoration: underline;
}

/* Book Details Page */
.book-detail {
  display: flex;
  gap: 2em;
  margin: 2em 0;
}

.book-cover-large {
  max-width: 350px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  object-fit: contain;
}

.book-info {
  flex: 1;
}

.book-info h1 {
  margin-top: 0;
}

.info-row {
  margin: 0.5em 0;
}

.info-label {
  font-weight: bold;
  color: #666;
}

.availability {
  padding: 0.5em 1em;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 4px;
  display: inline-block;
  margin: 1em 0;
  font-weight: 500;
}

.availability.unavailable {
  background: #ffebee;
  color: #c62828;
}

.author-bio {
  background: #f5f5f5;
  padding: 1em;
  border-radius: 4px;
  margin: 1em 0;
}

.other-books {
  margin-top: 2em;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5em;
  margin-top: 1em;
}

.book-grid .book-card {
  text-align: center;
  background: #f8fafc;
  padding: 1em;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.book-grid .book-card:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.book-grid .book-card img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.5em;
}

.book-grid .book-card a {
  text-decoration: none;
  color: #333;
  font-size: 0.9em;
  display: block;
}

.book-grid .book-card a:hover {
  color: #2b6cb0;
}

.book-grid .book-card div {
  font-weight: 500;
  line-height: 1.4;
  margin-top: 0.5em;
}

/* Admin Forms */
.admin-form {
  margin-bottom: 1em;
  border: 1px solid #ddd;
  padding: 1em;
  border-radius: 4px;
  background: #f9f9f9;
}

.admin-form h4 {
  margin-top: 0;
}

.admin-form textarea {
  width: 100%;
  padding: 0.5em;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  font-family: inherit;
  resize: vertical;
}

/* Action Buttons */
button:disabled {
  background: #a0aec0;
  cursor: not-allowed;
}

button:disabled:hover {
  background: #a0aec0;
}

form[style*="inline"] {
  display: inline;
  margin: 0;
}

/* Links */
a {
  color: #2b6cb0;
  transition: color 0.2s;
}

a:hover {
  color: #4299e1;
}

table a {
  text-decoration: none;
  font-weight: 500;
}

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

/* Button Styles */
.btn-primary {
  display: inline-block;
  margin-top: 1em;
  padding: 0.5em 1em;
  background: #1976d2;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #1565c0;
  color: white;
}

.btn-small {
  padding: 0.4em 0.8em;
  background: #2b6cb0;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85em;
  transition: background 0.2s;
  margin-bottom: 0.5em;
}

.btn-small:hover {
  background: #4299e1;
}

.btn-danger {
  background: #e53e3e;
}

.btn-danger:hover {
  background: #c53030;
}

.btn-danger:disabled {
  background: #cbd5e0;
  cursor: not-allowed;
}

.btn-secondary {
  padding: 0.6em 1.2em;
  background: #718096;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95em;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: #4a5568;
}

.availability {
  padding: 0.3em 0.6em;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 500;
}

.availability.available {
  background: #c6f6d5;
  color: #22543d;
}

.availability.unavailable {
  background: #fed7d7;
  color: #742a2a;
}

.btn-back {
  display: inline-block;
  margin-top: 1em;
  color: #2b6cb0;
  text-decoration: none;
}

.btn-back:hover {
  text-decoration: underline;
}

.btn-small {
  display: inline-block;
  padding: 0.4em 0.8em;
  background: #2b6cb0;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9em;
  margin: 0 0.2em;
  transition: background 0.2s;
}

.btn-small:hover {
  background: #4299e1;
  color: white;
}

.btn-danger {
  background: #c53030;
  margin: 10px;
}

.btn-danger:hover {
  background: #9b2c2c;
}

.btn-cancel {
  display: inline-block;
  padding: 0.5em 1em;
  background: #718096;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  margin-left: 0.5em;
  transition: background 0.2s;
}

.btn-cancel:hover {
  background: #4a5568;
  color: white;
}

/* Edit Section */
.edit-section {
  background: #f7fafc;
  padding: 1.5em;
  border-radius: 8px;
  margin-bottom: 2em;
  border: 2px solid #2b6cb0;
}

.edit-section h2 {
  margin-top: 0;
  color: #2b6cb0;
}

.edit-section form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.edit-section input,
.edit-section textarea {
  padding: 0.7em;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 1em;
}

.edit-section textarea {
  resize: vertical;
  font-family: inherit;
}

/* Loan Status */
.loan-completed {
  color: #999;
  font-style: italic;
}

/* Form Spacing */
form {
  margin-bottom: 2em;
}

form.admin-form {
  margin-bottom: 1em;
}

/* Search Bar Styles */
.search-bar {
  margin-bottom: 2em;
  text-align: center;
}

.search-bar form {
  display: flex;
  gap: 0.5em;
  max-width: 600px;
  margin: 0 auto;
}

.search-bar input[type="text"] {
  flex: 1;
  padding: 0.8em 1em;
  border: 2px solid #cbd5e0;
  border-radius: 8px;
  font-size: 1em;
  transition: border-color 0.2s;
}

.search-bar input[type="text"]:focus {
  outline: none;
  border-color: #2b6cb0;
}

.search-bar button {
  padding: 0.8em 2em;
  background: #2b6cb0;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.search-bar button:hover {
  background: #2c5282;
}

/* Search Page Styles */
.search-form {
  display: flex;
  gap: 0.5em;
  margin-bottom: 2em;
}

.search-form input[type="text"] {
  flex: 1;
  padding: 0.8em 1em;
  border: 2px solid #cbd5e0;
  border-radius: 8px;
  font-size: 1em;
}

.search-form select {
  padding: 0.8em;
  border: 2px solid #cbd5e0;
  border-radius: 8px;
  font-size: 1em;
  background: white;
}

.search-form button {
  padding: 0.8em 2em;
  background: #2b6cb0;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.search-results h2 {
  color: #2b6cb0;
  margin-bottom: 0.5em;
}

.search-results p {
  color: #718096;
  margin-bottom: 1.5em;
}

.no-results {
  text-align: center;
  padding: 2em;
  background: #f7fafc;
  border-radius: 8px;
  margin-top: 2em;
}

.no-results p {
  font-size: 1.1em;
  color: #4a5568;
}

.no-results ul {
  text-align: left;
  display: inline-block;
  margin-top: 1em;
}

.search-tips {
  background: #ebf8ff;
  padding: 1.5em;
  border-radius: 8px;
  margin-top: 2em;
}

.search-tips h3 {
  color: #2b6cb0;
  margin-top: 0;
}

.search-tips ul {
  margin: 1em 0 0 0;
}

.search-tips li {
  margin-bottom: 0.5em;
  color: #4a5568;
}

.book-description {
  max-width: 500px;
  font-size: 0.9em;
}

.back-link {
  margin-top: 2em;
  text-align: center;
}

.back-link a {
  color: #2b6cb0;
  text-decoration: none;
  font-weight: 500;
}

.back-link a:hover {
  text-decoration: underline;
}

/* Book Detail Description */
.book-detail .book-description {
  margin-top: 1.5em;
}

.book-detail .book-description h3 {
  color: #2b6cb0;
  margin-bottom: 0.5em;
}

.book-detail .book-description p {
  line-height: 1.6;
  color: #4a5568;
}

/* Borrow Button */
.btn-borrow {
  background: #38a169;
  color: white;
  border: none;
  padding: 0.5em 1em;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9em;
  transition: background 0.2s;
}

.btn-borrow:hover {
  background: #2f855a;
}

.text-muted {
  color: #a0aec0;
}

/* Admin Tabs */
.tab-navigation {
  display: flex;
  gap: 0;
  margin: 0 auto 2.5em auto;
  border-bottom: 2px solid #e2e8f0;
  justify-content: center;
  max-width: 700px;
}

.tab-btn {
  background: #f7fafc;
  border: none;
  padding: 1em 2em;
  font-size: 1em;
  font-weight: 600;
  color: #718096;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  bottom: -2px;
  border-radius: 8px 8px 0 0;
  margin: 0 2px;
}

.tab-btn:hover {
  color: #2b6cb0;
  background: #edf2f7;
  transform: translateY(-2px);
}

.tab-btn.active {
  color: #2b6cb0;
  border-bottom-color: #2b6cb0;
  background: #fff;
  box-shadow: 0 -2px 8px rgba(43, 108, 176, 0.1);
}

.tab-content {
  display: none;
  padding: 1.5em 0;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease-in;
}

.tab-content h2 {
  color: #2b6cb0;
  margin-top: 0;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid #e2e8f0;
}

.tab-content h3 {
  color: #2c5282;
  margin-top: 2em;
  margin-bottom: 1em;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Admin Panel Sections */
.tab-content > form {
  background: #f8fafc;
  padding: 1.5em;
  border-radius: 8px;
  margin-bottom: 2em;
  border-left: 4px solid #2b6cb0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tab-content > form input[type="text"],
.tab-content > form input[type="email"],
.tab-content > form select {
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.8em;
}

.tab-content > form button {
  margin-top: 0.5em;
}

/* Admin Tables Spacing */
.tab-content table {
  margin-top: 1.5em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Admin Button Alignment */
td form {
  margin: 0;
}

td form + form {
  margin-top: 0.3em;
}

/* Section dividers */
.tab-content > p {
  margin: 1.5em 0;
  padding: 1em;
  background: #edf2f7;
  border-radius: 6px;
}

.tab-content > p a {
  font-weight: 600;
}

/* Book Cards Grid Layout */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2em;
  margin-top: 2em;
}

.book-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(43, 108, 176, 0.15);
}

/* Book Cover with Hover Overlay */
.book-card-cover {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px 8px 0 0;
}

.book-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fills container while maintaining aspect ratio */
  object-position: center;
  transition: transform 0.4s ease;
  display: block;
}

.book-card:hover .book-card-cover img {
  transform: scale(1.08);
}

/* Hover Overlay with Quick Preview */
.book-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(43, 108, 176, 0.95),
    rgba(27, 67, 110, 0.98)
  );
  color: white;
  padding: 1.5em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.book-card:hover .book-card-overlay {
  opacity: 1;
}

.book-card-overlay h4 {
  font-size: 1.3em;
  margin: 0 0 0.5em 0;
  font-weight: 700;
}

.overlay-author {
  font-size: 1em;
  margin-bottom: 1em;
  opacity: 0.9;
}

.overlay-desc {
  font-size: 0.9em;
  line-height: 1.5;
  margin-bottom: 1em;
  opacity: 0.85;
}

.overlay-details {
  display: flex;
  gap: 0.5em;
  margin-bottom: 1.5em;
  flex-wrap: wrap;
  justify-content: center;
}

.badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3em 0.8em;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.btn-view {
  display: inline-block;
  padding: 0.7em 2em;
  background: white;
  color: #2b6cb0;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-view:hover {
  background: #edf2f7;
  transform: scale(1.05);
}

/* No Cover Fallback */
.no-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 420px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px 8px 0 0;
}

.no-cover span {
  font-size: 5em;
  margin-bottom: 0.3em;
}

.no-cover p {
  font-size: 1.1em;
  font-weight: 500;
  margin: 0;
  opacity: 0.9;
}

/* Book Card Info Section */
.book-card-info {
  padding: 1.5em;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-card-info h3 {
  margin: 0 0 0.5em 0;
  font-size: 1.2em;
  line-height: 1.4;
}

.book-card-info h3 a {
  color: #2c5282;
  text-decoration: none;
  transition: color 0.2s;
}

.book-card-info h3 a:hover {
  color: #2b6cb0;
}

.book-author {
  color: #718096;
  margin: 0 0 1em 0;
  font-size: 0.95em;
}

.book-author a {
  color: #718096;
  text-decoration: none;
}

.book-author a:hover {
  color: #2b6cb0;
  text-decoration: underline;
}

.book-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  margin-bottom: 1em;
  font-size: 0.9em;
  color: #4a5568;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.meta-item svg {
  flex-shrink: 0;
  color: #2b6cb0;
}

.isbn-meta {
  font-size: 0.85em;
  color: #a0aec0;
}

.book-availability {
  margin-top: auto;
  margin-bottom: 1em;
}

.status-badge {
  display: inline-block;
  padding: 0.5em 1em;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: 500;
}

.status-badge.available {
  background: #c6f6d5;
  color: #22543d;
}

.status-badge.unavailable {
  background: #fed7d7;
  color: #742a2a;
}

/* Card Loan Form */
.card-loan-form {
  margin: 0;
}

.btn-loan-card {
  width: 100%;
  padding: 0.8em;
  background: #38a169;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-loan-card:hover {
  background: #2f855a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 161, 105, 0.3);
}

/* Sticky Filter Bar */
.sticky-filters {
  transition: all 0.3s ease;
  z-index: 100;
}

#filters {
  border-radius: 10px;
  height: 40px;
}

.sticky-filters.stuck {
  position: fixed;
  width: 60%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1em;
  margin: 0;
  border-radius: 0;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.btn-clear-filters {
  color: #e53e3e;
  font-weight: 500;
  text-decoration: none;
  padding: 0.6em 1em;
  transition: color 0.2s;
}

.btn-clear-filters:hover {
  color: #c53030;
  text-decoration: underline;
}
