@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap');

body {
    font-family: 'Vazirmatn', sans-serif;
    margin: 0;
    padding: 0;
    direction: rtl;
    background: linear-gradient(270deg, #0f2027, #203a43, #2c5364, #0f2027);
    background-size: 800% 800%;
    animation: gradientAnimation 60s ease infinite;
    color: #e0e0e0;
    min-height: 100vh;
    position: relative; /* برای ستاره‌ها */
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02); /* کمتر کدر، شیشه‌ای‌تر */
    backdrop-filter: blur(15px); /* کمی بیشتر برای شفافیت */
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.00); /* کمتر کدر */
    backdrop-filter: blur(8px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

th, td {
    padding: 14px 20px;
    text-align: center;
    color: #e0e0e0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    background: rgba(255, 255, 255, 0.08); /* کمتر کدر */
    font-weight: 700;
}

tr:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease-in-out;
}

button {
    padding: 8px 16px;
    margin: 5px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(145deg, #ff416c, #ff4b2b);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(145deg, #ff4b2b, #ff416c);
    transform: scale(1.05);
}

input[type="checkbox"] {
    transform: scale(1.3);
    cursor: pointer;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        padding: 1rem;
    }

    td {
        text-align: right;
        padding: 10px;
        position: relative;
    }

    td::before {
        content: attr(data-label);
        font-weight: bold;
        position: absolute;
        right: 10px;
        top: 10px;
        color: #ffb3b3;
    }
}

/* انیمیشن پس‌زمینه گرادیانی با سرعت کمتر */
@keyframes gradientAnimation {
    30% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ستاره‌های بیشتر و پراکنده‌تر روی body با استفاده از ::before */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;

    background:
      radial-gradient(2px 2px at 5vw 10vh, white, transparent),
      radial-gradient(1.5px 1.5px at 15vw 20vh, white, transparent),
      radial-gradient(2.5px 2.5px at 25vw 25vh, white, transparent),
      radial-gradient(1.8px 1.8px at 35vw 35vh, white, transparent),
      radial-gradient(2px 2px at 45vw 40vh, white, transparent),
      radial-gradient(2px 2px at 55vw 50vh, white, transparent),
      radial-gradient(2.5px 2.5px at 65vw 60vh, white, transparent),
      radial-gradient(1.6px 1.6px at 75vw 65vh, white, transparent),
      radial-gradient(2px 2px at 85vw 70vh, white, transparent),
      radial-gradient(1.5px 1.5px at 95vw 75vh, white, transparent),
      radial-gradient(2px 2px at 10vw 80vh, white, transparent),
      radial-gradient(1.7px 1.7px at 20vw 85vh, white, transparent),
      radial-gradient(2.3px 2.3px at 30vw 90vh, white, transparent),
      radial-gradient(1.5px 1.5px at 40vw 95vh, white, transparent),
      radial-gradient(2px 2px at 50vw 15vh, white, transparent),
      radial-gradient(1.8px 1.8px at 60vw 25vh, white, transparent),
      radial-gradient(2.1px 2.1px at 70vw 35vh, white, transparent),
      radial-gradient(2px 2px at 80vw 45vh, white, transparent),
      radial-gradient(1.6px 1.6px at 90vw 55vh, white, transparent),
      radial-gradient(2px 2px at 100vw 65vh, white, transparent);

    animation: twinkle 4s ease-in-out infinite alternate;
    opacity: 54.5;
}

/* انیمیشن چشمک زدن ستاره‌ها */
@keyframes twinkle {
    0% {
        opacity: 0.1;
    }
    100% {
        opacity: 100;
    }
}
