/* =========================
   استایل کلی
========================= */
* {
    box-sizing: border-box;
    direction: rtl;
    margin: 0;
    padding: 0;
}

body {
    font-family: "gandom", Tahoma, sans-serif;
    background: linear-gradient(180deg, #f0f8ff, #e8f6f3);
    color: #171c13;
    line-height: 1.6;
    overflow-x: hidden;
}

/* لینک‌ها */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #2c7a7b;
}

/* =========================
   جدول
========================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background-color: #ffffffcc;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.jadval_kol th {
    background-color: #2c7a7b;
    color: #fff;
    padding: 12px;
    font-size: 1em;
    position: relative;
    cursor: pointer;
}

.jadval_kol th.sortable:after {
    content: "⇅";
    font-size: 1.2em;
    color: #fff;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.jadval_kol th.sorted-asc:after {
    content: "↑";
    transform: translateY(-50%) scale(1.3);
    color: #cdeac0;
}

.jadval_kol th.sorted-desc:after {
    content: "↓";
    transform: translateY(-50%) scale(1.3);
    color: #f28b82;
}

.jadval_kol td {
    border-bottom: 1px solid #e5d6d6;
    padding: 10px;
    text-align: center;
    transition: background 0.3s ease, transform 0.2s ease;
}

.jadval_kol tr:hover td {
    background-color: #f0fff4;
    transform: scale(1.02);
}

/* عکس کوچک */
.pic_small {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pic_small:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* دکمه‌ها */
.click {
    padding: 8px 12px;
    background: linear-gradient(145deg, #d6f6d4, #b0e6b4);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.click:hover {
    background: linear-gradient(145deg, #a0d6a4, #79c78a);
    transform: translateY(-2px) scale(1.05);
}

/* =========================
   هدر
========================= */
.header {
    font-weight: bold;
    color: white;
    font-size: 1.5em;
    text-align: center;
    height: 80px;
    border-radius: 25px;
    background: url("../upload/parcham3.jpeg") no-repeat center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* =========================
   منو
========================= */
.meno {
    width: 100%;
    padding: 15px;
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.meno_item {
    background: #ffffffcc;
    padding: 10px;
    min-width: 120px;
    border-radius: 15px;
    text-align: center;
    font-size: 1em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.meno_item:hover {
    background: #e6f7ff;
    transform: translateY(-4px) scale(1.05);
}

.ax_meno {
    width: 100%;
    max-width: 90px;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ax_meno:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* =========================
   فوتر
========================= */
.footer {
    background-color: #ff8c42;
    font-size: 1.3em;
    text-align: center;
    padding: 15px;
    border-radius: 20px;
    margin-top: 30px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* عکس تمام عرض */
.pic_full {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* =========================
   ریسپانسیو
========================= */
@media only screen and (max-width: 800px) {
    .jadval_kol th, .jadval_kol td {
        font-size: 14px;
        padding: 6px;
    }

    .click {
        font-size: 14px;
        padding: 6px;
        height: 40px;
    }

    .pic_small {
        width: 60px;
        height: 60px;
    }

    .meno_item {
        flex: 1 1 45%;
        font-size: 0.9em;
    }

    .ax_meno {
        max-width: 70px;
    }

    .header {
        font-size: 1.2em;
        height: 60px;
    }
}

@media only screen and (min-width: 801px) {
    .jadval_kol th, .jadval_kol td {
        font-size: 18px;
        padding: 12px;
    }

    .click {
        font-size: 16px;
        height: 50px;
    }

    .meno_item {
        width: 15%;
    }

    .ax_meno {
        max-width: 90px;
    }

    .header {
        font-size: 1.5em;
    }
}
