body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 20px;
            line-height: 1.6;
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
            color: #333;
    background-color: #f8f9fa;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
}
h1 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 10px;
    text-align: center;
}
aside {
    border: 2px solid red;
    padding: 20px;
}
li {
    margin-bottom: 5px;
}
strong {
    color: #2c3e50;
}
code {
    background-color: #f4f4f4;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Monaco', 'Consolas', monospace;
}
.subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
    text-align: center;
}

/* Tab Styles */
.tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
    overflow-x: auto;
}
.tab {
    background: none;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}
.tab:hover {
    background-color: #f8f9fa;
    color: #333;
}
.tab.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background-color: #f8f9fa;
}

/* Filter Controls */
.filters {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    justify-content: center;
}
.filter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    user-select: none;
}
.filter-checkbox input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
    cursor: pointer;
}
.filter-checkbox:hover {
    color: #007bff;
}

/* Summary Section */
.summary-section {
    margin-bottom: 40px;
}

.summary-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.repo-filters {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.repo-filters label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    color: #495057;
}

#repoCheckboxes {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

#repoCheckboxes .filter-checkbox {
    margin-bottom: 0;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 500px;
    margin-bottom: 30px;
}

/* Statistics */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    cursor: help;
    position: relative;
}
.stat-card:hover {
    background: #e9ecef;
}

/* Custom instant tooltip */
.stat-card[data-tooltip]:hover::after,
.platform-tag[data-tooltip]:hover::after,
#customLegend [data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #333;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    max-width: 300px;
    white-space: normal;
    text-align: left;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.stat-card[data-tooltip]:hover::before,
.platform-tag[data-tooltip]:hover::before,
#customLegend [data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 2px;
    border: 6px solid transparent;
    border-top-color: #333;
    z-index: 1001;
}
.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}
.stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Platform Legend */
.platforms {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.platform-checkbox {
    display: inline-block;
    cursor: pointer;
    user-select: none;
}

.platform-checkbox:hover .platform-tag {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.platform-tag {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: white;
    font-weight: 500;
    transition: opacity 0.3s ease, border 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent;
    position: relative;
}

/* Custom legend items */
#customLegend [data-tooltip] {
    position: relative;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 50px;
    color: #666;
}
.error {
    text-align: center;
    padding: 50px;
    color: #d32f2f;
    background-color: #ffebee;
    border-radius: 4px;
    margin: 20px 0;
}
