/* فونت فارسی */
@import url('https://cdn.fontcdn.ir/Font/Persian/Vazir/Vazir.css');

body {
    font-family: 'Vazir', sans-serif;
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
}

/* --- هدر --- */
header {
    background: linear-gradient(45deg, #ff4081, #ff80ab);
    padding: 30px 15px; /* padding بیشتر برای هدر */
    text-align: center;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

header .logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-align: center;
}

/* --- منو --- */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 15px;
    transition: 0.3s;
    border-radius: 5px;
}

nav ul li a i {
    margin-right: 10px; /* فاصله بین آیکون و متن */
}

nav ul li a:hover {
    background: white;
    color: #ff4081;
}

/* --- منو همبرگری --- */
.menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: white;
}

/* تنظیمات منو در موبایل */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li a {
        padding: 12px;
        font-size: 20px;
    }
}

/* --- کانتینر اصلی --- */
.container {
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    margin: auto;
    margin-top: 20px;
}

/* --- سایدبار --- */
aside {
    width: 20%; /* عرض سایدبار برای دسکتاپ */
    background: #6200ea;
    padding: 20px;
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

aside h3 {
    text-align: center;
}

aside ul {
    list-style: none;
    padding: 0;
}

aside ul li {
    padding: 12px;
    margin-bottom: 8px;
    background: #7c4dff;
    text-align: center;
    border-radius: 5px;
    transition: 0.3s;
}

aside ul li:hover {
    background: #b388ff;
    transform: scale(1.05);
}

aside ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

/* تنظیمات برای وسط‌چین کردن کل محتوا */
.container {
    display: flex;
    justify-content: center; /* وسط‌چین کردن */
    align-items: flex-start; /* محتوا از بالا شروع شود */
    max-width: 1200px; /* حداکثر عرض */
    margin: 20px auto; /* وسط‌چین در صفحه */
    gap: 20px; /* فاصله بین سایدبار و داشبورد */
}

/* --- محتوای اصلی --- */
main {
    width: 60%; /* عرض 60% برای دسکتاپ */
    margin-left: 1%; /* فاصله از چپ */
    margin-right: 1%; /* فاصله از راست */
    text-align: center;
}

/* --- کارت‌های اطلاعاتی --- */
.cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.card {
    background: #ffffff;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 29%;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.card h2 {
    margin: 0;
    font-size: 20px;
}

.card p {
    font-size: 24px;
    font-weight: bold;
    color: #ff4081;
}

/* --- فوتر --- */
footer {
    background: linear-gradient(45deg, #ff4081, #ff80ab);
    padding: 10px;
    text-align: center;
    color: white;
    margin-top: 20px;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    display: inline-block;
    margin: 0 10px;
}

footer ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

footer ul li a:hover {
    text-decoration: underline;
    color: #ffebee;
}

/* --- واکنش‌گرایی --- */
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    aside {
        width: 96%; /* عرض سایدبار در موبایل */
        margin: 0;
    }

    main {
        width: 97%; /* محتوای اصلی در موبایل */
        margin: 0;
    }

    .card {
        width: 100%;
        margin-bottom: 15px;
    }

    nav {
        width: 98%;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 98%;
        text-align: center;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li a {
        padding: 12px;
        font-size: 20px;
    }
}

/* --- تنظیمات دسکتاپ --- */
@media screen and (min-width: 1024px) {
    .container {
        display: flex;
        justify-content: space-between;
    }

    aside {
        width: 23%; /* سایدبار در دسکتاپ */
    }

    main {
        width: 70%; /* محتوای اصلی در دسکتاپ */
        margin-left: 1%;
        margin-right: 1%;
    }
}

/* --- تنظیمات منو همبرگری --- */
.menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
}

/* تنظیمات برای منو در موبایل */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul li a i {
        margin-right: 10px; /* فاصله بین آیکون و متن */
    }

    footer ul li a i {
        margin-right: 10px;
    }

    aside ul li a i {
        margin-right: 10px;
    }
}

/* تنظیمات برای آیکون‌ها */
nav ul li a i {
    margin-right: 10px; /* فاصله بین آیکون و متن */
}

aside ul li a i {
    margin-right: 10px;
}

footer ul li a i {
    margin-right: 10px;
}
