/* تنظیمات کلی */
body {
    font-family: Tahoma, sans-serif;
    direction: rtl;
    text-align: right;
    padding: 20px;
    background-color: #f4f4f4;
    font-size: 8.5pt;
}

.navbar {
    margin-bottom: 20px;
    font-size: 8.5pt;
}

.navbar-nav .nav-item .nav-link {
    font-family: Tahoma, sans-serif;
    font-size: 8.5pt;
}

/* راست‌چین کردن منو */
.navbar-nav {
    direction: rtl;
    text-align: right;
}

/* تغییر اندازه و راست‌چین کردن متن داخل نوار */
.navbar-brand {
    font-family: Tahoma, sans-serif;
    font-size: 8.5pt;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1,h2,h3,h4,h5,h6 {
    font-size: 8.5pt;
    margin-bottom: 20px;
    color: #333;
}

label {
    font-size: 8.5pt;
    margin-bottom: 10px;
    display: block;
    color: #555;
}

input[type="text"], textarea, select, button {
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 8.5pt;
}

textarea {
    width: 95%;
}

input[type="button"] {
    padding: 10px 20px;
    font-size: 8.5pt;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button {
    padding: 10px 20px;
    font-size: 8.5pt;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.container-fluid {
    
}

.card {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    background-color: #ffffff;
}

.card-header {
    background-color: #343a40;
    color: #ffffff;
    font-weight: normal;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #343a40;
}

.card-header span {
    margin: 0; /* حذف margin */
    line-height: 1; /* کاهش خط فاصله */
}

.card-header .btn {
    padding: 2px 10px; /* کاهش padding دکمه */
    font-size: 8.5pt; /* کاهش اندازه فونت دکمه */
    line-height: 1; /* تنظیم line-height */
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-size: 8.5pt;
    font-weight: normal;
    margin-bottom: 1rem;
}

.table {
    margin-bottom: 0;
    background-color: #ffffff;
}

.table thead th {
    background-color: #007bff;
    color: #ffffff;
    border-bottom: 2px solid #007bff;
    font-size: 8.5pt;
    font-family: Tahoma, sans-serif;
    font-weight: 100;
}

.table tbody tr:hover {
    background-color: #f1f1f1;
}

.table tbody td {
    vertical-align: middle;
}

.table.dataTable thead th {
    font-weight: normal;
    text-align: right;
}

.form-control, .form-select {
    font-size: 8.5pt;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    margin-bottom: 10px;
}

textarea.form-control {
    resize: none;
}

label {
    font-weight: normal;
    font-size: 8.5pt;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

input[readonly], textarea[readonly] {
    background-color: #e9ecef;
}
.btn {
    font-size: 8.5pt;
    font-family: Tahoma, sans-serif;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* تنظیمات Sidebar پایین صفحه */
.sidebar-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: #343a40;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.15);
    z-index: 1000; /* اطمینان از نمایش صحیح */
}

.sidebar-bottom a {
    color: #adb5bd;
    font-size: 8.5pt;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar-bottom a.active {
    color: #007bff;
}

.sidebar-bottom a:hover {
    color: #ffffff;
}

/* آیکون‌ها */
.sidebar-bottom a i {
    margin-bottom: 5px;
}

/* مدال‌ها */
.modal-content {
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    background-color: #007bff;
    color: #ffffff;
    border-bottom: 1px solid #007bff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}



.modal-header .btn-close {
    order: 1;
    margin-left: auto; /* فاصله دادن دکمه بستن از سمت چپ */
}

.modal-header .modal-title {
    order: 2;
    margin-right: auto; /* فاصله دادن عنوان از سمت راست */
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 0.75rem 1.5rem;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* دکمه بستن مدال */
.btn-close {
    padding: 0.5rem;
    background-color: transparent;
    border: none;
}

.btn-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Select2 */


.select2.select2-container {
    width: 100% !important;
}

.select2.select2-container .select2-selection {
    border: 1px solid #ccc;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    height: 34px;
    margin-bottom: 15px;
    outline: none !important;
    transition: all .15s ease-in-out;
}

.select2.select2-container .select2-selection .select2-selection__rendered {
    color: #333;
    line-height: 32px;
    padding-right: 40px;
}

.select2.select2-container .select2-selection .select2-selection__arrow {
    background: #f8f8f8;
    border-left: 1px solid #ccc;
    -webkit-border-radius: 0 3px 3px 0;
    -moz-border-radius: 0 3px 3px 0;
    border-radius: 0 3px 3px 0;
    height: 32px;
    width: 33px;
}

.select2.select2-container.select2-container--open .select2-selection.select2-selection--single {
    background: #f8f8f8;
}

.select2.select2-container.select2-container--open .select2-selection.select2-selection--single .select2-selection__arrow {
    -webkit-border-radius: 0 3px 0 0;
    -moz-border-radius: 0 3px 0 0;
    border-radius: 0 3px 0 0;
}

.select2.select2-container.select2-container--open .select2-selection.select2-selection--multiple {
    border: 1px solid #34495e;
}

.select2.select2-container .select2-selection--multiple {
    height: auto;
    min-height: 34px;
}

.select2.select2-container .select2-selection--multiple .select2-search--inline .select2-search__field {
    margin-top: 0;
    height: 32px;
}

.select2.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: block;
    padding: 0 4px;
    line-height: 29px;
}

.select2.select2-container .select2-selection--multiple .select2-selection__choice {
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    margin: 4px 4px 0 0;
    padding: 0 6px 0 22px;
    height: 24px;
    line-height: 24px;
    font-size: 12px;
    position: relative;
}

.select2.select2-container .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    margin: 0;
    text-align: center;
    color: #e74c3c;
    font-weight: bold;
    font-size: 16px;
}

.select2-container .select2-dropdown {
    background: transparent;
    border: none;
    margin-top: -5px;
}

.select2-container .select2-dropdown .select2-search {
    padding: 0;
}

.select2-container .select2-dropdown .select2-search input {
    outline: none !important;
    border: 1px solid #34495e !important;
    border-bottom: none !important;
    padding: 10px 12px !important;
    direction: rtl;
    font-weight: normal;
    font-family: tahoma;
    font-size: 8.5pt;
}

.select2-container .select2-dropdown .select2-results {
    padding: 0;
}

.select2-container .select2-dropdown .select2-results ul {
    background: #fff;
    border: 1px solid #34495e;
}

.select2-container .select2-dropdown .select2-results ul .select2-results__option--highlighted[aria-selected] {
    background-color: #3498db;
}





/* تنظیم کلی برای select */
select {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 3px;
    height: 34px;
    margin-bottom: 15px;
    padding-right: 30px;
    transition: all .15s ease-in-out;
    background-color: #fff;
    color: #333;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 12px;
    appearance: none; /* حذف استایل پیش‌فرض فلش */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23333" d="M2 0L0 2h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
}

/* تنظیم برای حالت فوکوس */
select:focus {
    border-color: #34495e;
    outline: none;
    box-shadow: 0 0 3px rgba(52, 73, 94, 0.3);
}

/* تنظیم برای حالت باز بودن select (این بخش در برخی مرورگرها کاربرد ندارد) */
select:active {
    background-color: #f8f8f8;
}

/* تنظیم استایل فلش در حالت باز بودن (ممکن است نیاز به سفارشی‌سازی بیشتر داشته باشد) */
select::-ms-expand {
    display: none; /* برای حذف فلش در مرورگر IE */
}

/* استایل برای گزینه‌های انتخابی */
option {
    padding: 10px;
    font-size: 12px;
    color: #333;
}

/* تنظیم استایل گزینه انتخاب‌شده */
option:checked {
    background-color: #3498db;
    color: #fff;
}


/* Media Queries برای نمایش بهتر در دستگاه‌های موبایل */
@media (max-width: 768px) {
    .sidebar-bottom {
        flex-direction: row;
    }
}
