﻿/* فونت و تنظیمات کلی */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
    padding: 10px;
    border-radius: 15px;
    background: linear-gradient(145deg, #f3f4f7, #e2e6ea);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    animation: slideFade 1s ease-out forwards;
    transform: translateY(30px);
    opacity: 0;
}

@keyframes slideFade {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    direction: rtl;
    border-radius: 15px;
    overflow: hidden;
}

    /* سرستون‌ها */
    .table thead tr {
        background: lightseagreen;
        color: white;
        font-weight: bold;
        text-align: center;
        font-size: 1rem;
        letter-spacing: 0.5px;
    }

    /* سلول‌های سرستون */
    .table thead th {
        padding: 15px;
        border-bottom: 3px solid #ffffff33;
    }

    /* بدنه جدول */
    .table tbody td {
        color: black;
        padding: 15px;
        text-align: center;
        background-color: #ffffff;
        transition: all 0.4s ease;
        border-bottom: 1px solid #eee;
        position: relative;
    }

    /* افکت هاور ردیف */
    .table tbody tr:hover td {
        background: linear-gradient(to right, #f8f9fa, #f1f3f5);
        transform: scale(1.01);
        box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
    }

/* نشان‌ها */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

    .badge:hover {
        transform: scale(1.1) rotate(1deg);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

.bg-success {
    background: linear-gradient(45deg, #28a745, #218838);
    color: white;
}

.bg-warning {
    background: linear-gradient(45deg, #ffc107, #e0a800);
    color: #333;
}

.bg-danger {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
}

/* تاریخ شمسی */
.persian-date {
    direction: rtl;
    unicode-bidi: embed;
    color: #444;
}

/* عنوان جدول */
.header {
    font-weight: bold;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: black;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

    .header::after {
        content: "";
        width: 80px;
        height: 4px;
        background: linear-gradient(to right, #ff758c, #ff7eb3);
        display: block;
        margin: 10px auto 0;
        border-radius: 2px;
    }

/* واکنش‌گرا برای موبایل */
@media (max-width: 768px) {
    .table thead {
        display: none;
    }

    .table, .table tbody, .table tr, .table td {
        display: block;
        width: 100%;
    }

        .table tr {
            margin-bottom: 15px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            border-radius: 10px;
            overflow: hidden;
        }

        .table td {
            padding: 12px 15px;
            text-align: right;
            position: relative;
        }

            .table td::before {
                content: attr(data-label);
                font-weight: bold;
                color: #666;
                position: absolute;
                right: 15px;
                top: 12px;
                font-size: 0.9rem;
            }
}
