/* ************************ left box-begin ************************ */
.left-box {
    width: 70px;
    height: 99.8vh;
    background: #262626 !important;
    /* float: left; */
    border: 1px solid #3a3a3a;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
    transition: width 0.5s ease;
    /* انیمیشن برای تغییر عرض باکس */
    flex-shrink: 0;
    /* جلوگیری از کوچک شدن باکس */
    /* font-size: 14px !important; */
}

.left-box.open {
    width: 300px;
}

.left-box.open .fa-ellipsis-v,
.left-box.open .page-title {
    display: none;
    /* مخفی کردن آیکن و متن خانه زمانی که باکس باز است */
}

.left-box .left-box-top {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #1f1f1f;

}

.left-box .left-box-center {
    width: 100%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #a3a3a3;
}

.nav-list {
    display: block;
    text-decoration: none;
    list-style-type: none;
    line-height: 2;
    font-weight: 700;
}

.nav-list a {
    text-decoration: none;
    color: #a3a3a3;
    position: relative;
    transition: color 0.3s ease;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.nav-list a:hover {
    color: #ff4b2b;
    /* text-shadow: 0 0 5px #ff4b2b, 0 0 10px #ff416c; */
}

.nav-list a:hover::after {
    transform: scaleX(1);
}

.left-box .page-title {
    width: 100%;
    height: 90%;
    display: flex;
    justify-content: center;
    color: #a3a3a3;
    align-items: center;
    transform: rotate(270deg);
    /* font-size: 18px !important; */
}

.fa-ellipsis-v {
    color: #a3a3a3;
    cursor: pointer;
}

.close-btn {
    display: none;
    font-size: 20px;
    color: #a3a3a3;
    cursor: pointer;
}

.left-box.open .close-btn {
    display: block;
    /* نمایش آیکن ضربدر زمانی که باکس باز است */
}


/* ************************ left box-end ************************ */



/* ************************ right box-begin ************************ */
.right-box {
    width: 24%;
    height: 100%;
    /* background-color: var(--bs-white); */
    /* float: right; */
    box-shadow: rgb(17 17 26 / 10%) 0px 4px 16px, rgb(17 17 26 / 10%) 0px 8px 24px, rgb(17 17 26 / 10%) 0px 16px 56px;
    border-radius: 5px;
    transition: all 0.5s ease;
    padding-left: 13px;
    flex-shrink: 0;
    /* جلوگیری از کوچک شدن باکس */
}

.right-box.open {
    width: 300px;
    transition: width 0.3s ease;
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 2;
}

.right-box-top {
    background-color: #202020 !important;
    width: 100%;
    height: 40%;
    box-shadow: rgb(60 64 67 / 30%) 0px 1px 2px 0px, rgb(60 64 67 / 15%) 0px 1px 3px 1px;
    text-align: center;
    box-sizing: border-box;
    padding: 30px;
}

.right-box-top img {
    width: 110px;
    height: 110px;
    border-radius: 100%;
}

.right-box-top h3 {
    color: #f44954;
    line-height: 1.8;
    font-size: 16px;
}

.right-box-top .subtitle {
    color: darkgrey !important;
    line-height: 1.8;
    font-size: 14px;
}

.right-box-content {
    background: #262626 !important;
    width: 100%;
    height: 52%;
    background: #e9ecef;
    direction: rtl;
    padding: 8%;
    line-height: 27px;
    overflow: auto;
    box-sizing: border-box;
}

.right-box-content::-webkit-scrollbar {
    width: 0;
}

.right-box-content ul {
    list-style-type: none;
    direction: rtl;
    line-height: 34px;
    font-size: 18px;
}

.right-box-content h3 {
    font-weight: 700;
    color: #f44954;
    font-size: 18px;
}

.right-box-content ul li a {
    color: darkgrey !important;
    text-decoration: none;
    font-size: 14px;
}

.right-box-content ul li a:hover {
    cursor: pointer;
    color: #f44954 !important;
}

.right-box-bottom {
    background-color: #202020 !important;
    width: 100%;
    height: 8%;
    box-shadow: rgb(9 30 66 / 25%) 0px 1px 1px, rgb(9 30 66 / 13%) 0px 0px 1px 1px;
}

/* ************************ right box-end ************************ */

@media (max-width: 1400px) {
    .left-box, .right-box {
        display: none;
    }

    .left-box{
        /* display: none; */
        position: absolute;
        z-index: 1;
    }

    .toggle-left, .toggle-right {
        display: block;
        /* position: fixed; */
        top: 10px;
        z-index: 1;
        /* background-color: #202020; */
        color: white;
        font-size: 20px;
        padding: 15px;
        cursor: pointer;
    }

    .toggle-left {
        left: 10px;
    }

    .toggle-right {
        right: 10px;
    }
}

@media (min-width: 1400px) {
    .left-box, .right-box {
        display: block;
    }
}