/* =========================================
   Search & Filter System
   ========================================= */
.search-filter-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

/* Search Bar */
.search-bar {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
}

.search-bar .bx-search {
    position: absolute;
    left: 15px;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.search-bar input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

.search-bar input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.clear-btn {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: none;
    font-size: 1.2rem;
}

.clear-btn:hover {
    color: var(--accent-primary);
}

/* Filters Row */
.filters-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group select {
    width: 100%;
    padding: 10px 15px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.filter-group select:focus {
    border-color: var(--accent-primary);
}

/* Active Filters */
.active-filters {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tag {
    background: rgba(255, 102, 0, 0.1);
    color: var(--accent-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 102, 0, 0.2);
}

.filter-tag i {
    cursor: pointer;
}

/* Highlight Match */
.highlight {
    background-color: rgba(255, 204, 0, 0.3);
    color: inherit;
    font-weight: bold;
    border-radius: 2px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
    color: var(--text-secondary);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Responsive Filters */
@media (max-width: 600px) {
    .filters-row {
        flex-direction: column;
    }
}