/**
 * 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;
    width: 100%;
    clear: both;
}

/* Ensure proper table wrapper structure */
.stlu-table-container .stlu-datatables-wrapper {
    width: 100%;
    overflow-x: auto;
}

.stlu-table-container .stlu-datatables-wrapper::after {
    content: "";
    display: table;
    clear: both;
}

/* 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: 16px;
    color: #fff;
    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;
    color: #000;
    font-size: 14px;
}

.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 & Modern Responsive Design */
.stlu-datatables-wrapper,
.dataTables_wrapper.stlu-datatables-wrapper {
    margin: 0;
    padding: 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    clear: both;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Modern Header Design */
.stlu-datatables-wrapper .top {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0;
}

/* DataTables Controls - Modern Design */
.stlu-datatables-wrapper .dataTables_length,
.stlu-datatables-wrapper .dt-length {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    float: none;
}

.stlu-datatables-wrapper .dataTables_filter,
.stlu-datatables-wrapper .dt-search {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    float: none;
}

.stlu-datatables-wrapper .dataTables_length label,
.stlu-datatables-wrapper .dataTables_filter label,
.stlu-datatables-wrapper .dt-length label,
.stlu-datatables-wrapper .dt-search label {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

/* Enhanced Input Styling */
.stlu-datatables-wrapper .dataTables_length select,
.stlu-datatables-wrapper .dt-length select {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    background: #ffffff;
    transition: all 0.3s ease;
    margin: 0;
    min-width: 80px;
    cursor: pointer;
    font-weight: 500;
}

.stlu-datatables-wrapper .dataTables_filter input,
.stlu-datatables-wrapper .dt-search input {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    background: #ffffff;
    transition: all 0.3s ease;
    margin: 0;
    width: 240px;
    min-width: 180px;
    font-weight: 400;
    color: #374151;
}

.stlu-datatables-wrapper .dataTables_filter input::placeholder,
.stlu-datatables-wrapper .dt-search input::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Focus States */
.stlu-datatables-wrapper .dataTables_length select:focus,
.stlu-datatables-wrapper .dataTables_filter input:focus,
.stlu-datatables-wrapper .dt-length select:focus,
.stlu-datatables-wrapper .dt-search input:focus {
    outline: none;
    border-color: #0044B3;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.stlu-datatables-wrapper .dataTables_length select:hover,
.stlu-datatables-wrapper .dataTables_filter input:hover,
.stlu-datatables-wrapper .dt-length select:hover,
.stlu-datatables-wrapper .dt-search input:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Override float for flex layout */
.stlu-datatables-wrapper .top .dataTables_length,
.stlu-datatables-wrapper .top .dataTables_filter,
.stlu-datatables-wrapper .top .dt-length,
.stlu-datatables-wrapper .top .dt-search {
    float: none;
    margin: 0;
    padding: 0;
}

/* Modern Footer Design */
.stlu-datatables-wrapper .bottom {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0;
}

.stlu-datatables-wrapper .bottom .dataTables_info,
.stlu-datatables-wrapper .bottom .dataTables_paginate,
.stlu-datatables-wrapper .bottom .dt-info,
.stlu-datatables-wrapper .bottom .dt-paging {
    float: none;
    margin: 0;
    padding: 0;
}

/* Enhanced Info Styling */
.stlu-datatables-wrapper .dataTables_info,
.stlu-datatables-wrapper .dt-info {
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stlu-datatables-wrapper .dataTables_info::before,
.stlu-datatables-wrapper .dt-info::before {
    content: "📊";
    font-size: 16px;
    margin-right: 4px;
}

/* Minimal Pagination Design */
.stlu-datatables-wrapper .dataTables_paginate,
.stlu-datatables-wrapper .dt-paging {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
}

.stlu-datatables-wrapper .dataTables_paginate .paginate_button,
.stlu-datatables-wrapper .dt-paging .dt-paging-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    margin: 0;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #6b7280;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.15s ease;
    cursor: pointer;
    min-width: 32px;
    height: 32px;
}

.stlu-datatables-wrapper .dataTables_paginate .paginate_button:hover,
.stlu-datatables-wrapper .dt-paging .dt-paging-button:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

.stlu-datatables-wrapper .dataTables_paginate .paginate_button.current,
.stlu-datatables-wrapper .dt-paging .dt-paging-button.current {
    background: #0044B3;
    border-color: #0044B3;
    color: #ffffff;
}

.stlu-datatables-wrapper .dataTables_paginate .paginate_button.current:hover,
.stlu-datatables-wrapper .dt-paging .dt-paging-button.current:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.stlu-datatables-wrapper .dataTables_paginate .paginate_button.disabled,
.stlu-datatables-wrapper .dt-paging .dt-paging-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: #f9fafb;
    color: #9ca3af;
    border-color: #f3f4f6;
}

/* Minimal Previous/Next buttons */
.stlu-datatables-wrapper .dataTables_paginate .paginate_button.previous,
.stlu-datatables-wrapper .dataTables_paginate .paginate_button.next,
.stlu-datatables-wrapper .dt-paging .dt-paging-button.previous,
.stlu-datatables-wrapper .dt-paging .dt-paging-button.next {
    font-weight: 400;
    padding: 6px 8px;
}

.stlu-datatables-wrapper .dataTables_paginate .paginate_button.previous::before,
.stlu-datatables-wrapper .dt-paging .dt-paging-button.previous::before {
    content: "‹";
    font-size: 14px;
}

.stlu-datatables-wrapper .dataTables_paginate .paginate_button.next::after,
.stlu-datatables-wrapper .dt-paging .dt-paging-button.next::after {
    content: "›";
    font-size: 14px;
}

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

.stlu-datatables-wrapper .top::after,
.stlu-datatables-wrapper .bottom::after {
    content: "";
    display: table;
    clear: both;
}

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

/* Enhanced Responsive Design */
@media screen and (max-width: 768px) {
    .stlu-table-container {
        margin: 10px 0;
        border-radius: 8px;
    }
    
    .stlu-datatables-wrapper {
        border-radius: 8px;
    }
    
    /* Mobile Header Layout */
    .stlu-datatables-wrapper .top {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px;
        gap: 12px;
    }
    
    .stlu-datatables-wrapper .dataTables_length,
    .stlu-datatables-wrapper .dataTables_filter,
    .stlu-datatables-wrapper .dt-length,
    .stlu-datatables-wrapper .dt-search {
        justify-content: center;
        width: 100%;
    }
    
    .stlu-datatables-wrapper .dataTables_length label,
    .stlu-datatables-wrapper .dataTables_filter label,
    .stlu-datatables-wrapper .dt-length label,
    .stlu-datatables-wrapper .dt-search label {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .stlu-datatables-wrapper .dataTables_filter input,
    .stlu-datatables-wrapper .dt-search input {
        width: 100%;
        max-width: 280px;
        min-width: auto;
    }
    
    .stlu-datatables-wrapper .dataTables_length select,
    .stlu-datatables-wrapper .dt-length select {
        width: 100px;
    }
    
    /* Mobile Footer Layout */
    .stlu-datatables-wrapper .bottom {
        flex-direction: column;
        align-items: center;
        padding: 16px 20px;
        gap: 12px;
        text-align: center;
    }
    
    .stlu-datatables-wrapper .dataTables_info,
    .stlu-datatables-wrapper .dt-info {
        order: 2;
        justify-content: center;
        font-size: 13px;
    }
    
    .stlu-datatables-wrapper .dataTables_paginate,
    .stlu-datatables-wrapper .dt-paging {
        order: 1;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1px;
    }
    
    .stlu-datatables-wrapper .dataTables_paginate .paginate_button,
    .stlu-datatables-wrapper .dt-paging .dt-paging-button {
        padding: 4px 8px;
        font-size: 12px;
        min-width: 28px;
        height: 28px;
    }
    
    /* Hide most pagination buttons on mobile - show only prev/next/current */
    .stlu-datatables-wrapper .dataTables_paginate .paginate_button:not(.previous):not(.next):not(.current),
    .stlu-datatables-wrapper .dt-paging .dt-paging-button:not(.previous):not(.next):not(.current) {
        display: none;
    }
    
    .stlu-table {
        font-size: 14px;
    }
    
    .stlu-table th,
    .stlu-table td {
        padding: 8px 6px;
    }
}

@media screen and (max-width: 480px) {
    .stlu-table-wrapper {
        margin: 8px 0;
    }
    
    .stlu-datatables-wrapper {
        border-radius: 6px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    }
    
    /* Extra small mobile adjustments */
    .stlu-datatables-wrapper .top,
    .stlu-datatables-wrapper .bottom {
        padding: 12px 16px;
    }
    
    .stlu-datatables-wrapper .dataTables_filter input,
    .stlu-datatables-wrapper .dt-search input {
        max-width: 100%;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .stlu-datatables-wrapper .dataTables_length select,
    .stlu-datatables-wrapper .dt-length select {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .stlu-datatables-wrapper .dataTables_paginate .paginate_button,
    .stlu-datatables-wrapper .dt-paging .dt-paging-button {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 32px;
        height: 32px;
    }
    
    .stlu-datatables-wrapper .dataTables_info,
    .stlu-datatables-wrapper .dt-info {
        font-size: 12px;
    }
    
    .stlu-table {
        font-size: 13px;
    }
    
    .stlu-table th,
    .stlu-table td {
        padding: 6px 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, #0044B3 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;
}

/* Bootstrap 5 DataTables Integration */
.stlu-bootstrap5.stlu-datatables-wrapper {
    margin-top: 1.5rem;
}

.stlu-bootstrap5 .dataTables_wrapper {
    padding: 0;
}

.stlu-bootstrap5 .dataTables_length,
.stlu-bootstrap5 .dataTables_filter,
.stlu-bootstrap5 .dt-length,
.stlu-bootstrap5 .dt-search {
    margin-bottom: 1rem;
}

.stlu-bootstrap5 .dataTables_length label,
.stlu-bootstrap5 .dataTables_filter label,
.stlu-bootstrap5 .dt-length label,
.stlu-bootstrap5 .dt-search label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stlu-bootstrap5 .input-group .input-group-text {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.stlu-bootstrap5 .dataTables_info,
.stlu-bootstrap5 .dt-info {
    padding-top: 0.75rem;
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0;
}

.stlu-bootstrap5 .dataTables_paginate,
.stlu-bootstrap5 .dt-paging {
    padding-top: 0.5rem;
    display: flex;
    justify-content: flex-end;
}

.stlu-bootstrap5 .pagination {
    margin-bottom: 0;
    gap: 2px;
}

.stlu-bootstrap5 .page-link {
    color: #6b7280;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
    text-decoration: none;
    border-radius: 4px;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stlu-bootstrap5 .page-link:hover {
    color: #374151;
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.stlu-bootstrap5 .page-item.active .page-link {
    color: #fff;
    background-color: #0044B3;
    border-color: #0044B3;
}

.stlu-bootstrap5 .page-item.disabled .page-link {
    color: #9ca3af;
    background-color: #f9fafb;
    border-color: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.5;
}

.stlu-bootstrap5 .table {
    margin-bottom: 0;
}

.stlu-bootstrap5 .table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(0, 0, 0, 0.05);
}

.stlu-bootstrap5 .table-hover > tbody > tr:hover > td {
    background-color: rgba(0, 0, 0, 0.075);
}

/* 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;
    }
    
    .stlu-bootstrap5 .dataTables_length,
    .stlu-bootstrap5 .dataTables_filter,
    .stlu-bootstrap5 .dt-length,
    .stlu-bootstrap5 .dt-search {
        text-align: center;
        margin-bottom: 0.75rem;
    }
    
    .stlu-bootstrap5 .dataTables_info,
    .stlu-bootstrap5 .dataTables_paginate,
    .stlu-bootstrap5 .dt-info,
    .stlu-bootstrap5 .dt-paging {
        text-align: center;
        padding-top: 0.5rem;
        justify-content: center;
    }
    
    .stlu-bootstrap5 .page-link {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
        min-width: 28px;
        height: 28px;
    }
    
    .stlu-bootstrap5 .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1px;
    }
}

/* 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: #d1d5db;
        background: #374151;
        border-color: #4b5563;
    }
    
    .stlu-datatables-wrapper .dataTables_paginate .paginate_button:hover {
        background: #4b5563;
        border-color: #6b7280;
        color: #f9fafb;
    }
    
    .stlu-datatables-wrapper .dataTables_paginate .paginate_button.current {
        background: #0044B3;
        border-color: #0044B3;
        color: #ffffff;
    }
    
    .stlu-datatables-wrapper .dataTables_processing {
        background: rgba(30, 30, 30, 0.9);
        color: #e0e0e0;
        border-color: #444;
    }
}

/* DataTables 2.x Compatibility Fixes */
.stlu-datatables-wrapper .dt-container {
    margin: 0;
    font-family: inherit;
}

.stlu-datatables-wrapper .dt-length,
.stlu-datatables-wrapper .dt-search,
.stlu-datatables-wrapper .dt-info,
.stlu-datatables-wrapper .dt-paging {
    margin: 10px 0;
    font-size: 14px;
}

.stlu-datatables-wrapper .dt-length {
    float: left;
}

.stlu-datatables-wrapper .dt-search {
    float: right;
}

.stlu-datatables-wrapper .dt-search 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 .dt-search input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

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

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

.stlu-datatables-wrapper .dt-paging .dt-paging-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 .dt-paging .dt-paging-button:hover {
    color: #0073aa;
    border-color: #0073aa;
    background: #f8f9fa;
}

.stlu-datatables-wrapper .dt-paging .dt-paging-button.current {
    color: #fff;
    background: #0073aa;
    border-color: #0073aa;
}

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

.stlu-datatables-wrapper .dt-paging .dt-paging-button.disabled:hover {
    color: #999;
    background: #f8f9fa;
    border-color: #ddd;
}

/* Responsive DataTables 2.x */
@media (max-width: 768px) {
    .stlu-datatables-wrapper .dt-length,
    .stlu-datatables-wrapper .dt-search {
        float: none;
        text-align: center;
        margin: 10px 0;
    }
    
    .stlu-datatables-wrapper .dt-info,
    .stlu-datatables-wrapper .dt-paging {
        float: none;
        text-align: center;
        margin: 10px 0;
    }
    
    .stlu-datatables-wrapper .dt-search input {
        width: 100%;
        max-width: 200px;
        margin: 5px 0;
    }
}

/* Clear floats for DataTables 2.x */
.stlu-datatables-wrapper .dt-container::after {
    content: "";
    display: table;
    clear: both;
}