.pdf-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.pdf-search input {
  min-width: 200px;
  height: 40px;
  font-size: 16px;
  border-radius: 4px; /* default, can be overridden by Elementor */
  border-width: 1px;  /* default, can be overridden by Elementor */
  border-style: solid;
}
.pdf-search button {
  height: 40px;
  background: #ff0000;
  color: #fff;
  border: none;
  border-radius: 4px; /* default, can be overridden by Elementor */
  border-width: 1px;  /* default, can be overridden by Elementor */
  border-style: solid;
  padding: 0 20px;
  font-size: 16px;
  cursor: pointer;
}

/* Advanced Filters */
.pdf-advanced-filters {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.pdf-filter-section {
  margin-bottom: 12px;
}

.pdf-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.pdf-filter-group label {
  font-weight: 500;
  color: #495057;
  min-width: 80px;
}

.pdf-filter-group input,
.pdf-filter-group select {
  padding: 6px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
}

.pdf-filter-group input[type="date"] {
  min-width: 140px;
}

.pdf-filter-group input[type="number"] {
  min-width: 100px;
}

.pdf-filter-group input[type="text"] {
  min-width: 200px;
}

/* Reset Button */
.pdf-search-reset {
  background: #6c757d !important;
  color: #fff !important;
  border: none;
  border-radius: 4px;
  padding: 0 16px;
  font-size: 14px;
  cursor: pointer;
  height: 40px;
}

.pdf-search-reset:hover {
  background: #5a6268 !important;
}

/* Sort Dropdown */
.pdf-search select {
  padding: 6px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
}

/* Results Styling */
.pdf-item {
  padding: 12px;
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.2s;
}

.pdf-item:hover {
  background-color: #f8f9fa;
}

.pdf-title {
  font-weight: 600;
  color: #007bff;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}

.pdf-title:hover {
  color: #0056b3;
  text-decoration: underline;
}

.pdf-author {
  color: #6c757d;
  font-size: 14px;
  margin-bottom: 4px;
}

.pdf-size,
.pdf-date {
  color: #6c757d;
  font-size: 12px;
  margin-right: 12px;
}

.pdf-download {
  display: inline-block;
  background: #28a745;
  color: #fff;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  margin-top: 8px;
}

.pdf-download:hover {
  background: #218838;
  color: #fff;
  text-decoration: none;
}

/* Thumbnail */
.pdf-thumbnail {
  margin-bottom: 8px;
}

.pdf-thumbnail img {
  max-width: 100px;
  max-height: 140px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
}

/* Grid Layout */
.pdf-grid {
  display: grid;
  gap: 16px;
}

.pdf-grid .pdf-item {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

/* Table Layout */
.pdf-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.pdf-table th,
.pdf-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.pdf-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #495057;
}

/* Pagination */
.pdf-pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 20px;
}

.pdf-page-btn {
  padding: 8px 12px;
  border: 1px solid #dee2e6;
  background: #fff;
  color: #007bff;
  cursor: pointer;
  border-radius: 4px;
}

.pdf-page-btn:hover {
  background: #e9ecef;
}

.pdf-page-btn.active {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}

.pdf-load-more {
  display: block;
  width: 100%;
  padding: 12px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 20px;
}

.pdf-load-more:hover {
  background: #0056b3;
}

/* Error and No Results */
.pdf-search-error,
.pdf-no-results {
  padding: 20px;
  text-align: center;
  color: #6c757d;
  background: #f8f9fa;
  border-radius: 8px;
  margin-top: 16px;
}

.pdf-search-error {
  color: #dc3545;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
  .pdf-search-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .pdf-filter-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .pdf-filter-group label {
    min-width: auto;
    margin-bottom: 4px;
  }
  
  .pdf-grid {
    grid-template-columns: 1fr;
  }
}