@import url("https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@30.1.0/dist/font-face.css"); /* Persian (fa) overrides */
/*html[dir="rtl"] body {*/
/*    direction: rtl;*/
/*    text-align: right;*/
/*    font-family: "Vazirmatn", "Tahoma", "Segoe UI", sans-serif;*/
/*    letter-spacing: 0;*/
/*}*/

/*html[dir="rtl"] .text-start{ text-align:right !important; }*/
/*html[dir="rtl"] .text-end{ text-align:left !important; }*/
/*html[dir="rtl"] .dropdown-menu{ text-align:right; }*/
/*html[dir="rtl"] input, html[dir="rtl"] textarea, html[dir="rtl"] select{ direction: rtl; }*/
/*html[dir="rtl"] .form-control::placeholder{ text-align:right; }*/
/*html[dir="rtl"] .breadcrumb{ direction: rtl; }*/
/*html[dir="rtl"] .modal-header .btn-close{ margin-left: 0; margin-right: auto; }*/
/*!* Fix icons in inputs when used *!*/
/*html[dir="rtl"] .input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){*/
/*  margin-right: -1px;*/
/*  margin-left: 0;*/
/*}*/
/* Optional: make numbers align nicely in tables */
/*html[dir="rtl"] table td, html[dir="rtl"] table th{ vertical-align: middle; }*/

/* Body and general text */
body, h1, h2, h3, h4, h5, h6, p, span, a, li, input, button {
    font-family: 'Vazir', sans-serif !important;

}

/* فلش پیش‌فرض منو (حالت بسته) */
.sidebar-menu li.dropdown > a::after {
    position: absolute;
    content: "\ea4e"; /* استفاده از آیکون فلش رو به پایین */
    font-family: remixicon;
    inset-block-start: 50%;
    inset-inline-end: 0.75rem;

    /* در حالت بسته، ۹۰ درجه می‌چرخد تا به سمت چپ اشاره کند */
    transform: translateY(-50%) rotate(90deg);

    transition: transform 0.25s ease; /* انیمیشن نرم برای چرخش */
    font-size: 1.125rem;
    pointer-events: none; /* جلوگیری از تداخل با کلیک روی زیرمنوها */
}

/* وقتی منو باز می‌شود (حالت باز) */
.sidebar-menu li.dropdown.open > a::after,
.sidebar-menu li.dropdown.dropdown-open > a::after {
    /* در حالت باز، چرخش به صفر برمی‌گردد تا رو به پایین باشد */
    transform: translateY(-50%) rotate(0deg);
}


/*[dir="ltr"] .start-0 {*/
/*  right: unset !important;*/
/*  left: auto !important;*/
/*}*/

.ql-snow .ql-picker.ql-font .ql-picker-label::before, .ql-snow .ql-picker.ql-font .ql-picker-item::before {
    float: left !important;
}

.ql-snow .ql-picker.ql-size .ql-picker-label::before, .ql-snow .ql-picker.ql-size .ql-picker-item::before {
    float: left !important;
}

.start-100 {
    right: unset !important;
    left: 100% !important;
    /*.alert {*/
    /*direction: ltr !important;*/
    /*display: flow-root !important;*/
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-start-start-radius: 8px;
    border-end-start-radius: 8px;
}

.btn-group .btn:last-child {
    border-start-end-radius: 8px;
    border-end-end-radius: 8px;
}

.toggle-icon.icon-left::after {
    all: unset !important;
    content: "\ea6e";
!important;
}

.left-line::before {
    left: unset !important;
    right: 0 !important;
}

.progress-wrapper {
    direction: ltr !important;
}

.progress {
    direction: ltr !important;
}

.audioplayer {
    direction: ltr !important;
}
/* ————— تثبیت موقعیت منو در RTL ————— */


.notification-header {
    display: block ruby !important;
}

/* فقط همان контейنری که منو از داخلش بیرون می‌زند */
.border.radius-8.overflow-hidden {
  overflow: visible !important;
}

#toolbar-container {
  position: relative;
  z-index: 1;
}

.dropdown-menu {
  z-index: 1056 !important;
}
