/* Modern DataTables Styling */
.dataTables_wrapper {
    font-family: inherit;
}

.dataTables_length,
.dataTables_filter {
    margin-bottom: 1.5rem;
}

.dataTables_length label,
.dataTables_filter label {
    font-weight: 600;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dataTables_length select,
.dataTables_filter input {
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dataTables_length select:focus,
.dataTables_filter input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.dataTables_info {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.dataTables_paginate {
    margin-top: 1.5rem;
}

.dataTables_paginate .paginate_button {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: #4c51bf !important;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.dataTables_paginate .paginate_button:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white !important;
    border-color: transparent;
}

.dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Table Styles */
.table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    font-weight: 600;
    padding: 1.25rem 1rem;
    text-align: left;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.table thead th:first-child {
    border-top-left-radius: 12px;
}

.table thead th:last-child {
    border-top-right-radius: 12px;
}

.table thead th:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

.table thead th.sorting:after,
.table thead th.sorting_asc:after,
.table thead th.sorting_desc:after {
    right: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.table tbody td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

/* Action buttons */
.btn-action {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Language badges */
.language-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(102, 126, 234, 0.1);
    color: #4c51bf;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.date-display {
    color: #4a5568;
    font-size: 0.9rem;
}

.text-muted {
    color: #9ca3af !important;
}

/* Empty state */
.dataTables_empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
    font-style: italic;
}

/* Loading state */
.dataTables_processing {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.2em;
}

/* Records Card */
.records-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .records-card {
        padding: 2rem 1.5rem;
        border-radius: 1.5rem;
    }

    .table thead th,
    .table tbody td {
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
    }

    .dataTables_length,
    .dataTables_filter {
        text-align: center;
    }

    .dataTables_length label,
    .dataTables_filter label {
        flex-direction: column;
        gap: 0.5rem;
    }
} 