/* Main Container */
.container {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

/* Filter Card */
.filter-card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  position: sticky;
  top: 1rem;
}

.filter-card .card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem 1.25rem;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
}

.filter-card .card-body {
  padding: 1.25rem;
}

/* Form Controls */
.form-control,
.form-select {
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #dee2e6;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus,
.form-select:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #495057;
}

/* Rating Buttons */
.rating-buttons {
  width: 100%;
  display: flex;
}

.rating-buttons .btn {
  flex: 1;
  border-radius: 0;
}

.rating-buttons .btn:first-child {
  border-top-left-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
}

.rating-buttons .btn:last-child {
  border-top-right-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
}

.btn-outline-warning {
  color: #fd7e14;
  border-color: #fd7e14;
}

.btn-outline-warning:hover,
.btn-check:checked + .btn-outline-warning {
  background-color: #fd7e14;
  color: white;
}

/* Books Container */
.books-container {
  min-height: 300px;
}

/* Empty State */
.empty-state {
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .filter-card {
    position: static;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .rating-buttons .btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
  }
}

/* Modern Price Tag Styling */
.book-price-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
}

.price-badge {
  background: linear-gradient(135deg, #3a86ff, #8338ec);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  display: inline-block;
  letter-spacing: 0.5px;
}

.price-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Make sure the parent has position relative */
.col {
  position: relative;
}

/* Enhanced Pagination Styles */
.pagination-container {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.pagination {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-radius: 30px;
  padding: 5px;
  background-color: #fff;
  flex-wrap: wrap;
}

.page-item:first-child .page-link {
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
}

.page-item:last-child .page-link {
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
}

.page-link {
  border: none;
  margin: 0 3px;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  color: #555;
  font-weight: 500;
  transition: all 0.2s ease;
}

.page-link:hover:not(.disabled) {
  background-color: #f8f9fa;
  color: var(--bs-primary);
  transform: translateY(-2px);
}

.page-item.active .page-link {
  background-color: var(--bs-primary);
  color: white;
  box-shadow: 0 5px 15px rgba(var(--bs-primary-rgb), 0.2);
}

.page-item.disabled .page-link {
  color: #ccc;
}

.page-link-special,
.page-link-nav {
  font-size: 0.9rem;
}

.page-link-ellipsis {
  color: #888;
}

.page-link-ellipsis:hover {
  background: none;
  transform: none;
  color: #888;
}

.pagination-info {
  font-weight: 500;
  color: #666;
  font-size: 0.9rem;
}

/* Make pagination more compact on mobile */
@media (max-width: 768px) {
  .pagination {
    padding: 3px;
    justify-content: center;
  }

  .page-link {
    min-width: 35px;
    height: 35px;
    margin: 0 2px;
    font-size: 0.9rem;
  }

  .page-link-special,
  .page-link-nav {
    font-size: 0.8rem;
  }
}
