﻿.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.dropdown-container {
    position: relative;
    display: inline-block;
    width: 100%;
  
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;

}

.dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    width: 100%;
    border: 0.5px solid #eee;
    border-radius: 3px;
    background-color: #F7F9FB;
    cursor: pointer;
    height: 35px;
    color:#ccc;
    font-size:14px;
}

    .dropdown-btn .icon-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-left: 8px;
    }

        .dropdown-btn .icon-container i {
            font-size: 12px;
            line-height: 1;
            color: var(--bbb-secondary);
        }

.koa-dropdown-menu {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    border-radius:0px 0px 10px 10px;
    width: 100%;
    max-height: 600px;
    overflow-y: hidden; 
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
    display: flex;
    flex-direction: column; 
    z-index:9999;
}
.dropdown-title {
    color: #666;
    font-weight: 600;
}
.top-cancel {
    margin-left: auto;
    color: lightgray;
}

.search-box-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%; 
}

.search-box {
    width: 100%;
    padding: 8px;
    border: 1px solid #eee;
    padding-right: 30px;
    height: 30px;
    font-size: 14px;
}
    .search-box:focus {
        border-color: #ccc;
        outline: none;
    }

.clear-search-btn {
    position: absolute;
    right: 10px; 
    top: 50%;
    transform: translateY(-50%); 
    color: lightgray;
    font-size: 16px;
    cursor: pointer;
}

.dropdown-list-container {
    margin-top: 5px;
    flex-grow: 1;
    overflow-y: auto; 
    overflow-x:hidden;
    max-height: 300px; 
}
    .dropdown-list-container::-webkit-scrollbar {
        width: 8px; 
      
    }

    .dropdown-list-container::-webkit-scrollbar-track {
        background: transparent; 
        margin-bottom: 5px;
    }

    .dropdown-list-container::-webkit-scrollbar-thumb {
        background: rgba(150, 150, 150, 0.5);
        border-radius: 10px; 
        transition: background 0.3s ease-in-out;
    }

        .dropdown-list-container::-webkit-scrollbar-thumb:hover {
            background: rgba(100, 100, 100, 0.8); 
        }
.dropdown-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    margin-right: 3px;
    margin-bottom: 5px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    color: var(--bbb-primary);
    
}
.dropdown-container li{
    list-style:none !important;
    padding-left:0 !important;
    line-height:1.5;
}

.group {
    margin-left: 0px;
}

    .group .group-title {
        font-weight: bold;
        margin-left:3px;
       
    }
    .group .group-label {
        background-color: #3AACED;
        color: white;
        width: 100%;
        padding: 3px 3px 3px 5px;
    }

ul ul {
    padding-inline-start: 10px;
    list-style-type: none;
    margin-left: 5px;
   
}
li label{
    display:flex;
    align-items:center;
    gap:5px;
    font-size:14px;
    font-weight:500;
}
    li label:hover {
        background-color: #F8F8F8;
    }
.dropdown-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #ccc;
}

    .dropdown-footer button {
        padding: 5px 10px;
        border: none;
        cursor: pointer;
    }

.clear-btn {
    background-color: #FF385C;
    color: white;
    border-radius:3px;
}

.apply-btn {
    background-color: #3AACED;
    color: white;
    border-radius: 3px;
}

.dropdown-container button:disabled {
    background-color: #ccc !important; /* Change this to your preferred color */
    color: #666 !important; /* Change text color if needed */
    border: 1px solid #aaa; /* Optional: Change border color */
    cursor: not-allowed;
}
.koa-dropdown-menu-title {
    display:none;
}

.dropdown-list input[type="checkbox"] {
    float: left;
    position: relative;
    border: 0.2px solid var(--bbb-secondary); /* Varsayılan border rengi */
    border-radius: 3px;
    cursor: pointer;
    padding: 0;
    width: 17px;
    height: 17px;
    color: #fff;
    background: #fff !important; 
    -webkit-appearance: none;
    transition: all 0.3s ease; 
}

    .dropdown-list input[type="checkbox"]:checked {
        background: var(--bbb-secondary) !important;
        /*border-color: #FF385C !important;*/ 
    }

    .dropdown-list input[type="checkbox"]:checked:after {
        font-family: "Font Awesome 6 Free"; 
        font-weight: 900;
        content: "\f00c"; 
        font-size: 12px;
        color: white !important; 
        position: absolute;
        top: -1px;
        left: 2px;
        z-index: 20;
    }
@media (max-width: 767px) {
    .koa-dropdown-menu {
        position: fixed;
        bottom: 0;
        left: 0;
        margin-right: 2px;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        max-height:50%;
       
    }

    .koa-dropdown-menu-title{
        display:block;
        text-align:center;
    }
    .koaselect-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgb(56 65 83 / 80%);
       
        display: none; 
        justify-content: center;
        align-items: center;
        z-index: 1000; 
    }
    

    li label {
        font-size: 16px;
    }
    .dropdown-container li {
        line-height:1.5;
    }
}

.koaselect-overlay {
   display:none;
}

.dropdown-invalid .dropdown-btn {
    border-color: #dc3545 !important;
}

.dropdown-validation-error {
    display: block;
    color: var(--bs-warning);
    font-size: 0.70em;
    margin-top: 5px;
}
