/* Filter container styles */
.filter-container {
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.filter-section {
    width: 100%;
    max-width: 100%;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Search box styles */
.search-box {
    margin: 1.5rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 600px;
    padding: 0 15px;
    box-sizing: border-box;
}

.search-box-inner {
    display: flex;
    width: 100%;
    gap: 10px;
}

.search-box input[type="text"] {
    padding: 0.6rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9rem;
    flex: 1;
    min-width: 200px;
    width: 100%;
    box-sizing: border-box;
}

.search-button {
    padding: 0.6rem 1.5rem;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 5px;
}

.search-button:hover {
    background-color: #0b5ed7;
}

/* Style for all filter elements */
select, .filter-button {
    padding: 0.6rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Select dropdown styles */
select {
    background-color: white;
    cursor: pointer;
    min-width: 120px;
}

select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: none;
}

/* Button styles */
.filter-button {
    background-color: #0d6efd;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.filter-button:hover {
    background-color: #0b5ed7;
    transform: translateY(-1px);
}

.filter-button:active {
    transform: translateY(0);
}

/* Apply filter button specific style */
#applyFilter {
    background-color: #198754;
}

#applyFilter:hover {
    background-color: #157347;
}

/* Reset button specific style */
#resetFilter {
    background-color: #6c757d;
}

#resetFilter:hover {
    background-color: #5c636a;
}

/* Search box styles */
.search-box {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

#productSearchInput {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9rem;
}

#productSearchBtn {
    background-color: #0dcaf0;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#productSearchBtn:hover {
    background-color: #0aa2c0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    select, .filter-button {
        width: 100%;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    #productSearchBtn {
        width: 100%;
        padding: 0.6rem;
    }
}
