/* ===== Font Face ===== */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

/* ===== Global Styles ===== */
body {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    background: #f8f9fa;
    direction: rtl;
    font-size: 14px;
}

.card {
    border-radius: 12px;
}

input, button {
    border-radius: 8px !important;
    font-family: 'Vazirmatn', Tahoma;
}

h1, h2, h3, h4, h5 {
    font-weight: bold;
}

.form-control:focus,
.form-select:focus,
.category-select:focus,
.select2-selection:focus {
    box-shadow: 0 0 0 0.1rem rgba(75, 146, 253, 0.25) !important;
}
.select2-selection {
    border: 1px solid #d3d3d3 !important;
}
.select2-dropdown {
    border: 1px solid #d3d3d3 !important;
    border-top: none !important;
}
/* استایل focus برای selection (فیلد اصلی) */
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5 .select2-selection:focus {
    box-shadow: 0 0 0 0.1rem rgba(75, 146, 253, 0.25) !important;
    border-color: #86b7fe !important;
    outline: 0 !important;
}

/* وقتی باکس باز میشه */
.select2-container--open .select2-selection--single,
.select2-container--open .select2-selection--multiple {
    box-shadow: 0 0 0 0.1rem rgba(75, 146, 253, 0.25) !important;
    border-color: #86b7fe !important;
    border-bottom: none !important;
}

/* استایل focus برای search input داخل dropdown */
.select2-search__field:focus {
    box-shadow: 0 0 0 0.1rem rgba(75, 146, 253, 0.25) !important;
    border-color: #458fff !important;
    outline: 0 !important;
}