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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: aliceblue;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0px;
}

h2 {
    text-align: center;
    margin-bottom: 0px;
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
}

.tab-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.tab-button {
    padding: 6px 20px;
    border: none;
    background-color: #e9ecef;
    color: #495057;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.tab-button:hover {
    background-color: #dee2e6;
}

.tab-button.active {
    background-color: #4a90d9;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.chart-container {
    background: aliceblue;
    border-radius: 8px;
    padding: 0px;
    max-width: 500px;
    margin: 0 auto;
}

.data-table {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.data-table th,
.data-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.data-table td {
    font-size: 14px;
}

.data-table td:last-child {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.data-table th:last-child {
    text-align: right;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.total-row {
    background-color: #f8f9fa;
}

.total-row td {
    border-top: 2px solid #dee2e6;
}

.color-indicator {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    margin-right: 10px;
    vertical-align: middle;
}

.source {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #6c757d;
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    h2 {
        font-size: 1.2rem;
    }

    .tab-button {
        padding: 8px 16px;
        font-size: 13px;
    }

    .chart-container {
        padding: 15px;
    }

    .data-table th,
    .data-table td {
        padding: 12px 15px;
    }
}
