/* Modern Search Page Styling */

/* Filter Section Styling */
.filter-sidebar {
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px;
    height: 100%;
}

.filterContainer {
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
}

.filterContainer:last-child {
    border-bottom: none;
}

.filterContainer h3 {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.filterContainer h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background-color: #0d6efd;
    margin-right: 8px;
    border-radius: 2px;
}

.filter-box {
    padding: 8px 0;
    max-height: 300px;
    overflow-y: auto;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.filter-box-collapsed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
}

.filter-heading-collapsed::after {
    content: '+';
    display: inline-block;
    margin-left: 5px;
    font-size: 16px;
    color: #6c757d;
}

.filterContainer h3 {
    cursor: pointer;
    transition: color 0.2s ease;
}

.filterContainer h3:hover {
    color: #0d6efd;
}

/* Checkbox styling */
.form-check {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-right: 8px;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    font-size: 14px;
    color: #495057;
}

/* Text search styling */
.filter-text-search {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 8px 12px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.filter-text-search:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Year range inputs */
.year-range-container {
    display: flex;
    gap: 10px;
}

.year-input {
    flex: 1;
}

.year-input label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #6c757d;
}

.year-input input {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 6px 8px;
    font-size: 14px;
}

/* Reset button styling */
.reset-button {
    width: 100%;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 15px;
}

.reset-button:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

/* Results Table Styling */
.results-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px;
    height: 100%;
}

.top-heading {
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
    padding: 15px;
    margin-bottom: 0 !important;
}

/* Pagination controls */
.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #dee2e6;
    color: #495057;
    transition: all 0.2s ease;
}

.pagination-button:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.pagination-info {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* Search box styling */
.modern-search-box {
    position: relative;
    width: 250px;
}

.modern-search-box input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border-radius: 20px;
    border: 1px solid #ced4da;
    font-size: 14px;
    transition: all 0.2s ease;
}

.modern-search-box input:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: none;
}

.modern-search-box::before {
    content: '\f002';
    font-family: 'boxicons';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 16px;
}

/* Filter change animation */
.filter-changed {
    animation: highlight-filter 0.5s ease;
}

@keyframes highlight-filter {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.5);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.5);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.5);
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .filter-sidebar {
        margin-bottom: 20px;
    }

    .modern-search-box {
        width: 100%;
        margin-top: 10px;
    }

    .pagination-controls {
        margin-bottom: 10px;
    }
}
