﻿
.smart_filter_container {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    h2

{
    font-size: 24px;
    font-weight: 600;
    margin-top: 40px;
}

.smart_filter_mobile_header {
    display: none;
    svg

{
    transition: transform 0.3s ease;
}

}

.base_filter {
    flex: 1;
    border: 1px solid #d9d9d9;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 100px;
    .base_filter_item

{
    padding-left: 16px;
    height: 60px;
    cursor: pointer;
    position: relative;
    &:hover

{
    background-color: #ebebeb;
    border-radius: 200px;
}

.base_filter_item_title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 16px;
    p

{
    max-width: 250px;
    font-size: 16px;
    opacity: 0.5;
    text-align: start;
}

span {
    font-weight: 500;
    font-size: 14px;
}

}

.base_filter_item_clear_button {
    display: none;
    align-items: center;
    justify-content: center;
    background: #c4bebe !important;
    width: 20px;
    height: 20px;
    border-radius: 100px;
    margin-right: 10px;
}

    .base_filter_item_clear_button.hidden {
        display: none;
    }

&:hover .base_filter_item_clear_button:not(.hidden) {
    display: flex;
}

.base_filter_item_list {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    min-width: 150px;
    height: 400px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
    .base_filter_container_item_detail_list_item

{
    padding: 8px;
    border-radius: 4px;
    &:hover

{
    background-color: #ebebeb;
    cursor: pointer;
}

}

.search_input {
    width: 100%;
    padding: 8px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 20px;
    height: 40px;
}

.list_icon {
    /* width: 20px;
          height: 20px; */
    border-radius: 6px;
    padding: 10px;
    background-color: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
}

ul {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 8px;
    overflow: auto;
    padding-right: 8px;
    &::-webkit-scrollbar

{
    width: 5px;
    height: 5px;
    background-color: #e1e4ea;
}

&::-webkit-scrollbar-thumb {
    background-color: #999999;
    border-radius: 8px;
}

li {
    text-align: left;
    list-style: none;
    width: 100%;
    border-radius: 12px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    &:hover

{
    font-weight: 500;
    background-color: #f4f4f4;
    cursor: pointer;
    border-radius: 12px;
}

}

li.select {
    background-color: #04b779;
    font-weight: 500;
    color: #ffffff !important;
    .list_icon

{
    background-color: #ffff;
    border-radius: 10px;
}

svg {
    fill: #04b779 !important;
}

}
}
}

.base_filter_item_list.hidden {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
    pointer-events: none;
}

.base_filter_item_list.calendar {
    background: none;
    box-shadow: none;
    border-radius: 20px;
    padding: 0px !important;
    z-index: 10;
    min-width: 100%;
    height: 100%;
    top: 40px !important;
}

}
}

.base_filter_button {
    background-color: #ffff;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 60px;
    border-radius: 100px;
    padding: 0 30px;
    position: relative;
    border: 1px solid #d9d9d9;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    &:hover

{
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}

span {
    font-weight: 500;
    font-size: 16px;
}

badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #27ae60;
    color: #ffffff;
    min-width: 30px;
    padding: 0px 7px;
    height: 30px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
}

}

.second_filter_container {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    .second_filter_button

{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #d9d9d9;
    background-color: #ffff;
    padding: 0px 12px;
    border-radius: 100px;
    height: 40px;
    font-size: 14px;
    color: #0d0b11;
    text-wrap: nowrap;
}

.second_filter_button.select {
    border: 1px solid #27ae60;
    font-weight: 500;
    background-color: #27ae60;
    color: #ffff !important;
    svg

{
    fill: #ffff !important;
}

}

.second_filter_button.filter {
    display: none;
}

}
}

.smart_filter_dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    .smart_filter_dialog_container

{
    background-color: #ffffff;
    border-radius: 20px 20px 0 0;
    width: 90%;
    max-width: 600px;
    max-height: 100%;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    .smart_filter_dialog_header

{
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px;
    #showFilterDialog2

{
    background: none;
}

}

.smart_filter_dialog_body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
    overflow-y: auto;
    max-height: 75vh;
    height: auto;
    &::-webkit-scrollbar

{
    width: 5px;
    height: 5px;
    background-color: #e1e4ea;
}

&::-webkit-scrollbar-thumb {
    background-color: #999999;
    border-radius: 8px;
}

h6 {
    font-weight: 600;
    margin-bottom: 16px;
}

.smart_filter_dialog_body_list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    .smart_filter_dialog_body_list_item

{
    padding: 8px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    font-size: 14px;
    background: #ffff !important;
    color: black !important;

    &:hover
{
    background-color: #ebebeb;
    cursor: pointer;
}

}

.smart_filter_dialog_body_list_item.select {
    /*background-color: #27AE60 !important;*/
    border: 1px solid black !important;
    /*color: #ffff !important;*/
}

}

.smart_filter_dialog_body_order {
    display: flex;
    flex-direction: column;
    gap: 12px;
    label

{
    background: none;
    display: flex;
    align-items: center;
    gap: 8px;
    input

{
    border: 1px solid #d9d9d9;
    border-radius: 100px;
    width: 16px;
    height: 16px;
}

input[type="radio"] {
    accent-color: #27a75d;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d9d9d9;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease-in-out;
}

    input[type="checkbox"]:checked {
        background-color: #27a75d;
        border-color: #27a75d;
    }

        input[type="checkbox"]:checked::after {
            content: "";
            position: absolute;
            left: 6px;
            top: 2px;
            width: 5px;
            height: 10px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

}
}

.show_more_button {
    margin-top: 20px;
    padding: 8px 16px;
    background: none;
    font-size: 14px;
    color: #0C66E4;
    cursor: pointer;
    width: 100%;
}

}

.select_order {
    border: 1px solid #e0e0e0;
    width: 100%;
    border-radius: 12px;
    padding: 12px;
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    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='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M7 15l5 5 5-5'/%3e%3cpath d='M7 9l5-5 5 5'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
}

.smart_filter_dialog_footer {
    border-top: 1px solid #e0e0e0;
    padding: 20px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .all_clear_button

{
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 12px;
    &:hover

{
    border-radius: 6px;
    background-color: #ebebeb;
}

}

.apply_filter_button {
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    padding: 12px 20px;
    background-color: #27ae60;
    color: #ffffff;
    border-radius: 6px;
    &:hover

{
    background-color: #10562c;
}

}
}
}
}

.smart_filter_dialog.active {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.6);
    .smart_filter_dialog_container

{
    transform: translateY(0);
}

}

/* Media Queries */
@media screen and (max-width: 1239px) {
    .smart_filter_container {
        margin: 20px;
        h2

{
    font-size: 18px !important;
    font-weight: 600;
    margin-top: 20px;
}

}
}

@media screen and (max-width: 1024px) {
    .filter_area {
        display: flex;
        flex-direction: column;
    }

        .filter_area.hidden {
            display: none;
        }

    .smart_filter_mobile_header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        margin-bottom: 16px;
        span

{
    font-size: 18px !important;
    font-weight: 600;
    display: flex !important;
    color: black !important;
}

svg {
    transition: transform 0.3s ease;
}

}

.base_filter {
    border-radius: 12px !important;
    margin-left: 0px !important;
    margin-right: 0px !important;
    .base_filter_item

{
    &:hover

{
    border-radius: 12px !important;
}

}
}

.base_filter_button {
    display: none !important;
}

.second_filter_container {
    overflow: auto !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
}

.second_filter_button.filter {
    display: flex !important;
    background-color: #ffffff;
    border: 1px solid #d9d9d9 !important;
    font-weight: 500;
    width: 40px;
    height: 40px;
    position: relative;
    badge

{
    position: absolute;
    top: 0px;
    right: -5px;
    background-color: #27ae60;
    width: 14px;
    height: 14px;
    border-radius: 100px;
}

}


}

@media screen and (max-width: 768px) {
    .second_filter_container {
        padding-bottom: 10px;
    }

    .smart_filter_dialog_container {
        width: 100% !important;
        overflow: hidden !important;
    }
}

.truncate {
    white-space: nowrap; /* Satır kırılmasını engeller */
    overflow: hidden; /* Taşan kısmı gizler */
    text-overflow: ellipsis; /* "..." ekler */
}

#demo-range {
    display: none !important; /* Input'u gizle, sadece takvim görünsün */
}

.flatpickr-calendar.inline {
    width: 100%;
    margin: 0px auto;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

.flatpickr-innerContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.flatpickr-current-month {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    left: 9% !important;
    width: 80% !important;
    height: 40px !important;
}

.flatpickr-prev-month {
    left: 5px !important;
    top: 7px !important;
}

.flatpickr-next-month {
    right: 5px !important;
    top: 7px !important;
}

.flatpickr-current-month {
    height: 45px !important;
}

.flatpickr-monthDropdown-months {
    background: none !important;
    margin: 0px !important;
    &:hover

{
    background: none !important;
    margin: 0px !important;
}

}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
    background: #04b779 !important;
    border-color: #04b779 !important;
}

    .flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n + 1)),
    .flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n + 1)),
    .flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n + 1)) {
        box-shadow: -10px 0 0 #e6e6e6 !important;
    }

/* Utility Classes */
.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Slider Styles */
.ui-slider {
    position: relative;
    height: 6px;
    background: #e0e0e0;
    border: none;
    border-radius: 10px;
    margin: 0 12px;
}

.ui-slider-range {
    background: #27ae60;
    border-radius: 10px;
    position: absolute;
    height: 100%;
}

.ui-slider-handle {
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid #0d0b11;
    border-radius: 50%;
    cursor: pointer;
    outline: none;
    top: 0 !important;
    margin-left: -12px !important;
    transform: translateY(-50%);
    position: absolute;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.step-marks {
    position: relative;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    padding: 0;
    height: 20px;
    margin-left: 12px;
    margin-right: 12px;
}

    .step-marks span {
        position: absolute;
        transform: translateX(-50%);
    }

.slide-range-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

#age-step-slider {
    margin-top: 30px;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
.select_order_v2_container {
    position: relative;
}

.select_order_v2 {
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.select_order_v2_list {
    position: absolute;
    background: #ffffff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    margin-top: 8px;
    z-index: 10;
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.select_order_v2_list_item {
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    &:hover

{
    background-color: #fafafa;
}

}

.select_order_v2_list_item.active {
    background-color: #ebebeb;
    font-weight: 600;
}

.select_order_v2_list.active {
    display: flex;
}
