.nedagar-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 5px;
    background-color: #f5f5f5;
    position: relative;
}

.nedagar-search-container {
    position: relative;
    flex-grow: 1;
}

.nedagar-search-input {
    width: 100%;
    padding: 8px 40px 8px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
}

.nedagar-post-type-select {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    opacity: 0;
}

.nedagar-dropdown-trigger {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    height: 30px;
    padding: 0 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background-color 0.3s;
}

.nedagar-dropdown-trigger:hover {
    background-color: #0056b3;
}

.nedagar-dropdown-trigger.text .trigger-text {
    font-size: 14px;
}

.nedagar-dropdown-trigger.icon .trigger-icon {
    font-size: 16px;
}

.nedagar-dropdown-trigger.text_icon .trigger-text,
.nedagar-dropdown-trigger.text_icon .trigger-icon {
    font-size: 14px;
}

.nedagar-dropdown-trigger .trigger-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.nedagar-dropdown-trigger .trigger-icon {
    display: inline-block;
}

.nedagar-submit-button {
    padding: 8px 12px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background-color 0.3s;
}

.nedagar-submit-button:hover {
    background-color: #0056b3;
}

.nedagar-submit-button.text .submit-text {
    font-size: 14px;
}

.nedagar-submit-button.icon .submit-icon {
    font-size: 16px;
}

.nedagar-submit-button.text_icon .submit-text,
.nedagar-submit-button.text_icon .submit-icon {
    font-size: 14px;
}

.nedagar-submit-button .submit-text {
    white-space: nowrap;
}

.nedagar-submit-button .submit-icon {
    display: inline-block;
}

.select2-container {
    width: 200px !important;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 1000;
    margin-top: 5px;
    display: block;
}

.select2-container .select2-selection--multiple {
    height: auto;
    min-height: 34px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    display: none;
}

.select2-container .select2-selection__rendered {
    padding: 4px 8px;
}

.select2-container .select2-selection__choice {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 2px 5px;
    margin: 2px;
    display: inline-block;
}

.select2-container .select2-selection__choice__remove {
    color: #fff;
    margin-left: 5px;
    cursor: pointer;
}

.select2-container .select2-selection__arrow {
    height: 34px;
    right: 5px;
    top: 0;
    display: none;
}

.select2-dropdown {
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: block;
}

.select2-results__option {
    padding: 5px 10px;
}

.select2-results__option .select2-checkbox {
    margin-right: 5px;
    vertical-align: middle;
}

/* پشتیبانی از RTL */
body.rtl .nedagar-post-type-select {
    right: auto;
    left: 0;
}

body.rtl .nedagar-dropdown-trigger {
    right: auto;
    left: 5px;
}

body.rtl .select2-container {
    right: auto;
    left: 0;
}

body.rtl .select2-container .select2-selection__rendered {
    padding-right: 8px;
    padding-left: 8px;
}

body.rtl .select2-container .select2-selection__choice__remove {
    margin-left: 0;
    margin-right: 5px;
}

body.rtl .select2-results__option .select2-checkbox {
    margin-right: 0;
    margin-left: 5px;
}

body.rtl .nedagar-submit-button {
    margin-left: 10px;
    margin-right: 0;
}