﻿/*for filters.aspx*/
html, body {
    overflow-x: hidden;
}

.description_text {
    text-align: center;
}

.tile-section {
    font-size: 45px;
}

h5.modal-title {
    font-size: 19px;
    color: #000000cf;
    font-weight: 900;
}

.was-validated .form-control:valid,
.was-validated .form-control:valid,
.form-control.is-valid {
    background-image: none !important;
}

.slider-container {
    position: relative;
}

.use-slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 10;
}

    .use-slider-button:hover {
        background-color: #0056b3;
    }

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: .4rem;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.overlay-message {
    font-size: 16px;
    text-align: center;
}

.has-note {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

.note {
    display: block;
    font-size: 8.9px;
    color: #a9a9b4;
    font-style: italic;
    margin-top: 2px;
}

.wrn-btn, .btn-secondary {
    height: 40px;
    width: 160px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    border: 1px solid #515151;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0px;
    letter-spacing: .7px;
    padding: 0 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#clear-filters-btn.btn-secondary {
    background-color: #000;
    color: #ffffff;
    font-weight: 500;
}

.wrn-btn-active {
    background-color: #7f7f7f;
    color: #ffffff;
}

button.filter-item {
    border-radius: 2px;
    border: 1px solid #EEE;
    background: #eee;
    padding: 4px 9px;
    color: #5C5C5C;
    font-family: "Roboto";
    font-size: 15px;
    font-style: normal;
    letter-spacing: .7px;
    align-items: center;
    font-weight: 600;
    line-height: 30px;
    width: auto;
    height: 40px;
    margin-bottom: 1rem;
    border-color: #585858b3;
}

    button.filter-item:hover {
        background: #585858b3;
        color: #ffffff;
        border-color: #dcdcdc;
    }

   /*disabled buttons - tooltip box*/
.custom-tooltip {
    position: absolute;
    z-index: 9999;
    background: #333;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    max-width: 220px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease;
    pointer-events: none; /* Prevents tooltip from interfering with mouse events */
}

    .custom-tooltip:after {
        content: '';
        position: absolute;
        bottom: -6px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid #333;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

button.filter-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f0f0f0;
    color: #777;
    border-color: #ccc;
    position: relative;
}

    button.filter-item.disabled:hover {
        background-color: #f0f0f0;
        color: #777;
        border-color: #ccc;
    }

@media (max-width: 768px) {
    
}

button.filter-item {
    transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.upper-case {
    font-size: 12px;
    font-style: normal;
    text-transform: uppercase;
    font-weight: 400;
    color: #dc3545;
}

.f-item-title {
    color: #000;
    font-family: Roboto;
    font-size: 17px;
    font-style: normal;
    font-weight: 600;
    line-height: 45px;
}

#filtersModal #filters {
    margin-left: 0rem;
}

#filters {
    padding: 1rem;
}

.filters-container {
    background-color: #b4b4b461;
}

#clear-filters-btn {
    display: none;
}

    #clear-filters-btn.show {
        display: inline-block;
    }

.filter-titles {
    font-size: 2rem;
    margin-bottom: 0rem;
}

#filters .filter-item {
    margin-right: 1rem;
}


.col-md-10.filter-btn-container::before,
#range_type #type-items-container::before,
#application .col-md-10::before {
    content: '';
    position: absolute;
    bottom: 0;
    width: 82%;
    border-bottom: 1px solid #6f6f6f12;
    z-index: 1;
}

#selectedids {
    margin-left: 0rem;
    padding-left: 2rem;
    font-size: 13px;
    color: #dc3545;
}

#filters .filter-item-active {
    border-radius: 2px;
    background: #ad974f;
    color: #ffffff;
    border-color: #54545430;
}

    #filters .filter-item-active .note {
        color: #ffffff;
    }

#filters .multi-type-text {
    display: inline;
    font-size: 10px;
    color: #a01e2a;
    margin-left: 5px;
}

.slider-container .form-control {
    width: 100px;
    text-align: center;
    font-size: .8rem;
 }

.slider-container .input-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-container .bs-slider {
    border: 1px solid #585858b3;
    border-radius: .4rem;
    background: #f8f9fa;
    padding: 1.4rem;
    margin-bottom: 1rem;
}

    .slider-container .bs-slider:focus {
        border: 1px solid #60c1ea;
    }

.slider-container .input-container label {
    margin-right: 10px;
}

.irs--round .irs-from,
.irs--round .irs-to,
.irs--round .irs-single {
    background-color: #ad974f !important;
}

    .irs--round .irs-from:before,
    .irs--round .irs-to:before,
    .irs--round .irs-single:before {
        border-top-color: #ad974f !important;
    }

.irs--round .irs-handle {
    border: 4px solid #00000094 !important;
}

.irs--round .irs-bar {
    background-color: #00000094 !important;
}

a h3.inner-subsection:hover {
    text-decoration: none;
    color: #0e59a0;
}

.form-control:focus {
    border-color: none !important;
    box-shadow: none !important;
}

#application, #sub-filters {
    align-items: center;
}

.display-img {
    margin-top: 1.5rem;
    text-align: center;
}

.sec-images {
    margin-left: 4rem;
    text-align: center;
    height: 230px;
    width: auto;
}

.btn-label {
    font-size: 14px;
    margin-right: .5rem;
    text-align: right;
}

.filter-btn-container,
.filter-titles {
    margin-top: 0rem;
}

.text-line {
    display: block !important; 
}

.search-sec {
    padding-top: 1rem;
}

#search-sec .input-group {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

#search-sec .form-control {
    height: 40px;
    border: 1px solid #000000;
    border-right: none;
    border-radius: 4px 0 0 4px;
    padding: 8px 16px;
    font-size: 15.2px;
    color: #000;
}

#search-sec .btn-icon {
    height: 40px;
    width: 50px;
    font-size: 18px;
    color: #ffffff;
    background-color: #000000;
    border: 1px solid #000000;
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sticky-filters {
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}


#product-count {
    font-size: 16px; 
    color: #333;
    display: inline-block; 
    margin-top: 10px; 
    text-align: left; 
}
   
.btn-primary {
    background-color: #030836;
    border-color: #030836;
}

#view-toggle {
    display: none;
}

@media (min-width: 768px) {
    .list-view {
        display: flex;
    }

    #view-toggle {
        display: none;
    }
}

.view-toggle .btn-primary, .view-toggle .btn-secondary {
    padding: 2px 13px;
}

.view-toggle .btn-primary {
    box-shadow: none !important;
    background-color: #030836;
    color: #ffff;
    border: 3px solid #030836;
    font-size: 16px;
}

    .view-toggle .btn-primary:active {
        background-color: #030836 !important;
    }

.view-toggle .btn-secondary:active {
    background-color: #030836 !important;
}

.view-toggle .btn-secondary {
    height: auto;
    background-color: #fff;
    color: #030836;
    font-size: 16px;
    box-shadow: none !important;
}

    .view-toggle .btn-secondary:hover {
        background-color: #013220;
        color: #ffff;
    }


#sticky-filters {
    padding: 0;
    margin-top: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 1200px; 
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Search area */
#search-sec .input-group {
    width: 400px;
    margin: 0;
}

.button-controls {
    display: flex;
    align-items: center;
    gap: 20px; 
}

.filter-buttons {
    display: flex;
    gap: 10px; 
}

#back-to-range-btn.btn-secondary {
    background-color: #030836;
    color: #ffffff;
    margin-right: 10px;
}

.modal-body #filters {
    margin-bottom: 1rem;
}

#filtersModal .modal-footer {
    padding:.1rem;
}


@media (max-width: 768px) {
    #filters {
        padding: .5rem;
    }
    .modal-content{
        background:#ffff;
    }
    .modal-header{
        border-bottom:1px solid #ddd;
    }

    .custom-tooltip {
        font-size: 11px;
        padding: 6px 10px;
        max-width: 200px;
    }

    #modal-product-count {
        font-size: 14.5px;
        color: inherit;
        font-weight: 400;
    }

    #filtersModal .modal-header {
        padding-bottom: 0.5rem;
    }

    #type-items-container{
        margin-top:0rem !important;
    }
    #view-toggle {
        display: none;
    }

    .tile-section {
        font-size: 36px;
    }

    #filters .filter-item {
        margin-right: .4rem;
    }
    .f-item-title{
        font-size:19px;
    }

    #sticky-filters {
        gap: 0rem;
        justify-content: space-evenly;
        padding-left: 0px;
        padding-right: 0px;
    }

        #sticky-filters .mt-2 {
            margin-top: 0rem !important;
        }

        #sticky-filters .justify-content-start {
            justify-content: space-around !important;
        }

    .button-controls{
        margin-top:.4rem;
    }

    .modal-body {
        padding-top: .5rem;
        padding-left: .8rem;
        padding-right: .8rem;
    }

    .product-wrapper {
        padding: 0rem;
    }

    .slider-container .form-control {
        width: auto;
        font-size: 16px;
    }

    #sticky-filters .col-12 {
        width: 100%;
    }

    .input-group {
        width: 100%;
    }

    .input-group-append {
        width: auto;
    }

    #search-sec .form-control {
        font-size: 16px;
    }

    .d-flex {
        flex-direction: row;
    }

    .wrn-btn,
    .btn-secondary {
        flex-grow: 0;
        margin-right: 8px;
        margin-top: 10px;
        height: 35px;
    }

    .btn-secondary {
        margin-right: 0;
    }

    #product-content {
        background-color: #f8f9fa;
        overflow-y: auto;
    }

    .top-desc {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .slider-container .input-container {
        margin-top: 1rem;
        position: relative;
    }

    .unit {
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        font-size: 10px;
    }

    .filter-btn-container, .filter-titles{
        flex-wrap:wrap;
    }

    button.filter-item,
    .default {
        font-size: 13px;
        line-height: 1.4;
        padding: 6px 10px;
        margin-bottom: 0.35rem;
        width: fit-content;
        white-space: normal; /* allow wrapping */
        word-wrap: break-word; /* wrap long words */
        box-sizing: border-box;
    }

}

.slider-container .input-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-container .bs-slider {
    transition: opacity 0.3s ease, border-color 0.3s ease; 
    position: relative;
    border: 2px solid #585858b3; 
    border-radius: .4rem;
    background: #f8f9fa;
    padding: 1.4rem;
    margin-bottom: 1rem;
}

    .slider-container .bs-slider:not(.active-slider) {
        opacity: 0.65;
    }

    .slider-container .bs-slider.active-slider {
        opacity: 1;
        border-color: #ad974f;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

        .slider-container .bs-slider.active-slider::before {
            content: "Active";
            position: absolute;
            top: -10px;
            right: 10px;
            background-color: #4F7942; 
            color: white;
            font-size: 11px;
            padding: 2px 8px;
            border-radius: 10px;
            font-weight: bold;
        }

    .slider-container .bs-slider:not(.active-slider):hover {
        opacity: 0.85;
        cursor: pointer;
        border-color: #ccc; 
    }

    .slider-container .bs-slider.active-slider h3 {
        font-weight: 700;
    }

    .slider-container .bs-slider.active-slider .form-control {
        border-color: #ad974f; 
    }

    .slider-container .bs-slider:focus {
        border-color: #60c1ea;
    }

.slider-container .input-container label {
    margin-right: 10px;
}

.irs--round .irs-from,
.irs--round .irs-to,
.irs--round .irs-single {
    background-color: #ad974f !important;
}

    .irs--round .irs-from:before,
    .irs--round .irs-to:before,
    .irs--round .irs-single:before {
        border-top-color: #ad974f !important;
    }

.irs--round .irs-handle {
    border: 4px solid #00000094 !important;
}

.irs--round .irs-bar {
    background-color: #00000094 !important;
}

@media (min-width: 1924px) {

}

@media (min-width: 768px) {
    #sticky-filters .col-md-3 {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        flex: 0 0 auto;
        max-width: 25%;
    }

    #selectedids {
        margin-left: 24rem;
        padding-left: 0rem;
        font-size: 15px;
    }

    #filters {
        justify-content: center !important;
    }

    #filter-btn {
        margin-top: 0;
    }

    #application {
        padding-top: 1rem;
    }

    .filter-btn-container {
        margin-top: .5rem;
    }

    .f-item-title {
        margin-top: .5rem;
        font-size: 1.4rem;
    }

    .slider-container .bs-slider {
        margin-bottom: 1rem;
        margin-top: 1rem;
        padding: 1.5rem;
        margin-right: 1rem;
    }
}


@media only screen and (min-width: 768px) and (max-width: 1024px) {

    .wrn-btn, .btn-secondary {
        margin-top: 0;
    }

    .filters-container .col-md-1 {
        display: none;
    }
    .f-item-title{
        line-height:24px;
    }

    .filters-container .col-md-10 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    #sticky-filters {
        flex-direction: column;
        width: 100%;
    }

        #sticky-filters .input-group {
            width: 100%;
            max-width: 100%;
            margin-bottom: 15px;
        }

        #sticky-filters .button-controls {
            display: flex;
            justify-content: center;
            width: 100%;
        }

        #sticky-filters .filter-buttons {
            display: flex;
            gap: 15px;
        }

    #filters {
        width: 100%;
        padding: 0;
    }

        #application,
        #range_type,
        #sub-filters,
        #more-filters,
        #filters > .row {
            width: 100%;
            display: flex;
            flex-direction: row;
            margin-bottom: 15px;
        }

        #filters .col-md-2 {
            flex: 0 0 200px;
            max-width: 120px;
        }
        #filters .col-md-10,
        #type-items-container {
            flex: 0 0 calc(100% - 120px);
            max-width: calc(100% - 120px);
            display: flex;
            flex-wrap: wrap;
        }

    .filter-btn-container {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
    }

    .slider-container.col-md-10 {
        width: calc(100% - 120px);
        max-width: calc(100% - 120px);
        padding-right: 5px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .slider-container .irs,
    .slider-container .irs-with-grid {
        width: 100% !important;
    }

    .slider-container .slider-inputs-container {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .slider-container .form-control {
        padding: 3px !important;
    }

    .slider-container .slider-input-group {
        margin: 0 3px !important;
    }

}
