/* Persian Datatable Styles - Only for table styling */

/* Improve table styling */
.persian-datatable {
    font-family: 'IRANSansX', sans-serif;
}

.persian-datatable table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    table-layout: fixed;
}

.persian-datatable th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 12px 8px;
    font-weight: 600;
    text-align: center;
    color: #495057;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.persian-datatable td {
    padding: 12px 8px;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.persian-datatable tbody tr:hover {
    background-color: #f8f9fa;
}

/* Improve badge styling */
.persian-datatable .badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
}

/* Improve spacing */
.persian-datatable .datatable-wrapper {
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
}

/* Improve pagination */
.persian-datatable .pagination {
    margin-top: 20px;
    justify-content: center;
}

.persian-datatable .pagination button {
    margin: 0 2px;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    border-radius: 4px;
    cursor: pointer;
}

.persian-datatable .pagination button:hover {
    background: #e9ecef;
}

.persian-datatable .pagination button.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Fix table layout */
.datatable {
    overflow-x: auto;
    max-width: 100%;
}

.datatable table {
    min-width: 1200px;
}

/* Ensure proper column widths */
.persian-datatable th:nth-child(1) { width: 60px; }  /* ID */
.persian-datatable th:nth-child(2) { width: 150px; } /* Title */
.persian-datatable th:nth-child(3) { width: 100px; } /* Bulk Status */
.persian-datatable th:nth-child(4) { width: 100px; } /* OTP Status */
.persian-datatable th:nth-child(5) { width: 120px; } /* Break Time */
.persian-datatable th:nth-child(6) { width: 140px; } /* Day Send Count */
.persian-datatable th:nth-child(7) { width: 120px; } /* Friendly Status */
.persian-datatable th:nth-child(8) { width: 120px; } /* Friendly Count */
.persian-datatable th:nth-child(9) { width: 120px; } /* Auto Answer */
.persian-datatable th:nth-child(10) { width: 100px; } /* Status */
.persian-datatable th:nth-child(11) { width: 120px; } /* Created At */
.persian-datatable th:nth-child(12) { width: 120px; } /* Updated At */
.persian-datatable th:nth-child(13) { width: 150px; } /* Actions */
