/**
 * Sheets to Table Live Update - Styles
 *
 * @package SheetsToTableLiveUpdate
 */

/* Table Container */
.stlu-table-wrapper {
    margin: 20px 0;
    position: relative;
}

.stlu-table-container {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Loading Indicator */
.stlu-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10;
    border-radius: 8px;
}

.stlu-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: stlu-spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes stlu-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.stlu-loading-text {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}



/* Table Styles */
.stlu-table {
    width: 100%;
    border-collapse: collapse;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    background: #fff;
}

/* Table Header */
.stlu-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.stlu-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.stlu-table th:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Table Body */
.stlu-table tbody tr {
    transition: background-color 0.2s ease;
}

.stlu-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.stlu-table tbody tr:hover {
    background-color: #e3f2fd;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stlu-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
    word-wrap: break-word;
    max-width: 300px;
}

.stlu-table td:not(:last-child) {
    border-right: 1px solid #f1f3f4;
}

/* Cell Types */
.stlu-table .stlu-numeric {
    text-align: right;
    font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
    font-weight: 500;
    color: #2e7d32;
}

.stlu-table .stlu-url a,
.stlu-table .stlu-email a {
    color: #1976d2;
    text-decoration: none;
    border-bottom: 1px dotted #1976d2;
    transition: all 0.2s ease;
}

.stlu-table .stlu-url a:hover,
.stlu-table .stlu-email a:hover {
    color: #0d47a1;
    border-bottom-style: solid;
    background-color: rgba(25, 118, 210, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}

/* No Data */
.stlu-table .stlu-no-data {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
}

/* Table Info */
.stlu-table-info {
    padding: 12px 16px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    font-size: 12px;
    color: #6c757d;
    text-align: center;
}

/* Error Messages */
.stlu-error {
    background: #f8d7da;
    color: #721c24;
    padding: 16px;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.5;
}

.stlu-error::before {
    content: "⚠️ ";
    margin-right: 8px;
}

/* DataTables Integration & Responsive Styles */
.stlu-datatables-wrapper {
    margin: 0;
    padding: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* DataTables Controls */
.stlu-datatables-wrapper .dataTables_length {
    float: left;
    margin-bottom: 15px;
    padding: 0 15px;
}

.stlu-datatables-wrapper .dataTables_filter {
    float: right;
    margin-bottom: 15px;
    padding: 0 15px;
}

.stlu-datatables-wrapper .dataTables_length label,
.stlu-datatables-wrapper .dataTables_filter label {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stlu-datatables-wrapper .dataTables_length select,
.stlu-datatables-wrapper .dataTables_filter input {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    background: #fff;
    transition: all 0.2s ease;
    margin: 0 8px;
}

.stlu-datatables-wrapper .dataTables_length select:focus,
.stlu-datatables-wrapper .dataTables_filter input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.stlu-datatables-wrapper .dataTables_filter input {
    width: 200px;
}

/* DataTables Info and Pagination */
.stlu-datatables-wrapper .dataTables_info {
    float: left;
    padding: 15px;
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.stlu-datatables-wrapper .dataTables_paginate {
    float: right;
    padding: 15px;
    margin: 0;
}

.stlu-datatables-wrapper .dataTables_paginate .paginate_button {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.stlu-datatables-wrapper .dataTables_paginate .paginate_button:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
}

.stlu-datatables-wrapper .dataTables_paginate .paginate_button.current {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.stlu-datatables-wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Clear floats */
.stlu-datatables-wrapper .dataTables_wrapper::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .stlu-datatables-wrapper .dataTables_length,
    .stlu-datatables-wrapper .dataTables_filter {
        float: none;
        text-align: center;
        margin-bottom: 10px;
        padding: 0 10px;
    }
    
    .stlu-datatables-wrapper .dataTables_filter input {
        width: 100%;
        max-width: 250px;
    }
    
    .stlu-datatables-wrapper .dataTables_info,
    .stlu-datatables-wrapper .dataTables_paginate {
        float: none;
        text-align: center;
        padding: 10px;
    }
    
    .stlu-datatables-wrapper .dataTables_paginate .paginate_button {
        padding: 6px 8px;
        margin: 0 1px;
        font-size: 12px;
    }
    
    /* Hide some pagination buttons on mobile */
    .stlu-datatables-wrapper .dataTables_paginate .paginate_button:not(.previous):not(.next):not(.current) {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .stlu-table-wrapper {
        margin: 10px 0;
    }
    
    .stlu-datatables-wrapper {
        border-radius: 4px;
    }
    
    .stlu-datatables-wrapper .dataTables_length label,
    .stlu-datatables-wrapper .dataTables_filter label {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    
    .stlu-datatables-wrapper .dataTables_length select,
    .stlu-datatables-wrapper .dataTables_filter input {
        margin: 0;
        width: 100%;
    }
}

/* Table controls are now managed via shortcode attributes */

/* Responsive Table Enhancements */
.stlu-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media screen and (max-width: 768px) {
    .stlu-table {
        font-size: 12px;
    }
    
    .stlu-table th,
    .stlu-table td {
        padding: 8px 6px;
        min-width: 80px;
    }
    
    .stlu-table th {
        font-size: 11px;
    }
}

@media screen and (max-width: 480px) {
    .stlu-table {
        font-size: 11px;
    }
    
    .stlu-table th,
    .stlu-table td {
        padding: 6px 4px;
        min-width: 60px;
    }
    
    .stlu-table th {
        font-size: 10px;
    }
}

/* Design Templates */

/* Default Template - Enhanced */
.stlu-template-default .stlu-table-container {
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.stlu-template-default .stlu-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stlu-template-default .stlu-table th {
    padding: 16px 12px;
    font-weight: 600;
    color: #fff;
}

.stlu-template-default .stlu-table {
    background: #ffffff;
    color: #000000;
}

.stlu-template-default .stlu-table td {
    color: #000000;
}

.stlu-template-default .stlu-table tbody tr:hover {
    background-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Modern Template - Sleek & Futuristic */
.stlu-template-modern .stlu-table-container {
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stlu-template-modern .stlu-table thead {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    position: relative;
}

.stlu-template-modern .stlu-table thead::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.stlu-template-modern .stlu-table th {
    padding: 20px 16px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #f1f5f9;
    position: relative;
    z-index: 1;
}

.stlu-template-modern .stlu-table td {
    padding: 18px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stlu-template-modern .stlu-table tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stlu-template-modern .stlu-table tbody tr:hover {
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 100%);
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.stlu-template-modern .stlu-table tbody tr:hover td {
    border-color: transparent;
}

/* Minimal Template - Clean & Elegant */
.stlu-template-minimal .stlu-table-container {
    border: none;
    box-shadow: none;
    background: transparent;
}

.stlu-template-minimal .stlu-table {
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
}

.stlu-template-minimal .stlu-table thead {
    background: transparent;
}

.stlu-template-minimal .stlu-table th {
    padding: 16px 20px;
    font-weight: 400;
    font-size: 13px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    background: transparent;
}

.stlu-template-minimal .stlu-table td {
    padding: 16px 20px;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 400;
    color: #334155;
    transition: all 0.2s ease;
}

.stlu-template-minimal .stlu-table tbody tr {
    transition: all 0.2s ease;
}

.stlu-template-minimal .stlu-table tbody tr:nth-child(even) {
    background: transparent;
}

.stlu-template-minimal .stlu-table tbody tr:hover {
    background: rgba(248, 250, 252, 0.6);
    transform: none;
    box-shadow: none;
}

.stlu-template-minimal .stlu-table tbody tr:hover td {
    color: #1e293b;
}

.stlu-template-minimal .stlu-table tbody tr:last-child td {
    border-bottom: none;
}

/* Dark Template - Sophisticated Dark Mode */
.stlu-template-dark .stlu-table-container {
    background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    border: 1px solid #404040;
}

.stlu-template-dark .stlu-table {
    background: transparent;
    color: #e5e7eb;
}

.stlu-template-dark .stlu-table thead {
    background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #374151 100%);
    position: relative;
    color: #f9fafb;
}

.stlu-template-dark .stlu-table thead::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #6366f1 50%, transparent 100%);
}

.stlu-template-dark .stlu-table th {
    padding: 18px 16px;
    font-weight: 600;
    color: #f9fafb;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

.stlu-template-dark .stlu-table td {
    padding: 16px;
    border-bottom: 1px solid #374151;
    border-right: 1px solid #374151;
    color: #d1d5db;
    transition: all 0.3s ease;
}

.stlu-template-dark .stlu-table tbody tr {
    transition: all 0.3s ease;
}

.stlu-template-dark .stlu-table tbody tr:nth-child(even) {
    background: rgba(26, 32, 44, 0.3);
}

.stlu-template-dark .stlu-table tbody tr:hover {
    background: linear-gradient(90deg, #374151 0%, #4b5563 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stlu-template-dark .stlu-table tbody tr:hover td {
    color: #ffffff;
    border-color: #6b7280;
}



.stlu-template-dark .stlu-table-info {
    background: #1a202c;
    color: #a0aec0;
    border-top: 1px solid #4a5568;
}

/* Colorful Template - Vibrant Rainbow Design */
.stlu-template-colorful .stlu-table-container {
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff);
    background-size: 400% 400%;
    animation: rainbowShift 6s ease infinite;
    padding: 4px;
    position: relative;
}

.stlu-template-colorful .stlu-table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shine 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes rainbowShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(30deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(30deg); }
}

.stlu-template-colorful .stlu-table {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.stlu-template-colorful .stlu-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    color: white;
}

.stlu-template-colorful .stlu-table thead::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff);
    background-size: 200% 100%;
    animation: colorFlow 4s linear infinite;
}

@keyframes colorFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.stlu-template-colorful .stlu-table th {
    padding: 18px 16px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

.stlu-template-colorful .stlu-table td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
}

.stlu-template-colorful .stlu-table tbody tr:nth-child(6n+1) {
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 107, 107, 0.05) 100%);
}

.stlu-template-colorful .stlu-table tbody tr:nth-child(6n+2) {
    background: linear-gradient(90deg, rgba(78, 205, 196, 0.1) 0%, rgba(78, 205, 196, 0.05) 100%);
}

.stlu-template-colorful .stlu-table tbody tr:nth-child(6n+3) {
    background: linear-gradient(90deg, rgba(69, 183, 209, 0.1) 0%, rgba(69, 183, 209, 0.05) 100%);
}

.stlu-template-colorful .stlu-table tbody tr:nth-child(6n+4) {
    background: linear-gradient(90deg, rgba(150, 206, 180, 0.1) 0%, rgba(150, 206, 180, 0.05) 100%);
}

.stlu-template-colorful .stlu-table tbody tr:nth-child(6n+5) {
    background: linear-gradient(90deg, rgba(254, 202, 87, 0.1) 0%, rgba(254, 202, 87, 0.05) 100%);
}

.stlu-template-colorful .stlu-table tbody tr:nth-child(6n) {
    background: linear-gradient(90deg, rgba(255, 159, 243, 0.1) 0%, rgba(255, 159, 243, 0.05) 100%);
}

.stlu-template-colorful .stlu-table tbody tr:hover {
    background: linear-gradient(90deg, #fef3c7 0%, #ddd6fe 25%, #fce7f3 50%, #ecfdf5 75%, #fef3c7 100%) !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stlu-template-colorful .stlu-table tbody tr:hover td {
    border-color: transparent;
    color: #1f2937;
    font-weight: 500;
}

/* Pro Color Schemes */
.stlu-colors-blue .stlu-table thead {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
}

.stlu-colors-green .stlu-table thead {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
}

.stlu-colors-purple .stlu-table thead {
    background: linear-gradient(135deg, #8b5cf6 0%, #5b21b6 100%) !important;
}

.stlu-colors-red .stlu-table thead {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
}

.stlu-colors-orange .stlu-table thead {
    background: linear-gradient(135deg, #f97316 0%, #c2410c 100%) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stlu-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .stlu-table {
        min-width: 600px;
        font-size: 13px;
    }
    
    .stlu-table th,
    .stlu-table td {
        padding: 10px 8px;
        min-width: 100px;
    }
    

    
    .stlu-table-info {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .stlu-table {
        font-size: 12px;
    }
    
    .stlu-table th,
    .stlu-table td {
        padding: 8px 6px;
        min-width: 80px;
    }
    
    .stlu-table th {
        font-size: 11px;
    }
}

/* Print Styles */
@media print {
    .stlu-table-wrapper {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .stlu-table {
        font-size: 10px;
    }
    
    .stlu-table thead {
        background: #000 !important;
        color: #fff !important;
    }
    
    .stlu-table tbody tr:nth-child(even) {
        background-color: #f0f0f0 !important;
    }
    
    .stlu-loading {
        display: none !important;
    }
}

/* Accessibility */
.stlu-table:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.stlu-table th:focus,
.stlu-table td:focus {
    outline: 2px solid #0073aa;
    outline-offset: -2px;
    background-color: rgba(0, 115, 170, 0.1);
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .stlu-table {
        border: 2px solid #000;
    }
    
    .stlu-table th {
        background: #000;
        color: #fff;
        border: 1px solid #fff;
    }
    
    .stlu-table td {
        border: 1px solid #000;
    }
    
    .stlu-table tbody tr:hover {
        background-color: #ffff00;
        color: #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .stlu-table tbody tr,
    .stlu-table .stlu-url a,
    .stlu-table .stlu-email a {
        transition: none;
    }
    
    .stlu-spinner {
        animation: none;
        border: 3px solid #0073aa;
    }
    
    .stlu-table tbody tr:hover {
        transform: none;
    }
}

/* Dark Mode Support - Only for dark template */
@media (prefers-color-scheme: dark) {
    .stlu-template-dark .stlu-table-container {
        background: #1e1e1e;
        color: #e0e0e0;
    }
    
    .stlu-template-dark .stlu-table {
        background: #1e1e1e;
        color: #e0e0e0;
    }
    
    .stlu-template-dark .stlu-table tbody tr:nth-child(even) {
        background-color: #2a2a2a;
    }
    
    .stlu-template-dark .stlu-table tbody tr:hover {
        background-color: #333;
    }
    
    .stlu-template-dark .stlu-table td {
        border-bottom-color: #444;
        border-right-color: #444;
    }
    
    .stlu-template-dark .stlu-table-info {
        background: #2a2a2a;
        color: #b0b0b0;
        border-color: #444;
    }
    
    .stlu-template-dark .stlu-loading {
        background: rgba(30, 30, 30, 0.9);
    }
}

/* DataTables Integration Styles */
.stlu-datatables-wrapper {
    margin: 0;
    font-family: inherit;
}

.stlu-datatables-wrapper .dataTables_length,
.stlu-datatables-wrapper .dataTables_filter,
.stlu-datatables-wrapper .dataTables_info,
.stlu-datatables-wrapper .dataTables_paginate {
    margin: 10px 0;
    font-size: 14px;
}

.stlu-datatables-wrapper .dataTables_length {
    float: left;
}

.stlu-datatables-wrapper .dataTables_filter {
    float: right;
}

.stlu-datatables-wrapper .dataTables_filter input {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 12px;
    margin-left: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.stlu-datatables-wrapper .dataTables_filter input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.stlu-datatables-wrapper .dataTables_info {
    clear: both;
    float: left;
    padding-top: 8px;
    color: #666;
}

.stlu-datatables-wrapper .dataTables_paginate {
    float: right;
    text-align: right;
    padding-top: 8px;
}

.stlu-datatables-wrapper .dataTables_paginate .paginate_button {
    display: inline-block;
    padding: 6px 12px;
    margin-left: 2px;
    text-decoration: none;
    cursor: pointer;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s ease;
}

.stlu-datatables-wrapper .dataTables_paginate .paginate_button:hover {
    color: #0073aa;
    border-color: #0073aa;
    background: #f8f9fa;
}

.stlu-datatables-wrapper .dataTables_paginate .paginate_button.current {
    color: #fff;
    background: #0073aa;
    border-color: #0073aa;
}

.stlu-datatables-wrapper .dataTables_paginate .paginate_button.disabled {
    color: #999;
    cursor: not-allowed;
    background: #f8f9fa;
    border-color: #ddd;
}

.stlu-datatables-wrapper .dataTables_paginate .paginate_button.disabled:hover {
    color: #999;
    background: #f8f9fa;
    border-color: #ddd;
}

/* DataTables Enhanced Table Styles */
.stlu-table.stlu-datatables-enhanced {
    margin-top: 0;
    margin-bottom: 0;
}

.stlu-datatables-wrapper .dataTables_wrapper {
    clear: both;
}

.stlu-datatables-wrapper .dataTables_processing {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    margin-left: -100px;
    margin-top: -26px;
    text-align: center;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive DataTables */
@media (max-width: 768px) {
    .stlu-datatables-wrapper .dataTables_length,
    .stlu-datatables-wrapper .dataTables_filter {
        float: none;
        text-align: center;
        margin: 10px 0;
    }
    
    .stlu-datatables-wrapper .dataTables_info,
    .stlu-datatables-wrapper .dataTables_paginate {
        float: none;
        text-align: center;
        margin: 10px 0;
    }
    
    .stlu-datatables-wrapper .dataTables_filter input {
        width: 100%;
        max-width: 200px;
        margin: 5px 0;
    }
}

/* Dark Mode DataTables */
@media (prefers-color-scheme: dark) {
    .stlu-datatables-wrapper .dataTables_filter input {
        background: #2a2a2a;
        color: #e0e0e0;
        border-color: #444;
    }
    
    .stlu-datatables-wrapper .dataTables_filter input:focus {
        border-color: #0073aa;
    }
    
    .stlu-datatables-wrapper .dataTables_info {
        color: #b0b0b0;
    }
    
    .stlu-datatables-wrapper .dataTables_paginate .paginate_button {
        color: #e0e0e0;
        background: #2a2a2a;
        border-color: #444;
    }
    
    .stlu-datatables-wrapper .dataTables_paginate .paginate_button:hover {
        background: #333;
        border-color: #0073aa;
    }
    
    .stlu-datatables-wrapper .dataTables_processing {
        background: rgba(30, 30, 30, 0.9);
        color: #e0e0e0;
        border-color: #444;
    }
}