/* assets/css/style.css */
:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #f8f9fa;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  padding: 80px 0;
  margin-bottom: 40px;
}

/* Card Hover Effect */
.hover-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Sidebar */
.sidebar .nav-link {
  padding: 10px 20px;
  border-radius: 5px;
  margin: 2px 10px;
}

.sidebar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
  background-color: #0d6efd !important;
}

/* Search Page */
.search-result-item {
  border-bottom: 1px solid #eee;
  padding: 15px 0;
}

/* Read Page */
.book-viewer {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    min-height: auto !important;
  }
}

/* assets/css/style.css - Tambahan untuk search */

/* Search Page */
.category-checkboxes {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 5px;
}

.category-checkboxes::-webkit-scrollbar {
  width: 5px;
}

.category-checkboxes::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.category-checkboxes::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.category-checkboxes::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.category-checkboxes .form-check {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

.category-checkboxes .form-check:last-child {
  border-bottom: none;
}

.category-checkboxes .form-check:hover {
  background-color: #f8f9fa;
  border-radius: 5px;
}

.category-checkboxes .form-check-input:checked {
  background-color: #667eea;
  border-color: #667eea;
}

.category-checkboxes .form-check-label {
  cursor: pointer;
  font-size: 0.95rem;
}

.category-checkboxes .badge {
  font-size: 0.7rem;
  margin-left: 5px;
}

/* Active filter badges */
.filter-badge {
  display: inline-block;
  padding: 5px 10px;
  background: #667eea;
  color: white;
  border-radius: 20px;
  margin: 3px;
  font-size: 0.85rem;
}

.filter-badge .remove-filter {
  color: white;
  margin-left: 5px;
  cursor: pointer;
  opacity: 0.7;
}

.filter-badge .remove-filter:hover {
  opacity: 1;
}

/* Book card */
.book-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.book-card .card-img-top {
  transition: transform 0.3s ease;
}

.book-card:hover .card-img-top {
  transform: scale(1.05);
}

/* Sticky sidebar */
.sticky-top {
  z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .category-checkboxes {
    max-height: 200px;
  }

  .sticky-top {
    position: relative !important;
    top: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .sidebar {
    min-height: auto !important;
  }

  #sidebarMenu {
    width: 100%;
  }
}
