@font-face {
    font-family: 'BYekan';
    src: url('../fonts/BYekan/BYekan.ttf') format('truetype');
}

@font-face {
    font-family: 'BYekanBold';
    src: url('../fonts/BYekan/BYekanBold.ttf') format('Bold');
}

@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/IRSans/Sans.ttf') format('ttf'),
        url('../fonts/IRSans/Sans.eot') format('eot'),
        url('../fonts/IRSans/Sans.woff') format('woff');

}

@font-face {
    font-family: DJFont;
    src: url('../fonts/DJFont/djfont.ttf');
}

@font-face {
    font-family: 'IranYekan';
    src: url('../fonts/iranyekan/Qs_Iranyekan.ttf');
}

body,
.date {
    font-family: 'DJFont', Arial, sans-serif;
}

/* Custom RTL Styles */
body {
    direction: rtl;
    text-align: right;
}

/* Adjust navigation menus */
.navbar {
    text-align: right;
}

.sidebar {
    float: right;
}

.sidebar .nav-item .nav-link {
    text-align: right;
}

/* Modify card styles */
.card {
    text-align: right;
}

/* Ensure proper alignment of form elements */
form input,
form select,
form textarea {
    text-align: right;
}

/* Adjust tables */
table {
    direction: rtl;
}

.table th,
.table td {
    text-align: right;
    direction: ltr;
}

ul#accordionSidebar {
    padding: 0;
}

.sidebar-heading {
    text-align: center !important;
}

.dataTables_filter,
.sorting {
    text-align: end !important;
}

/* رنگ‌بندی سطرها یک در میان */
.dataTable tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
    /* سفید */
}

.dataTable tbody tr:nth-child(even) {
    background-color: #e0e0e0;
    /* طوسی */
}

/* پررنگ کردن ستون اول */
.dataTable tbody td:first-child {
    font-weight: bold;
}

/* استایل هاور برای کل سطر */
.dataTable tbody tr:hover {
    background-color: #d1ecf1;
    /* رنگ آبی کمرنگ برای هاور */
    transition: background-color 0.3s ease;
    /* افکت نرم */
}

.dataTable {
    table-layout: auto;
    /* عرض جدول بر اساس محتوا تنظیم می‌شود */
    width: 100%;
    /* یا مقدار مورد نیاز را تنظیم کنید */
}

/* تنظیم رنگ پس‌زمینه تیره‌تر برای ستون اول */
.dataTable tbody td:first-child {}


.attachment-link:hover {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    animation: pulse 1s infinite;
}


.attachment-image:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* استایل برای لینک و تصویر */
.attachment-link {
    display: inline-block;
    width: 60px;
    /* عرض ثابت */
    height: 60px;
    /* ارتفاع ثابت */
    text-align: center;
    line-height: 60px;
    /* برای عمودی‌سازی محتوا */
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    /* برای جلوگیری از بیرون زدن تصویر */
}

/* استایل برای تصویر */
.attachment-image {
    width: 100%;
    /* تصویر 100% عرض والد را بگیرد */
    height: 100%;
    /* تصویر 100% ارتفاع والد را بگیرد */
    object-fit: cover;
    /* تصویر را به اندازه‌ی کادر برش می‌دهد */
    border-radius: 5px;
}

/* استایل برای حالت بدون تصویر */
.empty-attachment {
    display: inline-block;
    width: 60px;
    /* عرض ثابت */
    height: 60px;
    /* ارتفاع ثابت */
    background-color: #f8f9fa;
    border: 1px dashed #ccc;
    border-radius: 5px;
    text-align: center;
    line-height: 60px;
    /* برای عمودی‌سازی محتوا */
    color: #ccc;
    font-size: 24px;
    /* اندازه آیکون */
}

.empty-attachment span {
    display: block;
    font-size: 12px;
    margin-top: 5px;
}

table tfoot select{
    text-align: right;
    float: right;
}
select.btn {
    border-color: #2196F3;
}