﻿body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden; /* جلوگیری از اسکرول افقی ناخواسته */
    overflow-y: hidden; /* بدون اسکرول عمودی ناخواسته */
    transition: background 0.5s ease, color 0.5s ease;
    display: flex;
    flex-direction: column;
}

.container-flex {
    display: flex;
    flex-direction: row; /* همیشه row */
    flex-grow: 1;
    min-height: 100vh; /* پر کردن کامل ارتفاع */
    overflow: hidden;
}

.sidebar {
    background-color: #f0f0f0;
    border-right: 1px solid #ddd;
    transition: background 0.5s ease, color 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto; /* اسکرول داخلی اگر محتوا طولانی باشه */
    width: 300px; /* عرض ثابت در دسکتاپ */
    height: 100%; /* ارتفاع ثابت (کل صفحه) */
    min-height: 100vh; /* حداقل ارتفاع ثابت */
    padding: 20px;
    box-sizing: border-box;
}

    .sidebar img {
        max-width: 150px;
    }

    .sidebar ul {
        margin: 0;
        padding: 0;
        font-size: 0.9rem;
        line-height: 1.2;
    }

.main-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
    min-height: 100vh; /* پر کردن ارتفاع */
}

.yellow-bg {
    background-color: #fff200; /* Vibrant yellow */
    color: #000;
    transition: background 0.5s ease, color 0.5s ease;
    border-radius: 10px;
    margin: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    flex-grow: 1;
    overflow-y: auto;
    min-height: 100vh; /* رنگ زرد تا آخر صفحه */
}
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap; /* همیشه افقی */
    white-space: nowrap;
    width: 100%;
    overflow-x: hidden; /* بدون اسکرول افقی، فیت اجباری */
}

    .menu-list li {
        margin: 0 15px;
    }

    .menu-list a {
        color: #000;
        text-decoration: none;
        font-weight: bold;
        transition: color 0.3s ease;
    }

        .menu-list a:hover {
            color: #333;
        }

@media (max-width: 768px) {
    .sidebar {
        width: 40%; /* عرض ثابت درصدی برای موبایل، اما یکسان در صفحات */
        min-width: 200px;
        padding: 15px;
        font-size: 0.85rem;
    }

        .sidebar img {
            max-width: 100px;
        }

    .yellow-bg {
        margin: 5px;
        padding: 15px;
        border-radius: 5px;
        font-size: 0.9rem;
        min-height: 100vh; /* رنگ تا آخر */
    }

    .menu-list li {
        margin: 0 10px;
        font-size: 0.9rem; /* کوچکتر برای فیت بدون اسکرول */
    }
}

@media (max-width: 576px) {
    .sidebar {
        width: 40%;
        min-width: 150px;
        padding: 10px;
        font-size: 0.75rem;
    }

        .sidebar img {
            max-width: 80px;
        }

    .yellow-bg {
        padding: 10px;
        font-size: 0.8rem;
        min-height: 100vh;
    }

    .menu-list {
        justify-content: flex-start;
    }

        .menu-list li {
            margin: 0 8px;
            font-size: 0.8rem; /* حتی کوچکتر برای فیت کامل بدون اسکرول */
        }
}
.icon-container a {
    color: inherit; /* رنگ اصلی */
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

    .icon-container a:hover {
        color: #007bff; /* رنگ آبی برای hover (قابل تغییر) */
        transform: scale(1.2); /* بزرگ شدن کمی برای افکت */
    }

.icon-container .bi {
    cursor: pointer; /* نشانگر ماوس pointer برای clickable بودن */
}
