/* Custom scrollbar for filter options */
#tajuk-options::-webkit-scrollbar,
#bidang-options::-webkit-scrollbar {
  width: 6px;
}

#tajuk-options::-webkit-scrollbar-track,
#bidang-options::-webkit-scrollbar-track {
  background: var(--sec-bg);
  border-radius: 3px;
}

#tajuk-options::-webkit-scrollbar-thumb,
#bidang-options::-webkit-scrollbar-thumb {
  background: var(--highlight-text);
  border-radius: 3px;
}

#tajuk-options::-webkit-scrollbar-thumb:hover,
#bidang-options::-webkit-scrollbar-thumb:hover {
  background: var(--button-bg);
}

/* Card hover effects */
.document-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

.filter-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

.no-results-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

/* Input focus styles */
input:focus,
select:focus {
  outline: none !important;
  border-color: var(--highlight-text) !important;
  box-shadow: 0 0 0 2px rgba(255, 137, 30, 0.15) !important;
}

/* Radio button styling */
input[type="radio"] {
  accent-color: var(--highlight-text);
}

/* Button hover effects */
button:hover {
  opacity: 0.85;
  transition: opacity 0.2s ease;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Label hover effects */
label:hover {
  background-color: var(--main-bg);
  border-radius: 4px;
  transition: background-color 0.2s ease;
  padding: 4px;
  margin: -4px;
}

/* Card animations */
.filter-card,
.document-card,
.no-results-card {
  transition: all 0.3s ease;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .document-card {
    flex-direction: column !important;
    text-align: center;
  }

  .document-card img {
    width: 100% !important;
    height: 200px !important;
    max-width: 200px;
    margin: 0 auto;
  }
}

/* Shadow variants for different states */
.filter-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.document-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.no-results-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Filter section separator lines */
.filter-section {
  border-bottom: 2px solid var(--button-bg);
  padding-bottom: 8px;
  margin-bottom: 15px !important;
}

.filter-section:last-child {
  border-bottom: none;
  margin-bottom: 0 !important;
}

/* Additional styling for better visual hierarchy */
.filter-card h6 {
  border-bottom: 2px solid var(--button-bg);
  padding-bottom: 8px;
  margin-bottom: 15px !important;
}

/* Select and input styling improvements */
select,
input[type="text"] {
  transition: all 0.2s ease;
}

select:hover,
input[type="text"]:hover {
  border-color: var(--highlight-text);
}

/* Filter divider styling */
.filter-divider {
  height: 2px;
  background-color: var(--button-bg);
  margin: 20px 0;
  border-radius: 1px;
}

/* Pagination styling */
.pagination-btn {
  padding: 8px 14px;
  border: 1px solid var(--main-text);
  background: var(--card);
  color: var(--main-text);
  border-radius: 20px;
  cursor: pointer;
  min-width: 40px;
  transition: all 0.2s ease;
}

.pagination-btn.is-active {
  background: var(--main-text);
  color: var(--sec-bg);
  cursor: default;
  font-weight: 600;
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-ellipsis {
  padding: 8px 6px;
  color: var(--main-text);
}
