.filters {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 125px;
}

.filter-group h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #666;
    font-weight: bold;

}

.filter-checkbox {
    display: block;
    margin-bottom: 0.3rem;
    cursor: pointer;

}

.filter-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-self: flex-start;
    margin-left: auto;
}

@media screen and (max-width: 768px){
    .filter-actions {
        align-self:flex-end;
        margin-left: auto;
    }
}

.clear-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    background: #dc3545;
    color: white;
    transition: background-color 0.2s;
    font-weight: bold;
}

.paginationResults {
    text-align:end;
}

.clear-btn:hover {
    background: #c82333;
}

.results-summary {
    margin-bottom: 1.5rem;
}

.active-filters {
    margin-top: 0.5rem;
}

.filter-tag {
    display: inline-block;
    background: #e9ecef;
    padding: 0.2rem 0.5rem;
    margin: 0.2rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* Pagination Styles - Using specific selectors to avoid conflicts */
.pagination-wrapper .pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.pagination-wrapper .pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 0.75rem;
    color: #007bff;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.pagination-wrapper .pagination .page-link:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
    color: #0056b3;
}

.pagination-wrapper .pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

.pagination-wrapper .pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Fix for oversized arrows - more specific selectors */
.pagination-wrapper .pagination .page-link svg,
.pagination-wrapper .pagination .page-link i,
.pagination-wrapper .pagination .page-link::before,
.pagination-wrapper .pagination .page-link::after {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
}

/* Previous/Next specific styling */
.pagination-wrapper .pagination .page-item:first-child .page-link,
.pagination-wrapper .pagination .page-item:last-child .page-link {
    font-weight: 500;
}

/* Content container and loading states */
#catalogue-content {
    position: relative;
    min-height: 400px;
    transition: opacity 0.2s ease;
}

#catalogue-content.loading {
    opacity: 0.7;
}

/* Loading overlay - localized to content area */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 8px;
    min-height: 200px;
}

.loading-overlay.show {
    display: flex !important;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #dee2e6;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
