* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e8ba3 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.card h2 {
    margin-bottom: 20px;
    color: #000000;
    border-bottom: 3px solid #2a5298;
    padding-bottom: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

thead {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    color: #000000;
}

th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    color: #ffffff;
}

tbody tr {
    transition: background-color 0.2s;
}

tbody tr:hover {
    background-color: #e8eaf6;
}

.rank {
    font-weight: bold;
    color: #000000;
    font-size: 1.1em;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
}

.rank-1 { 
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000000;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}
.rank-2 { 
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
    color: #000000;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4);
}
.rank-3 { 
    background: linear-gradient(135deg, #CD7F32 0%, #B8722C 100%);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4);
}

.score {
    font-weight: 600;
    color: #000000;
}

.chart-container {
    position: relative;
    height: 400px;
    margin-top: 20px;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.model-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.model-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.model-checkbox:hover {
    border-color: #2a5298;
    box-shadow: 0 2px 6px rgba(42, 82, 152, 0.2);
}

.model-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.model-checkbox label {
    cursor: pointer;
    font-weight: 500;
    margin: 0;
}

.model-checkbox.checked {
    background: #e8eaf6;
    border-color: #2a5298;
}

@media (max-width: 968px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    margin-left: 8px;
}

.badge-open { background: #d4edda; color: #155724; }
.badge-proprietary { background: #fff3cd; color: #856404; }

.filters {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #2a5298;
    background: white;
    color: #000000;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: #2a5298;
    color: #ffffff;
}

.last-updated {
    text-align: center;
    color: white;
    margin-top: 20px;
    opacity: 0.8;
    font-size: 0.9em;
}