/* Professional DataTables Styling (Global) */
.dt-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0.5rem 0;
}

.dt-header .dataTables_filter {
    float: none !important;
    margin: 0 !important;
    position: relative;
}

.dataTables_wrapper .dataTables_filter label {
    display: block;
    position: relative;
    width: 320px;
}

/* Custom Search Icon */
.dataTables_wrapper .dataTables_filter label::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.875rem;
    pointer-events: none;
    z-index: 1;
}

.dataTables_wrapper .dataTables_filter input {
    padding: 0.75rem 1rem 0.75rem 2.5rem !important;
    border-radius: 0.75rem !important;
    border: 1px solid var(--border) !important;
    width: 100% !important;
    background-color: var(--bg-card) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 0.875rem !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.dataTables_wrapper .dataTables_filter input:focus {
    outline: none !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    width: 380px !important;
}

.dataTable {
    border: none !important;
    margin-top: 1.5rem !important;
    width: 100% !important;
    border-spacing: 0;
}

.dataTable tbody tr {
    transition: background-color 0.2s ease;
    cursor: default;
}

.dataTable tbody tr:hover {
    background-color: rgba(99, 102, 241, 0.03) !important;
}

.dataTable thead th {
    background-color: var(--bg-main);
    border-bottom: 2px solid var(--border) !important;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1rem !important;
}

.dataTable tbody td {
    padding: 1rem !important;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.5rem 0.75rem !important;
    margin-left: 0.25rem !important;
    border-radius: 0.375rem !important;
    border: 1px solid var(--border) !important;
    background: white !important;
    color: var(--text-main) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--bg-main) !important;
    color: var(--primary) !important;
}

.dataTables_wrapper .dataTables_info {
    padding-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.dataTables_wrapper .dataTables_length {
    margin-top: 1.5rem;
    float: right;
}

.dataTables_wrapper .dataTables_length select {
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border);
}

.dt-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
