body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    padding-bottom: 20px;
    background-color: #000000; /* Pure black background */
}

.container {
    max-width: 1200px;
}

header {
    background-color: transparent;
    color: #e0e0e0;
    padding: 30px 0;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 1px solid #2a2a2a;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #f0f0f0; /* Off-white */
    font-weight: 600;
}

header .subtitle {
    color: #f78166; /* Orange accent */
    margin-top: 10px;
}

.author-info {
    font-size: 0.9rem;
    margin: 20px auto;
    width: 60%;
    color: #8b949e; /* Muted text */
    text-align: center;
}

.intro-text {
    width: 80%;
    margin: 20px auto;
    color: #c9d1d9;
}

.intro-text h3 {
    color: #f0f0f0;
    margin-bottom: 20px;
}

.description {
    font-size: 0.95rem;
}

/* DataTables dark theme styling */
table.dataTable {
    border-collapse: collapse !important;
    background-color: #000000;
    color: #c9d1d9;
}

table.dataTable thead th {
    position: relative;
    background-image: none !important;
    background-color: #0f0f0f;
    color: #f0f0f0;
    border-bottom: 2px solid #2a2a2a;
    font-weight: 600;
}

table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:after {
    position: absolute;
    top: 12px;
    right: 8px;
    display: block;
    color: #8b949e;
}

table.dataTable thead th.sorting:after {
    content: "\2195";
    opacity: 0.5;
}

table.dataTable thead th.sorting_asc:after {
    content: "\2191";
}

table.dataTable thead th.sorting_desc:after {
    content: "\2193";
}

.dataTables_wrapper {
    color: #c9d1d9;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.25em 0.75em;
    border: 1px solid #2a2a2a;
    margin: 0 2px;
    border-radius: 6px;
    background: #0a0a0a;
    color: #c9d1d9 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #404040 !important;
    color: #f0f0f0 !important;
    border-color: #f0f0f0;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #1a1a1a !important;
    color: #f0f0f0 !important;
    border-color: #2a2a2a;
}

.dataTables_wrapper .dataTables_length, 
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 15px;
    color: #c9d1d9;
}

.dataTables_wrapper .dataTables_filter input {
    background-color: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 5px;
    color: #c9d1d9;
}

.dataTables_wrapper .dataTables_length select {
    background-color: #0a0a0a;
    border: 1px solid #2a2a2a;
    color: #c9d1d9;
    border-radius: 6px;
}

/* Table row colors */
table.dataTable tbody tr {
    background-color: #000000;
    border-bottom: 1px solid #1a1a1a;
}

table.dataTable tbody tr:nth-child(even) {
    background-color: #0a0a0a;
}

table.dataTable tbody tr:hover {
    background-color: #1a1a1a;
}

table.dataTable tbody td {
    border-color: #21262d;
}

/* Links styling */
a {
    color: #f0f0f0;
    text-decoration: none;
}

a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* References styling */
.references {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #D49983; /* Salmon */
}

.references a {
    color: #9B60AA; /* Purple */
}

/* Add this to your existing CSS file */
.timeline-container {
    width: 100%;
    height: 500px;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    background-color: #f9f9f9;
}

.vis-item {
    border-color: #2196F3;
    background-color: #2196F3;
    color: white;
    font-size: 12px;
    border-radius: 5px;
    padding: 5px;
}

.vis-item .vis-item-content {
    padding: 5px;
}

.vis-item.vis-selected {
    background-color: #FFC107;
    border-color: #FF9800;
}

.vis-time-axis .vis-text {
    color: #333;
    padding: 5px;
}

.timeline-tooltip {
    max-width: 300px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Filter section dark theme */
.filter-section {
    background-color: #0a0a0a;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #2a2a2a;
}

.filter-section h4 {
    color: #f0f0f0;
    margin-bottom: 15px;
}

.category-filter {
    cursor: pointer;
    transition: all 0.2s;
    background-color: #1a1a1a !important;
    border-color: #2a2a2a !important;
    color: #c9d1d9 !important;
}

.category-filter:hover {
    background-color: #2a2a2a !important;
    border-color: #f0f0f0 !important;
    color: #f0f0f0 !important;
}

.category-filter.active {
    background-color: #404040 !important;
    border-color: #f0f0f0 !important;
    color: #f0f0f0 !important;
}

#clearFilters {
    background-color: #1a1a1a;
    border-color: #2a2a2a;
    color: #c9d1d9;
}

#clearFilters:hover {
    background-color: #2a2a2a;
    border-color: #f85149;
    color: #f85149;
}

.category-badge {
    display: inline-block;
    margin: 2px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    background-color: #e9ecef;
    color: #495057;
}

/* Timeline category colors */
.vis-item.category-self {
    background-color: #FF5722;
    border-color: #E64A19;
}

.vis-item.category-hardware {
    background-color: #4CAF50;
    border-color: #388E3C;
}

.vis-item.category-architecture {
    background-color: #2196F3;
    border-color: #1976D2;
}

.vis-item.category-data {
    background-color: #9C27B0;
    border-color: #7B1FA2;
}

.vis-item.category-productivity {
    background-color: #FFC107;
    border-color: #FFA000;
    color: #333;
}

.vis-item.category-model {
    background-color: #3F51B5;
    border-color: #303F9F;
}

.vis-item.category-evaluation {
    background-color: #009688;
    border-color: #00796B;
}

.vis-item.category-compiler {
    background-color: #795548;
    border-color: #5D4037;
}

.vis-item.category-prompt {
    background-color: #673AB7;
    border-color: #512DA8;
} 

.highlight-row {
    background-color: rgba(255, 255, 0, 0.3) !important;
    transition: background-color 1s;
}

/* Prevent canvas overflow and infinite growth */
.chart-container {
    position: relative !important;
    overflow: hidden !important;
}

.chart-container canvas {
    max-width: 100% !important;
    max-height: 100% !important;
}

/* Ensure charts section doesn't grow infinitely */
.charts-section {
    max-height: none;
    overflow: visible;
    color: #c9d1d9;
}

.charts-section h3, .charts-section h4 {
    color: #f0f0f0;
}

/* Statistics cards dark theme */
.stat-card {
    background-color: #0a0a0a !important;
    border-color: #2a2a2a !important;
    color: #c9d1d9;
}

.stat-card h5 {
    font-weight: 600;
    font-size: 1.8rem;
}

.stat-card p {
    color: #8b949e;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#totalPapers {
    color: #f0f0f0 !important;
}

#yearlyGrowth {
    color: #3fb950 !important;
}

#topCategory {
    color: #79c0ff !important;
}

#recentPapers {
    color: #d29922 !important;
}