/* LWFS Zone Report Styles */
.lwfs-zone-report-wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 100%;
    margin: 20px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Header Styles */
.lwfs-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.lwfs-report-header h2 {
    color: white;
    font-size: 2.5em;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.lwfs-report-actions {
    display: flex;
    gap: 15px;
}

/* Button Styles */
.lwfs-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.lwfs-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.lwfs-btn-primary {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
}

.lwfs-btn-secondary {
    background: linear-gradient(45deg, #2196F3, #1976D2);
    color: white;
}

.lwfs-btn-success {
    background: linear-gradient(45deg, #FF9800, #F57C00);
    color: white;
}

.lwfs-btn-danger {
    background: linear-gradient(45deg, #f44336, #d32f2f);
    color: white;
}

/* Filter Styles */
.lwfs-report-filters {
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    flex: 1;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.filter-group select,
.filter-group input {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

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

/* Statistics Cards */
.lwfs-report-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    opacity: 0.9;
}

.stat-number {
    font-size: 2.2em;
    font-weight: 700;
    display: block;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Table Container */
.lwfs-table-container {
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow-x: auto;
    max-width: 100%;
}

/* Table Styles */
.lwfs-zone-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 2000px; /* Increased for more columns */
    white-space: nowrap;
}

.lwfs-zone-table th {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    border: none;
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 11px;
    min-width: 80px;
}

.lwfs-zone-table td {
    padding: 10px 6px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    background: white;
    font-size: 11px;
    min-width: 60px;
}

.lwfs-zone-table tbody tr:hover {
    background: linear-gradient(45deg, #f8f9ff, #e8f2ff);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* Stat Cell Styles */
.stat-cell {
    font-weight: 600;
    font-size: 12px;
    padding: 8px 4px !important;
    border-radius: 6px;
    margin: 1px;
    display: inline-block;
    min-width: 30px;
    text-align: center;
}

.stat-cell.cert-ready {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.stat-cell.cert-allocated {
    background: linear-gradient(45deg, #2196F3, #1976D2);
    color: white;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.stat-cell.cert-pending {
    background: linear-gradient(45deg, #FF9800, #F57C00);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

/* Loading and Error States */
.lwfs-loading {
    text-align: center;
    padding: 50px;
    color: white;
    font-size: 18px;
}

.lwfs-loading i {
    font-size: 24px;
    margin-right: 10px;
}

.lwfs-error {
    text-align: center;
    padding: 50px;
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
    border-radius: 8px;
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lwfs-zone-report-wrapper {
        padding: 20px;
        margin: 10px;
    }
    
    .lwfs-report-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .lwfs-report-header h2 {
        font-size: 2em;
    }
    
    .lwfs-report-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .lwfs-report-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2em;
    }
    
    .lwfs-zone-table {
        font-size: 10px;
        min-width: 1500px;
    }
    
    .lwfs-zone-table th,
    .lwfs-zone-table td {
        padding: 8px 4px;
        font-size: 10px;
    }
}

/* Print Styles */
@media print {
    .lwfs-zone-report-wrapper {
        background: white !important;
        box-shadow: none !important;
    }
    
    .lwfs-report-filters,
    .lwfs-report-actions {
        display: none !important;
    }
    
    .lwfs-zone-table {
        font-size: 10px;
        min-width: auto;
    }
    
    .stat-cell {
        background: #f0f0f0 !important;
        color: #333 !important;
        box-shadow: none !important;
    }
}

/* DataTable Customization */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: #333;
    margin: 10px 0;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white !important;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    margin: 0 2px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
    color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(45deg, #4CAF50, #45a049) !important;
}

/* Scrollbar Styling */
.lwfs-table-container::-webkit-scrollbar {
    height: 12px;
}

.lwfs-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.lwfs-table-container::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 6px;
}

.lwfs-table-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
}

/* Table scroll indicators */
.lwfs-table-container::before,
.lwfs-table-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    pointer-events: none;
    z-index: 5;
}

.lwfs-table-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.9), transparent);
}

.lwfs-table-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
}

/* Column grouping for better readability */
.lwfs-zone-table th:nth-child(1) {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    min-width: 120px;
}

.lwfs-zone-table th:nth-child(n+2):nth-child(-n+4) {
    background: linear-gradient(45deg, #2196F3, #1976D2);
}

.lwfs-zone-table th:nth-child(n+5):nth-child(-n+12) {
    background: linear-gradient(45deg, #FF9800, #F57C00);
}

.lwfs-zone-table th:nth-child(n+13):nth-child(-n+17) {
    background: linear-gradient(45deg, #9C27B0, #7B1FA2);
}

.lwfs-zone-table th:nth-child(n+18):nth-child(-n+29) {
    background: linear-gradient(45deg, #607D8B, #455A64);
}
