
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2em;
    margin-bottom: 10px;
    opacity: 0.9;
}

.data-period {
    font-size: 0.95em;
    opacity: 0.8;
}

/* Stats section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    font-size: 1em;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 2em;
    font-weight: 700;
    color: #667eea;
    display: block;
}

/* Main content */
main {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.results-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.results-header h2 {
    color: #495057;
    margin-bottom: 5px;
}

.results-header p {
    color: #6c757d;
    font-size: 0.95em;
}

/* Table */
.table-container {
    overflow-x: auto;
}

.violations-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.violations-table th {
    background: #495057;
    color: white;
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.violations-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #dee2e6;
}

.violations-table tbody tr:hover {
    background-color: #f8f9fa;
}

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

.plate-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.plate-link:hover {
    background-color: #007bff;
    color: white;
    text-decoration: none;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 10px;
    flex-wrap: wrap;
}

.page-link {
    color: #007bff;
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.page-link:hover {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.page-current {
    background-color: #007bff;
    color: white;
    padding: 8px 12px;
    border: 1px solid #007bff;
    border-radius: 4px;
    font-weight: 600;
}

.ellipsis {
    padding: 8px 4px;
    color: #6c757d;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: #6c757d;
    font-size: 0.9em;
}

footer a {
    color: #007bff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer p {
    margin-bottom: 5px;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    .subtitle {
        font-size: 1em;
    }
    
    .violations-table {
        font-size: 0.85em;
    }
    
    .violations-table th,
    .violations-table td {
        padding: 8px 6px;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .page-link,
    .page-current {
        padding: 6px 8px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .stats-section {
        grid-template-columns: 1fr;
    }
    
    .violations-table th:nth-child(4),
    .violations-table td:nth-child(4),
    .violations-table th:nth-child(5),
    .violations-table td:nth-child(5) {
        display: none;
    }
}
