/**
 * استایل جامع برای تمام select های سیستم
 * دیزاین مدرن و فارسی
 */

/* استایل پایه برای همه select ها */
select,
select.form-control,
.form-control select {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    padding: 14px 18px !important;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    color: #000000 !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    appearance: menulist !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #000000 !important;
    opacity: 1 !important;
    filter: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
    z-index: 10 !important;
    text-indent: 0 !important;
    text-overflow: clip !important;
    overflow: visible !important;
    min-height: 48px !important;
}

/* حذف المان‌های مزاحم */
select::before,
select::after,
select.form-control::before,
select.form-control::after {
    display: none !important;
    content: none !important;
}

/* حالت hover */
select:hover,
select.form-control:hover {
    border-color: #667eea !important;
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15) !important;
    transform: translateY(-1px) !important;
}

/* حالت focus */
select:focus,
select.form-control:focus {
    outline: none !important;
    border-color: #667eea !important;
    background-color: #ffffff !important;
    background-image: none !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 4px 12px rgba(102, 126, 234, 0.2) !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    transform: translateY(-1px) !important;
}

/* استایل option ها */
select option,
select.form-control option {
    padding: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #000000 !important;
    background-color: #ffffff !important;
    text-shadow: none !important;
}

/* option انتخاب شده */
select option:checked,
select.form-control option:checked {
    background-color: #667eea !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* select های کوچک (در فیلترها) */
select.select-sm {
    padding: 10px 15px !important;
    font-size: 14px !important;
    min-height: 42px !important;
}

/* select های disabled */
select:disabled,
select.form-control:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    background-color: #f7fafc !important;
}

/* select در modal ها */
.modal select,
.modal select.form-control {
    z-index: 1050 !important;
}

/* select در sidebar */
.sidebar select,
.primary-sidebar select {
    background-color: rgba(255, 255, 255, 0.95) !important;
}

/* اصلاح برای مرورگرهای مختلف */
@-moz-document url-prefix() {
    select,
    select.form-control {
        padding-left: 10px !important;
    }
}

/* Safari */
@supports (-webkit-appearance: none) {
    select,
    select.form-control {
        -webkit-appearance: menulist !important;
    }
}

/* Edge */
@supports (-ms-ime-align: auto) {
    select,
    select.form-control {
        padding-right: 30px !important;
    }
}
