@font-face {
    font-family: iranyekan;
    font-style: normal;
    font-weight: bold;
    src: url('./../fonts/eot/iranyekanwebbold(fanum).eot');
    src: url('./../fonts/eot/iranyekanwebbold(fanum).eot?#iefix') format('embedded-opentype'), /* IE6-8 */
    url('./../fonts/woff2/iranyekanwebbold(fanum).woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
    url('./../fonts/woff/iranyekanwebbold(fanum).woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('./../fonts/ttf/iranyekanwebbold(fanum).ttf') format('truetype');
}

@font-face {
    font-family: iranyekan;
    font-style: normal;
    font-weight: 300;
    src: url('./../fonts/eot/iranyekanweblight(fanum).eot');
    src: url('./../fonts/eot/iranyekanweblight(fanum).eot?#iefix') format('embedded-opentype'), /* IE6-8 */
    url('./../fonts/woff2/iranyekanweblight(fanum).woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
    url('./../fonts/woff/iranyekanweblight(fanum).woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('./../fonts/ttf/iranyekanweblight(fanum).ttf') format('truetype');
}

@font-face {
    font-family: iranyekan;
    font-style: normal;
    font-weight: normal;
    src: url('./../fonts/eot/iranyekanwebregular(fanum).eot');
    src: url('./../fonts/eot/iranyekanwebregular(fanum).eot?#iefix') format('embedded-opentype'), /* IE6-8 */
    url('./../fonts/woff2/iranyekanwebregular(fanum).woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
    url('./../fonts/woff/iranyekanwebregular(fanum).woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('./../fonts/ttf/iranyekanwebregular(fanum).ttf') format('truetype');
}
body::-webkit-scrollbar, body ::-webkit-scrollbar{
    height: 10px;
    width: 10px;
    border-radius: 20px;
}
body::-webkit-scrollbar-track, body ::-webkit-scrollbar-track{
    background-color: var(--bs-gray-200);
    border-radius: 20px;
}
body::-webkit-scrollbar-thumb, body ::-webkit-scrollbar-thumb{
    background-color: var(--bs-gray-600);
    border-radius: 20px;
}
body::-webkit-scrollbar-thumb:hover, body ::-webkit-scrollbar-thumb:hover{
    background-color: var(--bs-gray-300);
}
html[dir="rtl"] body{
    font-family: "iranyekan", system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
}
:root{
    --primary-color: #1FBFCB;
    --secondary-color: #FD7A3D;
}
html[dir="rtl"] .form-group input[type="number"].form-control::-webkit-outer-spin-button,
html[dir="rtl"] .form-group input[type="number"].form-control::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
html[dir="rtl"] .form-group:has(.toggle-show), html[dir="rtl"] .form-group:has(.clear){
    position: relative;
}
html[dir="rtl"] .form-group .toggle-show,
html[dir="rtl"] .form-group .clear{
    position: absolute;
    top: 0;
    left: 5px;
    height: 30px;
    width: 30px;
    border: none;
    outline: none;
    background-color: transparent;
    color: var(--bs-black);
}
html[dir="rtl"] .form-group:has(label) .toggle-show,
html[dir="rtl"] .form-group:has(label) .clear{
    top: 35px;
}
html[dir="rtl"] .form-group:has(label) .clear{
    top: 30px;
}
html[dir="rtl"] .form-group:has(.toggle-show) .form-control, 
html[dir="rtl"] .form-group:has(.clear) .form-control{
    padding-left: 40px;
}
html[dir="rtl"] .form-group .toggle-show::before{
    position: absolute;
    font-family: "bootstrap-icons";
    content: '\F341';
    font-size: 20px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
html[dir="rtl"] .form-group .clear::before{
    position: absolute;
    font-family: "bootstrap-icons";
    content: '\F62A';
    font-size: 28px;
    font-weight: bold;
    color: var(--bs-danger);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
html[dir="rtl"] .form-group:has(input[type="password"]) .toggle-show::before{
    content: '\F341';
}
html[dir="rtl"] .form-group:has(input[type="text"]) .toggle-show::before{
    content: '\F340';
    opacity: 0.6;
}
html[dir="rtl"] .form-group .bd-main{
    font-size: 14px;
}
html[dir="rtl"] .card .card-footer nav .pagination{
    margin-bottom: 0;
}
html[dir="rtl"] #toast-container{
    position: fixed;
    top: 10px;
    left: 10px;
    width: 300px;
    z-index: -1;
    overflow: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
}
html[dir="rtl"] #toast-container:has(.toast){
    z-index: 9999;
}
html[dir="rtl"] #toast-container .toast{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bs-primary);
    padding: 10px;
    margin-bottom: 15px;
}
html[dir="rtl"] #toast-container .toast.primary{
    background-color: var(--bs-primary);
    color: var(--bs-white);
}
html[dir="rtl"] #toast-container .toast.success{
    background-color: var(--bs-success);
    color: var(--bs-white);
}
html[dir="rtl"] #toast-container .toast.warning{
    background-color: var(--bs-warning);
    color: var(--bs-black);
}
html[dir="rtl"] #toast-container .toast.danger{
    background-color: var(--bs-danger);
    color: var(--bs-white);
}
html[dir="rtl"] #toast-container .toast .message{
    width: 100%;
    word-wrap: break-word;
}
html[dir="rtl"] #toast-container .toast .close{
    position: relative;
    margin: auto 0;
    padding: 5px 10px;
    height: 30px;
    width: 30px;
    background-color: transparent;
    color: var(--bs-white);
    outline: none;
    border: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}
html[dir="rtl"] #toast-container .toast .close:hover{
    opacity: 1;
}
html[dir="rtl"] #toast-container .toast .close::before{
    position: absolute;
    content: '\F659';
    font-family: "bootstrap-icons";
    font-size: 20px;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
header{
    background-color: var(--bs-gray-900);
    color: var(--bs-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    height: 60px;
}
header .logo{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: inherit
}
/* Sidebar */
.sidebar{
    position: absolute;
    width: 300px;
    top: 61px;
    bottom: 0;
    height: 100%;
}
.sidebar nav{
    background-color: var(--bs-gray-100);
    width: 300px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 20px 15px;
    position: absolute;
    top: 0;
    bottom: 0;
}
.sidebar ul{
    padding: 0;
    margin: 0;
}
.sidebar ul li{
    list-style: none;
}  
.sidebar ul li a{
    color: var(--bs-gray-700);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
} 
.sidebar ul li a:hover, .sidebar ul li a.active{
    background-color: var(--bs-yellow);
    color: var(--bs-black);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}
main .content{
    padding: 20px 15px 20px 15px;
}
@media screen and (min-width: 992px) {
    main .content{
        padding-right: 315px;
    }
}
@media screen and (max-width: 991.98px) {
    .sidebar{
        height: 100%;
        width: 100%;
        left:0;
        right: 0;
        z-index: 1;
        top: 0;
        bottom: 0;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    .sidebar.show{
        opacity: 1;
        visibility: visible;
    }
    html body:has(.sidebar.show){
        overflow: hidden;
    }
    .sidebar .overlay{
        position: relative;
        height: 100%;
        width: 100%;
        left:0;
        right: 0;
        z-index: 0;
        top: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.1);
    }
    .sidebar nav{
        transform: translateX(300px);
        transition: all 0.3s ease;
        transition-delay: 0.1s;
    }
    .sidebar.show nav{
        transform: translateX(0);
    }
}