:root {
    --primary-color: #2F6BFF;    /* Blue from logo (RGB: 47, 107, 255) */
    --secondary-color: #0D1282;  /* Blue from poster */
    --accent-color: #F5F7F8;     /* Background from poster */
    --text-color: #333333;       /* Dark text */
    --light-bg: #F5F7F8;         /* Light Background */
    --white: #ffffff;
    --border-color: #E0E0E0;     /* Light Border */
    --code-bg: #F5F9FF;          /* Code Background */
    --hover-color: #1A4FD9;      /* Darker Blue */
    --card-bg: #FDFEFE;          /* Card Background */
    --success-color: #27AE60;    /* Green */
    --warning-color: #F39C12;    /* Orange */
    --error-color: #E74C3C;      /* Red */
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    width: 100%;
    z-index: 1000;
    border-radius: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    border-radius: 12px;
}

.uit-logo {
    height: 65px;
}

.nlp-logo {
    height: 60px;
}

.project-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-left: 2rem;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
}

.project-title .vi {
    color: var(--primary-color);  /* Red */
    font-weight: 800;
}

.project-title .fact {
    color: var(--secondary-color);  /* Blue */
    font-weight: 800;
}

.project-title .check {
    color: var(--primary-color);  /* Red */
    font-weight: 800;
}

.project-title span {
    color: var(--accent-color);
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: var(--light-bg);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 8rem 5% 5rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    background-color: var(--highlight-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Features Section */
.features {
    padding: 5rem 5%;
    background-color: var(--light-bg);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

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

/* How It Works Section */
.how-it-works {
    padding: 5rem 5%;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
}

/* About Section */
.about {
    padding: 5rem 5%;
    background-color: var(--light-bg);
    text-align: center;
}

.about h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Contact Section */
.contact {
    padding: 5rem 5%;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: var(--highlight-color);
}

/* Footer */
footer {
    background: var(--primary-color);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    color: var(--white);
    border-radius: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .logo-container {
        gap: 1rem;
    }
    
    .logo {
        height: 50px;
    }
    
    .uit-logo {
        height: 45px;
    }
    
    .nlp-logo {
        height: 40px;
    }
    
    .project-title {
        font-size: 1.4rem;
        margin-left: 1rem;
        margin-top: 0.5rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .feature-grid,
    .steps {
        grid-template-columns: 1fr;
    }
}

/* Paper Header Styles */
.paper-header {
    background: var(--primary-color);
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    border-radius: 0;
}

.paper-title {
    color: var(--white);
    text-shadow: none;
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 600;
}

.authors {
    font-size: 1.4rem;
    color: var(--light-bg);
    margin-bottom: 1rem;
    font-weight: 500;
}

.affiliations {
    font-size: 1.1rem;
    color: var(--light-bg);
    margin-bottom: 1rem;
}

.contact-info {
    font-size: 1.1rem;
    color: var(--light-bg);
    margin-bottom: 2rem;
}

.contact-info a {
    color: var(--light-bg);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin: 0.5rem;
}

.contact-info a:hover {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.contact-info i {
    font-size: 1.2rem;
}

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

.paper-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.paper-links a:hover {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.paper-links i {
    font-size: 1.2rem;
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

section {
    margin-bottom: 4rem;
}

h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    font-weight: 600;
}

/* Abstract Section */
.abstract {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 0;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.abstract p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #24292e;
}

/* Dataset Section */
.dataset-content {
    display: grid;
    gap: 2rem;
}

.dataset-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(215, 19, 19, 0.15);
}

.stat-card h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.dataset-details {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

/* Methods Section */
.method-content {
    display: grid;
    gap: 2rem;
}

.method-description {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

/* Results Section */
.results-content {
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.chart-container {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 400px;
}

.chart-container h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.2rem;
    text-align: center;
}

.chart-container canvas {
    width: 100% !important;
    height: calc(100% - 2rem) !important;
}

.method-diagram {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    margin-top: 2rem;
}

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

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

#sortBy {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

#sortBy:hover {
    border-color: #D71313;
}

.refresh-btn {
    padding: 0.5rem 1rem;
    background-color: #D71313;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.refresh-btn:hover {
    background-color: #b30f0f;
}

.refresh-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.refresh-btn.rotating i {
    animation: rotate 0.5s ease-out;
}

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

#leaderboardTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
    font-size: 1rem;
    background: #fff;
    table-layout: fixed;
}

#leaderboardTable th, #leaderboardTable td {
    padding: 0.75rem 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#leaderboardTable th {
    background: #f8f9fa;
    font-weight: 700;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    font-size: 1.05rem;
}

#leaderboardTable th:nth-child(1), #leaderboardTable td:nth-child(1) {
    width: 48px;
    min-width: 40px;
    max-width: 56px;
    text-align: center;
}

#leaderboardTable th:nth-child(2), #leaderboardTable td:nth-child(2) {
    width: 18%;
    text-align: left;
}

#leaderboardTable th:nth-child(3), #leaderboardTable td:nth-child(3) {
    width: 18%;
    text-align: left;
}

#leaderboardTable th:nth-child(4),
#leaderboardTable th:nth-child(5),
#leaderboardTable th:nth-child(6),
#leaderboardTable th:nth-child(7),
#leaderboardTable td:nth-child(4),
#leaderboardTable td:nth-child(5),
#leaderboardTable td:nth-child(6),
#leaderboardTable td:nth-child(7) {
    text-align: right;
    font-family: 'Courier New', monospace;
}

#leaderboardTable th:nth-child(4), #leaderboardTable td:nth-child(4),
#leaderboardTable th:nth-child(5), #leaderboardTable td:nth-child(5),
#leaderboardTable th:nth-child(6), #leaderboardTable td:nth-child(6) {
    width: 9%;
}

#leaderboardTable th:nth-child(7), #leaderboardTable td:nth-child(7) {
    width: 13%;
}

#leaderboardTable tbody tr:nth-child(even) {
    background: #fcfcfc;
}

#leaderboardTable tbody tr:hover {
    background: #f3f6fa;
}

@media (max-width: 900px) {
    #leaderboardTable th, #leaderboardTable td {
        font-size: 0.92rem;
        padding: 0.5rem 0.3rem;
    }
    #leaderboardTable th:nth-child(2), #leaderboardTable td:nth-child(2),
    #leaderboardTable th:nth-child(3), #leaderboardTable td:nth-child(3) {
        width: 22%;
    }
    #leaderboardTable th:nth-child(4), #leaderboardTable td:nth-child(4),
    #leaderboardTable th:nth-child(5), #leaderboardTable td:nth-child(5),
    #leaderboardTable th:nth-child(6), #leaderboardTable td:nth-child(6) {
        width: 10%;
    }
    #leaderboardTable th:nth-child(7), #leaderboardTable td:nth-child(7) {
        width: 14%;
    }
}

@media (max-width: 600px) {
    #leaderboardTable th, #leaderboardTable td {
        font-size: 0.85rem;
        padding: 0.4rem 0.2rem;
    }
    #leaderboardTable th:nth-child(2), #leaderboardTable td:nth-child(2),
    #leaderboardTable th:nth-child(3), #leaderboardTable td:nth-child(3) {
        width: 30%;
    }
    #leaderboardTable th:nth-child(4), #leaderboardTable td:nth-child(4),
    #leaderboardTable th:nth-child(5), #leaderboardTable td:nth-child(5),
    #leaderboardTable th:nth-child(6), #leaderboardTable td:nth-child(6) {
        width: 12%;
    }
    #leaderboardTable th:nth-child(7), #leaderboardTable td:nth-child(7) {
        width: 18%;
    }
}

.error-message {
    text-align: center;
    color: #dc3545;
    padding: 2rem;
    font-style: italic;
}

/* Responsive styles */
@media (max-width: 768px) {
    .results-content {
        padding: 1rem;
    }

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

    #sortBy, .refresh-btn {
        width: 100%;
    }

    #leaderboardTable {
        font-size: 0.85rem;
    }

    #leaderboardTable th,
    #leaderboardTable td {
        padding: 0.75rem 0.5rem;
    }
}

/* Citation Section */
.citation-content {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

pre {
    background-color: var(--code-bg);
    padding: 1.5rem;
    border-radius: 6px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Model List Styles */
.model-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.model-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background-color: var(--white);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    justify-content: center;
}

.model-list li:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(47, 107, 255, 0.1);
}

.model-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    background-color: var(--light-bg);
    padding: 0.4rem;
}

.model-list span {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    text-align: center;
    letter-spacing: 0.3px;
}

.model-list sub {
    font-size: 0.65em;
    vertical-align: sub;
    margin-left: 0.2rem;
    opacity: 0.8;
}

.model-category h4 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    text-align: center;
    font-weight: 600;
}

@media (max-width: 768px) {
    .model-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .model-list li {
        padding: 0.8rem 1rem;
    }
    
    .model-logo {
        width: 28px;
        height: 28px;
    }
    
    .model-list span {
        font-size: 0.95rem;
    }
    
    .model-category h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
}

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

/* External Links */
.external-link {
    color: var(--primary-color);
}

.external-link:hover {
    color: var(--highlight-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .paper-title {
        font-size: 1.8rem;
    }
    
    .authors {
        font-size: 1.1rem;
    }
    
    .paper-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    main {
        padding: 1rem;
    }
    
    .dataset-stats {
        grid-template-columns: 1fr;
    }
    
    .paper-header {
        padding: 2rem 1rem;
    }
    
    .results-charts {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        margin-bottom: 1rem;
    }
    
    .results-table {
        overflow-x: auto;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 0.75rem;
    }
}

.stat-detail {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.model-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    padding: 1rem;
}

.model-category {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.model-category:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(47, 107, 255, 0.15);
}

.model-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.model-category:hover::before {
    opacity: 1;
}

.model-category h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.8rem;
}

.model-category h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.model-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.model-category li {
    padding: 1rem;
    margin-bottom: 0.8rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.model-category li:hover {
    background-color: var(--code-bg);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.model-category strong {
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.model-note {
    font-size: 0.95rem;
    color: #666;
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

@media (max-width: 768px) {
    .model-categories {
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }
    
    .model-category {
        padding: 1.5rem;
    }
    
    .model-category h4 {
        font-size: 1.2rem;
    }
}

.method-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.method-step {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    position: relative;
}

.method-step:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(215, 19, 19, 0.15);
}

.method-step h4 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.method-step p {
    font-size: 0.95rem;
    color: #666;
}

@media (max-width: 768px) {
    .model-categories {
        grid-template-columns: 1fr;
    }
    
    .method-steps {
        grid-template-columns: 1fr;
    }
    
    .method-step {
        margin-bottom: 1rem;
    }
}

.retrieval-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.retrieval-button {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: white;
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retrieval-button:hover {
    background-color: var(--light-bg);
    border-color: var(--primary-color);
}

.retrieval-button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Analysis Section */
.analysis {
    margin-top: 4rem;
}

.analysis-content {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.analysis-charts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-container {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 400px;
    margin-bottom: 2rem;
}

.chart-container.full-width {
    grid-column: 1 / -1;
    height: 400px;
    clear: both;
}

@media (max-width: 768px) {
    .analysis-charts {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        margin-bottom: 1rem;
    }
}

.pdf-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 0 auto;
    display: block;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.image-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0.5rem auto 2rem;
    max-width: 800px;
    text-align: center;
    padding: 0 1rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .pdf-image {
        max-width: 100%;
    }
    
    .image-description {
        font-size: 0.9rem;
        padding: 0 0.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Leaderboard Styles */
.upload-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.upload-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #333;
}

.form-group input[type="text"] {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: #D71313;
    box-shadow: 0 0 0 2px rgba(215, 19, 19, 0.1);
}

.upload-btn {
    background-color: #D71313;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.upload-btn:hover {
    background-color: #b30f0f;
}

.upload-note {
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
}

.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#sortBy {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.refresh-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s;
}

.refresh-btn:hover {
    background-color: #218838;
}

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

#leaderboardTable th,
#leaderboardTable td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#leaderboardTable th {
    background-color: #f8f9fa;
    font-weight: 600;
}

#leaderboardTable tr:hover {
    background-color: #f5f5f5;
}

/* File input styling */
input[type="file"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 300px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .upload-container {
        flex-direction: column;
        align-items: stretch;
    }

    input[type="file"] {
        width: 100%;
    }

    .table-controls {
        flex-direction: column;
        gap: 10px;
    }

    #leaderboardTable {
        display: block;
        overflow-x: auto;
    }
}

/* Additional Leaderboard Styles */
.loading-message {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.loading-spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #D71313;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-message {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
}

.positive-delta {
    color: #28a745;
}

.negative-delta {
    color: #dc3545;
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.rotating {
    animation: rotate 0.5s ease-out;
}

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

#sortBy:disabled,
.refresh-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Hover effects for table rows */
#leaderboardTable tbody tr {
    transition: background-color 0.2s ease;
}

#leaderboardTable tbody tr:hover {
    background-color: #f8f9fa;
    box-shadow: none;
    transform: none;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .loading-spinner {
        width: 1.2rem;
        height: 1.2rem;
        border-width: 2px;
    }

    .loading-message,
    .empty-message,
    .error-message {
        padding: 1.5rem;
        font-size: 0.95rem;
        background-color: #f8f9fa;
        border-radius: 4px;
        margin: 1rem 0;
    }
}