.leaderboard-table td:not(.model-name):not(.actions-header):hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(240, 147, 251, 0.1));
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    z-index: 5;
    font-weight: 800;
    color: var(--text-light);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark theme (default) */
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --dark-bg: #0f0f23;
    --card-bg: #1a1a2e;
    --text-light: #e4e4e7;
    --text-dark: #71717a;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --gold: #ffd700;
    --silver: #c0c0c0;
    --bronze: #cd7f32;

    /* Theme variables */
    --bg-primary: var(--dark-bg);
    --bg-secondary: var(--card-bg);
    --text-primary: var(--text-light);
    --text-secondary: var(--text-dark);
    --border-color: rgba(255, 255, 255, 0.1);
    --hover-bg: rgba(102, 126, 234, 0.1);
}

/* Light theme */
[data-theme="light"] {
    --dark-bg: #ffffff;
    --card-bg: #f8fafc;
    --text-light: #1f2937;
    --text-dark: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: rgba(0, 0, 0, 0.15);
    --hover-bg: rgba(102, 126, 234, 0.05);
}

/* Light theme specific overrides */
[data-theme="light"] .bg-animation {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, #ffffff 100%);
}

[data-theme="light"] .bg-animation::before {
    background: radial-gradient(circle at 30% 70%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(240, 147, 251, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
}

[data-theme="light"] .header {
    background: rgba(248, 250, 252, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .section {
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .section:hover {
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.08);
}

[data-theme="light"] .filter-panel {
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .table-container {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .leaderboard-table th {
    background: rgba(102, 126, 234, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .leaderboard-table td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .family-header {
    background: rgba(113, 113, 122, 0.1) !important;
    border-left: 4px solid var(--primary-color) !important;
}

[data-theme="light"] .nav-link {
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: var(--text-primary);
}

[data-theme="light"] .nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
}

[data-theme="light"] .top-model-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .top-model-card.rank-1 {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 255, 255, 0.95));
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.15);
}

[data-theme="light"] .top-model-card.rank-2 {
    border-color: var(--silver);
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(255, 255, 255, 0.95));
    box-shadow: 0 8px 32px rgba(192, 192, 192, 0.15);
}

[data-theme="light"] .top-model-card.rank-3 {
    border-color: var(--bronze);
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), rgba(255, 255, 255, 0.95));
    box-shadow: 0 8px 32px rgba(205, 127, 50, 0.15);
}

[data-theme="light"] .top-model-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Light theme - Charts section */
[data-theme="light"] .charts-section {
    background: rgba(248, 250, 252, 0.6);
}

[data-theme="light"] .chart-container {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .chart-container:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .chart-title {
    color: var(--text-primary);
}

/* Light theme - About section */
[data-theme="light"] .key-insights {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .key-insights h3 {
    color: var(--text-primary);
}

[data-theme="light"] .key-insights li {
    color: var(--text-primary);
}

[data-theme="light"] .key-insights li::before {
    color: var(--primary-color);
}

/* Light theme - Citation section */
[data-theme="light"] .citation-box {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .citation-box pre {
    color: var(--text-primary);
}

[data-theme="light"] .copy-citation-btn {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: var(--text-primary);
}

[data-theme="light"] .copy-citation-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: var(--primary-color);
}

/* Light theme - Footer */
[data-theme="light"] .footer {
    background: rgba(248, 250, 252, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
}

/* Light theme - Top models section */
[data-theme="light"] .top-models-section {
    background: rgba(248, 250, 252, 0.4);
}

/* Light theme - Button improvements */
[data-theme="light"] .btn-primary {
    background: var(--primary-color);
    color: white;
}

[data-theme="light"] .btn-secondary {
    background: rgba(248, 250, 252, 0.9);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--primary-color);
}

[data-theme="light"] .btn-icon {
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .btn-icon:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Light theme - Controls section */
[data-theme="light"] .controls {
    background: rgba(248, 250, 252, 0.7);
}

[data-theme="light"] .search-box input,
[data-theme="light"] .sort-select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
}

/* Light theme - Modals */
[data-theme="light"] .modal {
    background-color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .modal-content {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
}

[data-theme="light"] .modal-content h2,
[data-theme="light"] .modal-content h3 {
    color: var(--text-primary);
}

[data-theme="light"] .close {
    color: var(--text-secondary);
}

[data-theme="light"] .close:hover {
    color: var(--text-primary);
}

/* Light theme - Modal detail cards */
[data-theme="light"] .detail-card {
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .detail-card h3 {
    color: var(--primary-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .metric-row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

[data-theme="light"] .modal-actions {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Light theme - Comparison modal */
[data-theme="light"] .comparison-card {
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .comparison-card h3 {
    color: var(--text-primary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .comparison-metrics .label {
    color: var(--text-secondary);
}

[data-theme="light"] .comparison-metrics .value {
    color: var(--text-primary);
}

[data-theme="light"] .comparison-actions {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Light theme - Filter inputs */
[data-theme="light"] .filter-group select,
[data-theme="light"] .filter-group input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
}

[data-theme="light"] .filter-group select:focus,
[data-theme="light"] .filter-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

[data-theme="light"] .filter-group select:hover,
[data-theme="light"] .filter-group input:hover {
    border-color: var(--primary-color);
}

/* Light theme - Filter labels */
[data-theme="light"] .filter-label {
    color: var(--text-primary);
}


body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2000;
}

.theme-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.theme-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.theme-btn i {
    transition: transform 0.3s ease;
}

/* Enhanced Animated Background */
.bg-animation {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a3e 50%, #0f0f23 100%);
    overflow: hidden;
}

.bg-animation::before {
    content: '';
    position: absolute;
    width: 300%;
    height: 300%;
    top: -100%;
    left: -100%;
    background: radial-gradient(circle at 30% 70%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(240, 147, 251, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
    animation: rotate 60s linear infinite;
}

.bg-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="g" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(102,126,234,0.3);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(102,126,234,0);stop-opacity:0" /></radialGradient></defs><circle cx="25" cy="25" r="2" fill="url(%23g)"><animate attributeName="cy" values="25;75;25" dur="3s" repeatCount="indefinite"/></circle><circle cx="75" cy="75" r="1.5" fill="url(%23g)"><animate attributeName="cx" values="75;25;75" dur="4s" repeatCount="indefinite"/></circle><circle cx="50" cy="50" r="1" fill="url(%23g)"><animate attributeName="r" values="1;3;1" dur="2s" repeatCount="indefinite"/></circle></svg>') repeat;
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

/* Particle System */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s infinite ease-in-out;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* Header Styles */
.header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: relative;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    height: auto;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-content {
    text-align: center;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.authors {
    margin-bottom: 1rem;
}

.author {
    color: var(--text-light);
    font-weight: 500;
    margin: 0 0.5rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.affiliation {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.correspondence {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 2rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 44px;
    box-sizing: border-box;
}

.nav-link:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.nav-link i {
    font-size: 1rem;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

.section {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.section:hover {
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title i {
    color: var(--primary-color);
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Leaderboard Table */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    background: transparent;
    table-layout: fixed;
    min-width: 1200px;
}

.leaderboard-table th {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.2));
    color: var(--text-primary);
    padding: 0.6rem 0.3rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--primary-color);
    border-right: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    line-height: 1.2;
    vertical-align: middle;
    white-space: normal;
    word-break: keep-all;
}

/* Column width specifications via colgroup */
col.col-rank { width: 60px; }
col.col-model { width: 190px; }
col.col-num { width: 78px; }
col.col-tokens { width: 88px; }
col.col-actions { width: 70px; }
col.overall-colgroup { width: 84px; }

/* Table Header Styles */
.main-header {
    background: rgba(102, 126, 234, 0.3);
    font-size: 1rem;
    font-weight: 700;
}

.difficulty-header {
    background: rgba(102, 126, 234, 0.25);
    font-weight: 700;
    font-size: 1rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.4);
}

.easy-header {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    border-bottom-color: var(--success-color);
}

.medium-header {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
    border-bottom-color: var(--warning-color);
}

.hard-header {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
    border-bottom-color: var(--danger-color);
}

.overall-header {
    background: rgba(102, 126, 234, 0.3);
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 700;
}

.sub-header {
    font-size: 0.85rem;
    padding: 0.4rem 0.3rem;
}

.overall-col {
    background: rgba(102, 126, 234, 0.15);
    font-weight: 600;
}

.leaderboard-table td.overall-col {
    background: rgba(102, 126, 234, 0.15);
    font-weight: 800;
    border-left: 3px solid var(--primary-color);
    color: var(--text-light);
    font-size: 0.95rem;
}

.actions-header {
    background: rgba(102, 126, 234, 0.3);
}

.leaderboard-table td {
    padding: 0.6rem 0.4rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    line-height: 1.3;
    vertical-align: middle;
    overflow: hidden;
    word-wrap: normal;
    text-overflow: ellipsis;
}

/* Only apply truncation to model name column */
.leaderboard-table td:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.family-header {
    background: rgba(113, 113, 122, 0.2) !important;
    font-weight: 700;
    color: var(--text-primary) !important;
    text-align: center;
    font-style: italic;
    font-size: 0.95rem;
    padding: 0.75rem 0.5rem !important;
    border-left: 4px solid var(--primary-color) !important;
}

.model-name {
    text-align: left !important;
    font-weight: 500;
    color: var(--text-light);
}

.model-name-center {
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.best-score {
    font-weight: 700;
    color: var(--gold);
}

.second-best-score {
    text-decoration: underline;
    color: var(--silver);
}

.overall-score {
    background: rgba(113, 113, 122, 0.15);
    font-weight: 600;
}

.proprietary-model {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }

    .title {
        font-size: 2.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .leaderboard-table {
        font-size: 0.8rem;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 0.4rem 0.2rem;
        font-size: 0.7rem;
    }

    .table-container {
        max-width: 1200px;
    }

    .btn-icon {
        min-width: 20px;
        height: 20px;
        font-size: 0.55rem;
        padding: 0.15rem;
        margin: 0 0.05rem;
    }
}

/* Footer */
.footer {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-dark);
    margin-top: 4rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer a:hover {
    color: var(--accent-color);
}

/* Scroll animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Key Features */
.key-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    background: rgba(15, 15, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Table Controls */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-container {
    position: relative;
    flex-grow: 1;
    max-width: 400px;
}

.search-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dark);
}

.search-container input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: rgba(15, 15, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.copy-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Table Legend */
.table-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(15, 15, 35, 0.6);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.legend-marker {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

/* Methodology Grid */
.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.method-card {
    background: rgba(15, 15, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.method-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.method-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.method-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.method-card p {
    color: var(--text-dark);
    line-height: 1.5;
}

/* Findings Grid */
.findings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.finding-card {
    background: rgba(15, 15, 35, 0.8);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 0.75rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.finding-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.finding-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.finding-label {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Key Insights */
.key-insights {
    background: rgba(15, 15, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-top: 2rem;
}

.key-insights h3 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.key-insights h3::before {
    content: "💡";
    font-size: 1.2rem;
}

.key-insights ul {
    list-style: none;
    padding: 0;
}

.key-insights li {
    color: var(--text-light);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.key-insights li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Citation Section */
.citation-box {
    background: rgba(15, 15, 35, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    position: relative;
}

.citation-box pre {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--text-light);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    overflow-x: auto;
}

.copy-citation-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 0.375rem;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.copy-citation-btn:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: var(--primary-color);
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .key-features {
        grid-template-columns: 1fr;
    }

    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-container {
        max-width: none;
    }

    .table-legend {
        gap: 1rem;
    }

    .methodology-grid {
        grid-template-columns: 1fr;
    }

    .findings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .finding-number {
        font-size: 2.5rem;
    }

    .citation-box {
        padding: 1rem;
    }

    .copy-citation-btn {
        position: static;
        margin-top: 1rem;
        align-self: flex-start;
    }
}

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

/* Advanced Interactive Features */

/* Top Models Showcase */
.top-models-section {
    padding: 2rem 0;
    background: rgba(26, 26, 46, 0.3);
}

/* Center the Top Performers section title only */
.top-models-section .section-title {
    justify-content: center;
    text-align: center;
}

.top-models-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.top-model-card {
    background: var(--bg-secondary);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.top-model-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

/* Subtle zoom for top model stats */
.top-model-card .stat-value {
    display: inline-block;
    transition: transform 0.18s ease, text-shadow 0.2s ease;
}

.top-model-card:hover .stat-value {
    transform: scale(1.06);
    text-shadow: 0 0 12px rgba(102, 126, 234, 0.35);
}

.top-model-card.rank-1 {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), var(--bg-secondary));
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.2);
}

.top-model-card.rank-2 {
    border-color: var(--silver);
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15), var(--bg-secondary));
    box-shadow: 0 8px 32px rgba(192, 192, 192, 0.2);
}

.top-model-card.rank-3 {
    border-color: var(--bronze);
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15), var(--bg-secondary));
    box-shadow: 0 8px 32px rgba(205, 127, 50, 0.2);
}

/* Filter Panel */
.filter-panel {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1400px;
    transition: all 0.3s ease;
}

.filter-panel:hover {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.filter-panel h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: start;
}

@media (max-width: 1400px) {
    .filter-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Clear filters button positioning - keep it inline */
.filter-group.clear-filters-group {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 85px;
}

.filter-group.clear-filters-group .btn {
    margin-top: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 85px;
    justify-content: flex-start;
    align-items: stretch;
}

.filter-label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.filter-group select,
.filter-group input {
    padding: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
    cursor: pointer;
}


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

.filter-group select:hover,
.filter-group input:hover {
    border-color: var(--primary-color);
}

.range-inputs {
    display: flex;
    gap: 0.5rem;
}

.range-inputs input {
    flex: 1;
}

/* Controls Section */
.controls {
    background: rgba(26, 26, 46, 0.7);
    padding: 1.5rem 0;
    margin: 1rem 0;
}

.controls-grid {
    display: grid;
    grid-template-columns: 2fr 1fr auto auto;
    gap: 1rem;
    align-items: center;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: rgba(15, 15, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dark);
}

.sort-select {
    padding: 0.75rem 1rem;
    background: rgba(15, 15, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
}

.btn {
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #0d9488;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

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

/* Enhanced Table Styles */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: transparent;
}

.leaderboard-table th {
    background: rgba(102, 126, 234, 0.2);
    color: var(--text-light);
    padding: 1rem 0.75rem;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    position: sticky;
    top: 0;
    z-index: 10;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.leaderboard-table th:hover {
    background: rgba(102, 126, 234, 0.3);
}

.leaderboard-table th.sortable {
    user-select: none;
}

.leaderboard-table td {
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.leaderboard-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.1));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.rank {
    font-weight: 800;
    font-size: 1.2rem;
    font-family: 'Arial Black', 'Helvetica Black', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    display: inline-block;
    min-width: 2.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.rank-1 {
    color: var(--gold);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    border: 2px solid var(--gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}
.rank:hover { transform: scale(1.1) rotate(2deg); text-shadow: 0 4px 12px rgba(0,0,0,0.5); }
.rank-1:hover { background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(255, 215, 0, 0.2)); box-shadow: 0 0 25px rgba(255, 215, 0, 0.8); border-color: #ffed4a; }
.rank-2 {
    color: var(--silver);
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2), rgba(192, 192, 192, 0.1));
    border: 2px solid var(--silver);
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.4);
}
.rank-2:hover { background: linear-gradient(135deg, rgba(192, 192, 192, 0.4), rgba(192, 192, 192, 0.2)); box-shadow: 0 0 25px rgba(192, 192, 192, 0.8); border-color: #e2e8f0; }
.rank-3 {
    color: var(--bronze);
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2), rgba(205, 127, 50, 0.1));
    border: 2px solid var(--bronze);
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.4);
}
.rank-3:hover { background: linear-gradient(135deg, rgba(205, 127, 50, 0.4), rgba(205, 127, 50, 0.2)); box-shadow: 0 0 25px rgba(205, 127, 50, 0.8); border-color: #d97706; }

.model-name {
    text-align: left !important;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: all 0.3s ease;
    padding: 0.2rem;
    border-radius: 0.25rem;
    max-width: 100%;
}

/* Color coding for performance metrics */
.leaderboard-table .high-accuracy {
    color: var(--success-color);
    font-weight: 700;
    transition: all 0.3s ease;
}
.leaderboard-table .high-accuracy:hover {
    color: #059669;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.leaderboard-table .medium-accuracy {
    color: var(--warning-color);
    font-weight: 600;
    transition: all 0.3s ease;
}
.leaderboard-table .medium-accuracy:hover {
    color: #d97706;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.leaderboard-table .low-accuracy {
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
}
.leaderboard-table .low-accuracy:hover {
    color: var(--text-primary);
    text-shadow: 0 0 6px rgba(113, 113, 122, 0.4);
}

/* Enhanced number styling */
.leaderboard-table td:not(.model-name):not(.actions-header) {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.2px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 0.25rem;
    cursor: pointer;
}

/* Numeric chips with subtle hover zoom */
.num-chip {
    display: inline-block;
    padding: 0.25rem 0.45rem;
    border-radius: 0.5rem;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    will-change: transform;
}

.num-chip:hover {
    transform: scale(1.035);
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.25);
    background: rgba(102, 126, 234, 0.12);
}

.num-chip.emphasis {
    background: rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.35);
}

/* Specific styling for numeric columns */
.leaderboard-table td:nth-child(n+3):nth-child(-n+14) {
    font-weight: 700;
    min-width: 72px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ensure numeric columns don't truncate */
.leaderboard-table td:nth-child(3),
.leaderboard-table td:nth-child(4),
.leaderboard-table td:nth-child(6),
.leaderboard-table td:nth-child(7),
.leaderboard-table td:nth-child(9),
.leaderboard-table td:nth-child(10),
.leaderboard-table td:nth-child(12),
.leaderboard-table td:nth-child(13) {
    overflow: visible;
    white-space: nowrap;
}

/* Token columns need slightly more space */
.leaderboard-table td:nth-child(5),
.leaderboard-table td:nth-child(8),
.leaderboard-table td:nth-child(11),
.leaderboard-table td:nth-child(14) {
    min-width: 90px;
    white-space: nowrap;
}

/* Increase font size for Easy/Medium/Hard numeric columns */
.leaderboard-table td:nth-child(3),
.leaderboard-table td:nth-child(4),
.leaderboard-table td:nth-child(5),
.leaderboard-table td:nth-child(6),
.leaderboard-table td:nth-child(7),
.leaderboard-table td:nth-child(8),
.leaderboard-table td:nth-child(9),
.leaderboard-table td:nth-child(10),
.leaderboard-table td:nth-child(11) {
    font-size: 0.92rem;
}

/* Ensure model name font-size overrides generic td sizing */
.leaderboard-table td.model-name {
    font-size: 0.92rem;
}

.table-stats {
    text-align: center;
    padding: 1rem;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* Charts Section */
.charts-section {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.4), rgba(15, 15, 35, 0.6));
    padding: 4rem 0;
    position: relative;
    backdrop-filter: blur(10px);
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.chart-container {
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.9), rgba(26, 26, 46, 0.8));
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 1.25rem;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.chart-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.4);
}

.chart-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    text-transform: capitalize;
}

.chart-container canvas {
    max-height: 300px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text-light);
}

/* Floating Action Button */
.fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1500;
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.fab-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.fab-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fab-item:hover {
    background: var(--primary-color);
    transform: translateX(-5px);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design for Interactive Features */
@media (max-width: 1024px) {
    .controls-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .top-models-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 1.5rem;
    }
}

/* Additional Interactive Elements */

/* Button Icons */
.btn-icon {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.3rem;
    margin: 0 0.1rem;
    transition: all 0.3s ease;
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.btn-icon:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* Actions column container */
.actions-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-width: 58px;
    flex-wrap: nowrap;
    padding: 0.15rem;
}

/* Top Model Cards - Additional Styles */
.model-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
}

.model-family {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Modal Detail Styles */
.model-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.detail-card {
    background: rgba(15, 15, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.detail-card h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-row:last-child {
    border-bottom: none;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Comparison Modal */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.comparison-card {
    background: rgba(15, 15, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

.comparison-card h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.comparison-metrics .metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.comparison-metrics .label {
    color: var(--text-dark);
    font-size: 0.9rem;
}

.comparison-metrics .value {
    color: var(--text-light);
    font-weight: 600;
}

.comparison-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced Section Title - Removed duplicate to prevent conflicts */

/* Loading states */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

/* Error states */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.5rem;
    color: var(--danger-color);
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

/* Success states */
.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 0.5rem;
    color: var(--success-color);
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

/* Disabled states */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Chart hover effects */
.chart-container:hover canvas {
    transition: transform 0.3s ease;
    transform: scale(1.02);
}

/* Smooth transitions for all interactive elements */
* {
    scroll-behavior: smooth;
}

/* Print styles */
@media print {
    .fab-container,
    .modal,
    .bg-animation,
    .particles {
        display: none !important;
    }

    .header {
        position: relative !important;
        box-shadow: none !important;
    }

    body {
        padding-top: 0 !important;
        background: white !important;
        color: black !important;
    }
}

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

    .leaderboard-table {
        font-size: 0.7rem;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 0.25rem 0.1rem;
        font-size: 0.6rem;
    }

    .table-container {
        max-width: 100%;
        overflow-x: auto;
    }

    .btn-icon {
        min-width: 14px;
        height: 14px;
        font-size: 0.5rem;
        padding: 0.08rem;
    }

    .actions-buttons {
        min-width: 45px;
        gap: 0.08rem;
        padding: 0.1rem;
    }

    .container {
        max-width: none;
        padding: 0 0.5rem;
    }

    .main-header,
    .difficulty-header {
        font-size: 0.75rem;
    }

    .sub-header {
        font-size: 0.65rem;
        padding: 0.4rem 0.2rem;
    }

    .theme-toggle {
        top: 0.5rem;
        right: 0.5rem;
    }

    .theme-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .fab-container {
        bottom: 1rem;
        right: 1rem;
    }

    .modal-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }

    .chart-container {
        padding: 1rem;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .model-detail-grid,
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .model-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .stat {
        flex-direction: row;
        justify-content: space-between;
    }

    .modal-actions,
    .comparison-actions {
        flex-direction: column;
    }
}