.confronto-operatori-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.filter-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.filter-section label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.filter-section select, .filter-section button {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
}

.filter-section button {
    background: #007cba;
    color: white;
    cursor: pointer;
    font-weight: 600;
}

.filter-section button:hover {
    background: #005a87;
}

.filter-section button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.stats-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stats-card h3 {
    font-size: 1.8rem;
    color: #007cba;
    margin: 0 0 5px 0;
}

.stats-card p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.operators-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.operators-table th {
    background: #f8f9fa;
    font-weight: 600;
    text-align: left;
    padding: 15px;
    border-bottom: 2px solid #dee2e6;
}

.operators-table td {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
}

.operators-table tr:hover {
    background: #f8f9fa;
}

.performance-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.perf-excellent { background: #28a745; color: white; }
.perf-good { background: #17a2b8; color: white; }
.perf-average { background: #ffc107; color: #212529; }
.perf-poor { background: #dc3545; color: white; }

.loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.paging-controls {
    text-align: center;
    margin-top: 20px;
}
.paging-controls .buttons {
    display: flex;
    justify-content: center;
}
.paging-controls .page-info {
    margin-top: 5px;
}
.paging-controls button {
    padding: 8px 16px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 10px;
}
.paging-controls button.prev-page {
    background: #6c757d; /* Grigio per Precedente */
}
.paging-controls button.next-page {
    background: #28a745; /* Verde per Successiva */
}
.paging-controls button:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .stats-summary {
        grid-template-columns: 1fr;
    }
    
    .operators-table {
        font-size: 14px;
    }
    
    .operators-table th, .operators-table td {
        padding: 10px;
    }
}