/* Elegant DataTables Styling */

/* Header Styling - Matching Clients Style */
table.dataTable thead > tr > th,
.dataTables_wrapper table.dataTable thead > tr > th {
    background: #3b82f6 !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    border: none !important;
    padding: 15px 12px !important;
    position: relative;
    transition: all 0.2s ease;
}

table.dataTable thead > tr > th:hover {
    background: #2563eb !important;
}

/* Sorting indicators with better styling */
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after {
    color: white !important;
    opacity: 0.8;
    font-size: 12px;
}

table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
    background: #1d4ed8 !important;
    color: white !important;
    font-weight: 600;
}

/* Project Names Styling */
table.dataTable tbody td:first-child a,
table.dataTable tbody td a[href*="projects/view"],
table.dataTable tbody td a[href*="projects/project"] {
    color: #2c3e50 !important;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 0;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white !important;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(245, 87, 108, 0.2);
}

table.dataTable tbody td:first-child a:hover,
table.dataTable tbody td a[href*="projects/view"]:hover,
table.dataTable tbody td a[href*="projects/project"]:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 87, 108, 0.4);
    text-decoration: none;
}

/* Client Names Styling */
table.dataTable tbody td a[href*="clients/client"] {
    color: #2c3e50 !important;
    font-weight: 500;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white !important;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 100px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

table.dataTable tbody td a[href*="clients/client"]:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    text-decoration: none;
}

/* Row Styling - Professional and Simple */
table.dataTable tbody > tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #e2e8f0;
    border-left: 2px solid transparent;
}

table.dataTable tbody > tr:hover {
    background: #f8fafc !important;
    border-left: 2px solid #3b82f6;
}

/* Alternating row colors */
table.dataTable tbody > tr:nth-child(even) {
    background-color: #f8f9fa;
}

table.dataTable tbody > tr:nth-child(odd) {
    background-color: #ffffff;
}

/* Status and Action Buttons */
table.dataTable tbody .btn {
    border-radius: 0;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 2px;
}

table.dataTable tbody .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Status Badges */
table.dataTable tbody .label,
table.dataTable tbody .badge {
    border-radius: 0;
    font-weight: 600;
    padding: 4px 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Starred/Important Indicators */
table.dataTable tbody .text-warning,
table.dataTable tbody .text-danger {
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Date Styling */
table.dataTable tbody td[data-order] {
    font-weight: 500;
    color: #495057;
}

/* ID Column Styling */
table.dataTable tbody td:first-child {
    font-weight: 700;
    color: #667eea;
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0;
    padding: 8px 12px;
    text-align: center;
}

/* File count buttons */
table.dataTable tbody .show-files-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border: none;
    border-radius: 0;
    padding: 6px 12px;
    font-weight: 600;
}

table.dataTable tbody .show-files-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Table Container Styling */
.dataTables_wrapper {
    background: white;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 20px;
    margin: 20px 0;
}

/* Search and Length Controls */
.dataTables_filter input,
.dataTables_length select {
    border: 2px solid #e9ecef;
    border-radius: 0;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.dataTables_filter input:focus,
.dataTables_length select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Pagination Styling */
.dataTables_paginate .paginate_button {
    border-radius: 0 !important;
    margin: 0 2px;
    border: none !important;
    background: #f8f9fa !important;
    color: #6c757d !important;
    transition: all 0.3s ease;
}

.dataTables_paginate .paginate_button:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    font-weight: 600;
}

/* Loading Animation */
.dataTables_processing {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-radius: 0;
    padding: 20px !important;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    table.dataTable thead > tr > th {
        font-size: 12px;
        padding: 10px 8px;
    }
    
    table.dataTable tbody td:first-child a,
    table.dataTable tbody td a[href*="projects/view"],
    table.dataTable tbody td a[href*="projects/project"] {
        min-width: 100px;
        font-size: 12px;
        padding: 4px 8px;
    }
    
    table.dataTable tbody td a[href*="clients/client"] {
        min-width: 80px;
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .dataTables_wrapper {
        padding: 10px;
        margin: 10px 0;
    }
    
    .dataTables_filter input,
    .dataTables_length select {
        font-size: 12px;
        padding: 6px 8px;
    }
}

@media (max-width: 480px) {
    table.dataTable thead > tr > th {
        font-size: 11px;
        padding: 8px 6px;
    }
    
    table.dataTable tbody td {
        font-size: 12px;
        padding: 8px 6px;
    }
    
    .dataTables_wrapper {
        padding: 5px;
        margin: 5px 0;
    }
}

/* Custom scrollbar for table */
.dataTables_scrollBody::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.dataTables_scrollBody::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0;
}

.dataTables_scrollBody::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0;
}

.dataTables_scrollBody::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Empty state styling */
.dataTables_empty {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
    font-style: italic;
    padding: 40px 20px;
    text-align: center;
    border-radius: 0;
}

/* Info text styling */
.dataTables_info {
    color: #6c757d;
    font-weight: 500;
    padding: 10px 0;
}

/* Export buttons styling */
.dt-buttons .btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white !important;
    border: none;
    border-radius: 0;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dt-buttons .btn:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
} /* Updated: Thu Aug 21 03:09:18 +01 2025 */
