/* استایل برای تمام dropdown/select ها در کل سایت */
select,
select.modern-input,
select.form-select,
select.form-control,
.modal-content select,
.modal select,
.filter-select,
#filterCourseType,
#filterDepartment {
    background: #1a1a2e !important;
    color: white !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-radius: 12px !important;
    padding: 10px 32px 10px 16px !important;
    cursor: pointer !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 16px;
    transition: all 0.3s ease;
}

/* hover effect */
select:hover,
select.modern-input:hover,
select.form-select:hover,
.modal-content select:hover,
.filter-select:hover {
    border-color: #8b5cf6 !important;
    background: #1e1e3a !important;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

/* focus effect */
select:focus,
select:active,
select.modern-input:focus,
select.form-select:focus,
.modal-content select:focus,
.filter-select:focus {
    outline: none !important;
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3) !important;
}

/* استایل آپشن‌ها */
select option,
.modern-input option,
.form-select option,
.form-control option,
.modal-content option,
.modal option,
.filter-select option {
    background: #0f0f23 !important;
    color: #e0e0e0 !important;
    padding: 12px !important;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

select option:hover,
select option:checked,
.modern-input option:hover,
.modern-input option:checked,
.form-select option:hover,
.filter-select option:hover {
    background: linear-gradient(135deg, #8b5cf6, #ec4899) !important;
    color: white !important;
}

/* disabled state */
select:disabled,
select.modern-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* برای مرورگر فایرفاکس */
@-moz-document url-prefix() {
    select {
        background-color: #1a1a2e !important;
        color: white !important;
    }
}

/* برای مرورگر Edge */
select::-ms-expand {
    display: none;
}