@font-face {
  font-family: 'Shabnam';
  src: url('https://cdn.jsdelivr.net/npm/shabnam-font@5.0.0/dist/Farsi-Digits/Shabnam-FD.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/npm/shabnam-font@5.0.0/dist/Farsi-Digits/Shabnam-FD.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Shabnam';
  src: url('https://cdn.jsdelivr.net/npm/shabnam-font@5.0.0/dist/Farsi-Digits/Shabnam-Bold-FD.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/npm/shabnam-font@5.0.0/dist/Farsi-Digits/Shabnam-Bold-FD.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    font-family: 'Shabnam', sans-serif;
    background-color: #f0f0f0;
    /* اعمال فونت شبنم به کل بدنه */
}

input, button, select, textarea {
    font-family: 'Shabnam', sans-serif;
    text-align: center;
}

main {
    flex-grow: 1;
    /* این خاصیت باعث می‌شود المنت main تمام فضای خالی موجود را اشغال کند */
}

/* تنظیم پدینگ برای header, main, footer */
header,
main,
footer {
    padding-left: 0;
    /* اطمینان از عدم وجود پدینگ چپ اضافی */
    transition: padding-right 0.3s ease;
    /* انیمیشن برای تغییر پدینگ */
}

/* در حالت دسکتاپ (صفحات بزرگ)، پدینگ از راست برای سایدبار فیکس شده */
@media only screen and (min-width : 993px) {

    /* Materialize desktop breakpoint */
    header,
    main,
    footer {
        padding-right: 200px;
        /* فضای لازم برای سایدبار فیکس شده در راست */
    }
}

/* در حالت موبایل (صفحات کوچک)، پدینگ را حذف می‌کنیم */
@media only screen and (max-width : 992px) {

    header,
    main,
    footer {
        padding-right: 0;
    }
}

header {
    display: none;
    /* به طور پیش‌فرض مخفی */
}

@media screen and (max-width: 992px) {
    header {
        display: block;
        /* در موبایل نمایش داده شود */
    }
}

/* تنظیمات برای سایدبار (sidenav) */
.sidenav {
    width: 200px;
    text-align: right;
    /* تراز کردن متن به راست برای زبان فارسی */
    right: 0;
    /* فیکس کردن سایدبار به سمت راست */
    left: auto;
    /* از تنظیم left پیشگیری می‌کند */
}

/* کلاس Materialize که هنگام باز شدن سایدبار اضافه می‌شود */
.sidenav.sidenav-open {
    transform: translateX(0%);
    /* سایدبار در جای خود نمایش داده می‌شود */
}

/* نوار ناوبری (navbar) برای راست چین شدن لوگو و دکمه منو */
nav .brand-logo {
    left: auto;
    right: 15px;
    /* لوگو را به سمت راست منتقل می‌کند */
}

nav .sidenav-trigger {
    float: right;
    /* دکمه منو را به سمت راست منتقل می‌کند */
    margin-right: 15px;
    /* فاصله از گوشه راست */
}

nav ul.left {
    /* آیتم‌های منوی اصلی (در دسکتاپ) را به چپ منتقل می‌کند */
    right: auto;
    left: 0;
}

.sidenav li>a {
    padding: 0 20px 0 20px;
    /* تنظیم پدینگ آیتم‌های سایدبار: راست صفر، چپ 20px */
}

.sidenav {
    padding-right: 0px;
}

.sidenav .user-view .name,
.sidenav .user-view .email {
    text-align: right;
}

.container {
    margin-top: 20px;
    margin-bottom: 20px;
}

.sidenav .user-view {
    position: relative;
    padding: 10px 20px 0px 20px;
    margin-bottom: 0px;
}

[type="radio"]:not(:checked)+span,
[type="radio"]:checked+span {
    position: relative;
    padding-left: 25px;
    padding-right: 20px;
    color: black;
}

[type="radio"]:checked+span:after,
[type="radio"].with-gap:checked+span:after {
    background-color: #1d5b21;
    border-color: #1d5b21;
}

.dropdown-content li>a,
.dropdown-content li>span {
    text-align: center;
    color: #000000;
}

.select-wrapper .caret {
    position: absolute;
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    margin: auto 0;
    z-index: 0;
    fill: rgba(0, 0, 0, 0.87);
}

.input-field>label {
    right: 0;
}

.row .col {
    float: right;
}

.input-field>label:not(.label-icon).active {
    transform: translateY(-14px) scale(1);
}

.dropdown-content {
    padding-right: 0px;
}

@media only screen and (min-width: 601px) {
    .row .col.offset-m2 {
        margin-right: 16.6666666667% !important;
        margin-left: 0% !important;
    }

    .row .col.offset-m3 {
        margin-right: 25% !important;
        margin-left: 0% !important;
    }

    .row .col.offset-m4 {
        margin-right: 33.3333333333% !important;
        margin-left: 0% !important;
    }
}

@media only screen and (min-width: 993px) {
    .container {
        width: 85%;
    }
}

.page-footer, .footer-copyright {
    padding-top: 0px;
    padding-bottom: 0px;
}
