/* General Sidebar Styling */
.sidebar-inventory {
    margin-top: 1em;
    width: 100%; /* Full width for mobile screens */
    max-width: 300px; /* Maximum width */
    padding: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Filter section titles */
.sidebar-inventory h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #333;
}

/* Filter section styling */
.filter-section {
    margin-bottom: 20px;
}

/* Select-values radio and checkbox group layout */
.select-values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Custom input styling (checkboxes/radios as buttons) */
.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    flex: 1;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.checkbox-group input:checked + label {
    background-color: #cb244b;
    color: white;
    border-color: #cb244b;
}

.checkbox-group input:disabled + label {
    background-color: #e0e0e0;
    border-color: #ccc;
    cursor: not-allowed;
}


/* Price Filter Styling */
.price-filter {
    align-items: center;
    margin-top: 10px;
}

.price-filter input[type="number"] {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.price-filter button {
    padding: 8px 16px;
    background-color: #cb244b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.price-filter button:hover {
    background-color: #45a049;
}

/* Hide default checkbox */
.checkbox-group input[type="checkbox"] {
    display: none;
}

/* Custom label styling */
.checkbox-group label {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f1f1f1;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Checkbox checked state (custom color for status) */
.checkbox-group input[type="checkbox"]:checked + label {
    background-color: #cb244b; /* Green when checked */
    color: white;
    border-color: #cb244b;
}

/* Disabled checkbox */
.checkbox-group input[type="checkbox"]:disabled + label {
    background-color: #e0e0e0;
    border-color: #ccc;
    color: #888;
    cursor: not-allowed;
}

/* Hover effect */
.checkbox-group label:hover {
    background-color: #ddd;
}

/* Hide default radio button */
.checkbox-group input[type="radio"] {
    display: none;
}

/* Custom label styling for radio */
.checkbox-group label {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 50px;
    background-color: #f1f1f1;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Radio checked state (custom color for selected) */
.checkbox-group input[type="radio"]:checked + label {
    background-color: #cb244b; /* Green when selected */
    color: white;
    border-color: #cb244b;
}

/* Disabled radio button */
.checkbox-group input[type="radio"]:disabled + label {
    background-color: #e0e0e0;
    border-color: #ccc;
    color: #888;
    cursor: not-allowed;
}

/* Hover effect */
.checkbox-group label:hover {
    background-color: #ddd;
}


#price-filter {
    text-align: center;
    width: 100%;
}

/* General styling for the input fields */
#price-filter input[type="number"] {
    padding: 10px;
    margin: 5px 0;
    width: 100%;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Focused state for better visibility */
#price-filter input[type="number"]:focus {
    border-color: #cb244b;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
    outline: none;
}

/* Styling for the apply button */
#applyPriceButton, #resetButton {
    display: inline-block;
    padding: 10px 15px;
    margin-top: 10px;
    background-color: #cb244b;
    color: white;
    border: none;
    border-radius: 8px;
    width: 49%;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#resetButton {
    background-color: #858585;
}

#applyPriceButton:hover {
    background-color: #8a1834;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove spinners for Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

@media screen and (max-width: 768px) {
    .sidebar-inventory {
        max-width: unset;
    }
}