@font-face {
    font-family: 'YekanBakhBold';
    src: url('/lib/Dropmate/Font/YekanBakhBold.woff') format('woff');
}

@font-face {
    font-family: 'YekanBakhHeavy';
    src: url('/lib/Dropmate/Font/YekanBakhHeavy.woff') format('woff');
}

@font-face {
    font-family: 'YekanBakhMedium';
    src: url('/lib/Dropmate/Font/YekanBakhMedium.woff') format('woff');
}


.dropmate * {

}

.dropdown-list {
    padding: 0px !important;
    padding-right: 9px !important;
    padding-left: 9px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    list-style: none;
    margin: 0px !important;
}

.dropdown-group {
    font-family: 'YekanBakhHeavy' !important;
    font-size: 14px;
    margin-top: 5px;
    margin-right: 5px;
    margin-bottom: 4px;
}

    .dropdown-group ul {
        padding: 0px !important;
        padding-right: 2px !important;
        padding-left: 2px !important;
        padding-top: 4px !important;
        padding-bottom: 4px !important;
    }






.dropmate {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
}

.selected-option {
    font-family: 'YekanBakhMedium', sans-serif;
    color: #5e5e5e;
}

.dropdown-toggle {
    width: 100%;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}


.selected-items {
    margin-bottom: 5px;
    overflow: hidden;
    position: absolute;
    top: 6px;
    left: 39px;
    z-index: 1;
    justify-content: center;
}





.selected-tag {
    background-color: #cfdfff;
    color: #004eec;
    border-radius: 16px;
    padding: 1px 7px;
    margin: 5px;
    display: inline-flex;
    align-items: center;
    font-family: 'YekanBakhMedium';
    font-size: 13px;
    border: 1px solid #204eee;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease, justify-content 0.3s ease;
    text-align: center;
    justify-content: center;
}

    .selected-tag:hover {
        background-color: #004eec;
        color: white;
    }

    .selected-tag .remove-tag {
        transition: justify-content 0.3s ease, margin-left 0.3s ease;
        width: 100%;
        /* Takes full width to center the icon later */
    }

    .selected-tag .tag-text {
        display: inline-block;
        margin-right: 5px;
        transition: opacity 0.3s ease;
        display: inline-block;
        margin-right: 5px;
        transition: opacity 0.3s ease;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 81px;
        min-width: 51px;
    }


    .selected-tag .count-tag-text {
        display: inline-block;
        transition: opacity 0.3s ease;
    }



    .selected-tag .remove-icon {
        display: inline-block;
        width: 12px;
        height: 12px;
        margin: 5px 4px;
        transition: opacity 0.3s ease;
    }









.clear-all-icon {
    width: 20px;
    height: 20px;
    background-color: #ff4d4f;
    color: white;
    border-radius: 50%;
    display: inline-block;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: -35px;
}

.dropdown-menu {
    display: block;
    /* Ensure it's always block, we'll hide with max-height and opacity */
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    z-index: 10;
    max-height: 0;
    /* Set initial max-height to 0 */
    opacity: 0;
    /* Set initial opacity to 0 */
    overflow: hidden;
    /* Hide content when max-height is 0 */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: max-height 0.4s ease, opacity 0.4s ease;
    /* Smooth transition */
}

    .dropdown-menu.active {
        max-height: 250px;
        /* Set a larger max-height when active */
        opacity: 1;
        /* Full opacity when active */
        overflow: auto;
    }


.dropdown-item {
    padding: 5px;
    margin: 4px 0px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    background-color: #f8f8f8;
    color: #4d4d4d;
    font-family: 'YekanBakhBold';
    white-space: nowrap;
    overflow: auto;
    text-overflow: clip;
}

    .dropdown-item:hover {
        background-color: #eaeaea;
    }

    .dropdown-item img {
        border-radius: 50%;
        width: 25px;
        height: 25px;
        border: 1px solid #bcbcbc;
        margin-left: 5px;
    }

.search-input {
    width: 100%;
    padding: 0;
    font-size: 14px;
    border: none;
    background-color: transparent;
    color: #5e5e5e;
    outline: none;
    font-family: 'YekanBakhMedium';
    margin-bottom: 0px !important;
}

.dropdown-checkbox i.fa-regular.fa-circle {
    color: transparent;
    border-radius: 50%;
    border: 2px dashed #c0c0c0;
    box-sizing: border-box;
    /* Ensures the border is inside the element */
    margin-left: 10px;
}


.dropdown-checkbox .fa-check-circle {
    color: #577d4f;
    font-size: 16px !important;
    border-radius: 50%;
    border: 1px dashed transparent;
    margin-left: 10px;
}

.dropdown-arrow {
    font-size: 13px;
    margin-left: 4px;
    padding-top: 6px;
    color: #9b9b9b;
    transition: transform 0.3s ease;
    /* Add transition for smooth rotation */
}



.dropdown-item.selected {
    background-color: #d7f2d1;
    color: #4d4d4d;
}

    .dropdown-item.selected:hover {
        background-color: #acd6a3;
        color: #4d4d4d;
    }


/* Count tag */
/* Fixed width for the tag to prevent size change */
.selected-tag.remaining-count {
    background-color: #cfdfff;
    color: #004eec;
    border: 1px solid #204eee;
    border-radius: 50%;
    padding: 1px 9px;
    margin: 5px;
    display: inline-flex;
    align-items: center;
    font-family: 'YekanBakhMedium';
    font-size: 13px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
    justify-content: center;
    text-align: center;
}

    .selected-tag.remaining-count .remove-icon,
    .selected-tag.remaining-count .count-tag-text {
        transition: opacity 0.3s ease;
    }

    .selected-tag.remaining-count .remove-icon {
        position: absolute;
        top: -2px;
        opacity: 0;
    }

    /* Hide the count on hover and show the remove icon */
    .selected-tag.remaining-count:hover {
        background-color: #004eec;
        color: #cfdfff;
    }

        .selected-tag.remaining-count:hover .count-tag-text {
            opacity: 0;
        }

        .selected-tag.remaining-count:hover .remove-icon {
            opacity: 1;
        }


/* Update the group label styles */
.group-label {
    font-family: 'YekanBakhHeavy';
    background-color: #fefefe;
    color: #004eec;
    border-radius: 5px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    /* This aligns the icon to the left of the text */
    align-items: center;
    /* Vertically align the icon and text */
    border: 1px solid #004eec;
    cursor: pointer;
    transition: 0.2s ease;
}

    .group-label:hover {
        transition: 0.2s ease;
        background-color: #004eec;
        color: #fefefe;
        border: 1px solid #fefefe;
    }

    .group-label .group-toggle {
        margin-left: 10px;
        /* Add some space between the text and the icon */
        transform: rotate(0);
        transition: transform 0.3s ease;
    }

        .group-label .group-toggle.collapsed {
            transform: rotate(-90deg);
        }


.group-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

    .group-items.expanded {
        max-height: 5000px;
        /* Set a max value, large enough for the content */
        transition: max-height 0.3s ease-in;
    }



/* Initially collapsed state */
.dropdown-group .group-items {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    /* Slight slide effect */
    transition: opacity 0.2s ease, transform 0.2s ease;
    /* Smooth transitions */
}

    /* Expanded state */
    .dropdown-group .group-items.expanded {
        display: block;
        opacity: 1;
        transform: translateY(0);
        /* Reset slide */
    }



.option-description {
    font-size: 12px;
    color: #707070;
    display: inline-block;
    margin: 0px 5px;
    font-family: 'YekanBakhMedium';
    white-space: nowrap;
/*    overflow: auto;*/
    text-overflow: clip;
}

/* Style for disabled dropdown items */
.dropdown-item.disabled {
    background-color: #f0f0f0;
    /* Light gray background */
    color: #a1a1a1;
    /* Gray text color */
    cursor: not-allowed;
    /* Disable hover and click */
}

    .dropdown-item.disabled:hover {
        background-color: #f0f0f0;
        /* Prevent background change on hover */
        color: #a1a1a1;
        /* Maintain gray color on hover */
    }

/* Style for Select All - make it look like other options but different color */
.dropdown-item.select-all {
    background-color: #eef7ff;
    /* Light blue background */
    color: #004eec;
    /* Blue text */
    cursor: pointer;
}

    .dropdown-item.select-all .dropdown-checkbox i.fa-regular.fa-circle {
        color: transparent;
        /* Blue text */
    }

    .dropdown-item.select-all:hover {
        background-color: #d0eaff;
        /* Darker blue on hover */
    }

    .dropdown-item.select-all .dropdown-checkbox i {
        color: #004eec;
        /* Blue checkbox color */
    }



/* Default styles for the icons */
.dropdown-fa-icon {
    color: #004eec;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    border: 1px solid #bcbcbc;
    margin-left: 5px;
    transition: border 0.3s ease;
    position: relative; /* Make the circle the reference for the absolute icon */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Border transition */
}


.dropdown-item:hover .dropdown-fa-icon {
    border: 1px solid #004eec;
}

/* Media query for small screens */
@media (max-width: 600px) {
    .dropdown-fa-icon {
        width: 18px;
        /* Reduce the icon size for small screens */
        height: 18px;
        /* Keep the aspect ratio */
        margin-left: 3px;
        /* Adjust the margin */
    }

    .dropdown-item {
        padding: 5px;
        /* Reduce padding for smaller space */
    }
}


/* Default icon styles */
.dropdown-fa-icon {
    color: #004eec;
    border-radius: 50%;
    min-width: 25px !important;
    width: 25px;
    height: 25px;
    border: 1px solid #bcbcbc;
    margin-left: 5px;
    transition: border 0.2s ease;
    /* Add transition for border */
}

    .dropdown-fa-icon::before {
        color: #004eec;

    }

.dropdown-item:hover .dropdown-fa-icon {
    border: 1px solid #6e6e6e;
    /* Hover effect */
}

/* Media query to hide icons on small screens */
/*@media (max-width: 650px) {
    .dropdown-fa-icon {
        display: none !important;*/
        /* Hide icons on small screens */
    /*}
}*/


mark {
    background-color: burlywood;
    unicode-bidi: isolate;
    /* Ensures no word breaking */
    direction: rtl;
    /* Ensure the text maintains RTL direction */
}


/* Initially hidden state */
.no-results-message {
    opacity: 0;
    max-height: 0;
    /* Ensure the element collapses */
    overflow: hidden;
    visibility: hidden;
    /* Make it invisible */
    transition: opacity 0.4s ease, max-height 0.4s ease, visibility 0.4s ease;
    text-align: center;
    padding: 10px;
    font-size: 1rem;
    color: #d9534f;
    border-radius: 8px;
    margin-bottom: 5px;
    position: absolute;
    /* Remove it from document flow */
    left: 0;
    /* Adjust positioning */
    right: 0;
    top: 50%;
    /* Center it vertically in the dropdown */
    transform: translateY(-50%);
    /* Vertically center it */
    overflow: hidden;
}

    /* When the message is shown */
    .no-results-message.show {
        opacity: 1;
        max-height: 100px;
        /* Adjust based on the height of your message */
        visibility: visible;
        /* Make it visible */
        position: relative;
        /* Restore to the document flow when shown */
        transform: translateY(0);
        /* Reset vertical alignment */
    }

    /* Styling for the text */
    .no-results-message span {
        vertical-align: middle;
        margin-right: 5px;
    }



.selected-items-group {
    margin-right: 0px;
}

    .selected-items-group .group-label {
        font-family: 'YekanBakhBold';
        background-color: #f8f8f8;
        color: #524D4A;
        border-radius: 6px;
        padding: 4px 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: 1px solid #524d4d42;
        cursor: pointer;
        transition: 0.2s ease;
        display: inline-flex;
    }

        .selected-items-group .group-label i {
            margin-right: 4px;
            font-size: 12px;
        }

/* 
.dropdown-item.chosen-selected {
  background-color: #d7f2d1;
  color: #4d4d4d;
}

.dropdown-item.chosen-selected:hover {
  background-color: #acd6a3;
  color: #4d4d4d;
} */

.selected-items-group-divider {
    height: 1px;
    background-color: #d1d1d1;
    width: 100%;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
    margin-bottom: 6px;
    margin-top: 6px;
}

.dropdown-disabled {
    opacity: 0.5;
    pointer-events: none;
}

    .dropdown-disabled .dropdown-toggle {
        cursor: not-allowed;
    }
