.heatmap-container {
    overflow-x: auto;
    margin: 20px;
}
.heatmap-table {
    border-collapse: collapse;
    font-size: 12px;
}
.heatmap-table th,
.heatmap-table td {
    padding: 4px 6px;
    text-align: center;
    border: 1px solid #ddd;
    min-width: 35px;
}
.heatmap-table td a {
    color: inherit;
    text-decoration: none;
}
.heatmap-table td a:hover {
    text-decoration: underline;
}
.heatmap-table .row-header {
    text-align: right;
    font-weight: bold;
    background-color: #f8f9fa;
    white-space: nowrap;
    position: sticky;
    left: 0;
    z-index: 1;
}
.heatmap-table .col-header {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-weight: bold;
    background-color: #f8f9fa;
    white-space: nowrap;
    min-height: 120px;
    vertical-align: bottom;
    padding: 8px 4px;
}
.heatmap-table .corner {
    background-color: #f8f9fa;
    position: sticky;
    left: 0;
    z-index: 2;
}
.mode-toggle {
    margin: 20px;
}
.mode-toggle a {
    padding: 8px 16px;
    margin-right: 5px;
    border-radius: 4px;
    text-decoration: none;
}
.mode-toggle a.active {
    background-color: #3498db;
    color: white;
}
.mode-toggle a:not(.active) {
    background-color: #ecf0f1;
    color: #333;
}
.heatmap-title {
    margin: 20px;
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
}
.heatmap-title span {
    font-size: 14px;
    color: #7f8c8d;
}
.heatmap-legend {
    margin: 10px 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}
.legend-bar {
    width: 200px;
    height: 16px;
    background: linear-gradient(to right, rgba(52,152,219,0.05), rgba(52,152,219,1));
    border: 1px solid #ccc;
}
