/* Updated style.css - Sidebar MultiBox Enhanced with Custom Modifications */

:root {
    --text-color: #333;
}

/* انیمیشن ورود fadeIn */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* سبک ظرف کلی باکس‌ها */
.sidebar-multibox-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 1s ease-in forwards;
}

/* استایل باکس‌ها با پس‌زمینه سفید */
.smb-box {
    background: #ffffff;              /* پس‌زمینه سفید */
    border: none;
    border-radius: 6px;               /* border-radius 6px در کل باکس */
    padding: 25px 15px;               /* کاهش padding افقی */
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(.25, .8, .25, 1);
}

/* نوار بالای باکس با ارتفاع 2px و رنگ ثابت */
.smb-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: #d1e5df;
    border-radius: 6px 6px 0 0; /* رعایت border-radius 6px در بالای باکس */
}

/* افکت هاور روی باکس بدون سایه */
.smb-box:hover {
    transform: translateY(-5px) scale(1.02);
}

/* استایل عنوان باکس: اندازه 16px و رنگ #333 */
.smb-box-title {
    font-size: 16px !important;   /* اندازه فونت دقیقاً 16px */
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;                  /* رنگ عنوان #333 */
    position: relative;
    z-index: 1;
    text-align: center;           /* عنوان در وسط قرار می‌گیرد */
}

/* لیست آیتم‌ها بدون بولت */
.smb-box-list {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

/* استایل آیتم‌های لیست: فونت 15px و کاهش padding سمت راست */
.smb-box-list li {
    font-size: 15px;
    margin-bottom: 15px;
    position: relative;
    padding-right: 20px;     /* کاهش فاصله سمت راست */
    transition: color 0.3s ease;
    color: #555;
}

/* استایل لینک‌های موجود در آیتم‌ها */
.smb-box-list li a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    position: relative;
}

/* انیمیشن خط زیرین در لینک‌ها */
.smb-box-list li a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -2px;
    height: 3px;
    width: 0%;
    background: #d1e5df;
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* زمانی که روی لینک هاور می‌شود، خط زیرین نمایش داده شود */
.smb-box-list li a:hover::after {
    width: 100%;
}

/* تغییر رنگ متن هنگام هاور */
.smb-box-list li:hover {
    color: #d1e5df;
}

/* تنظیمات ریسپانسیو برای دستگاه‌های کوچکتر */
@media (max-width:768px) {
    .smb-box {
        padding: 20px;
    }
    .smb-box-title {
        font-size: 16px !important;
    }
    .smb-box-list li {
        font-size: 15px;
    }
}

/* پشتیبانی از راست به چپ برای زبان فارسی */
.smb-box,
.smb-box-title,
.smb-box-list {
    direction: rtl;
    text-align: right;
}
