﻿/* استایل مدرن برای GridView */
.grid-modern {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Vazir', 'IRANSans', sans-serif;
}

/* هدر مشکی با فونت سفید */
.grid-modern thead th {
    background: #1a1a2e !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 13px;
    padding: 12px 10px !important;
    border: none !important;
    text-align: center;
    letter-spacing: 0.5px;
    border-bottom: 3px solid #e94560 !important;
}

/* بدنه جدول */
.grid-modern tbody td {
    padding: 10px !important;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
    transition: all 0.2s ease;
}

.grid-modern tbody tr {
    transition: all 0.2s ease;
}

.grid-modern tbody tr:hover {
    background-color: #f8f9ff !important;
}

.grid-modern tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

/* ردیف انتخاب‌شده */
.grid-modern tbody tr.selected-row {
    background: linear-gradient(135deg, #e8ecff, #f0e6ff) !important;
    border-left: 4px solid #e94560;
    box-shadow: inset 0 0 10px rgba(233, 69, 96, 0.1);
}

.grid-modern tbody tr.selected-row td {
    color: #2d3748;
    font-weight: 500;
}

/* صفحه‌بندی باتنی */
.pagination-modern {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 15px;
}

.pagination-modern a,
.pagination-modern span {
    display: inline-block;
    min-width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    padding: 0 10px;
    border-radius: 8px;
    background: #ffffff;
    color: #1a1a2e;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.pagination-modern a:hover {
    background: #1a1a2e;
    color: #ffffff;
    border-color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(26, 26, 46, 0.2);
}

.pagination-modern .active {
    background: #e94560 !important;
    color: #ffffff !important;
    border-color: #e94560 !important;
    box-shadow: 0 4px 10px rgba(233, 69, 96, 0.3);
}

.pagination-modern .disabled {
    opacity: 0.4;
    pointer-events: none;
}
