.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    position: relative;
    background: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.stat-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--label-color);
    font-size: 0.9rem;
}

.stat-card.clickable {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.stat-card.clickable:hover {
    transform: translateY(-2px);
}

.stat-card.dimmed {
    opacity: 0.5;
    transition: opacity 0.3s ease;
    filter: grayscale(0.6);
}

.stat-card.dimmed h3,
.stat-card.dimmed .stat-value,
.stat-card.dimmed .stat-label {
    transition: opacity 0.3s ease;
}

.chart-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease;
    overflow: hidden;
}

.chart-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.chart-container {
    position: relative;
    height: 300px;
}

.copy-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: light-dark(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9));
    color: light-dark(#666, #333);
    border: none;
    border-radius: 5px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.copy-button:hover {
    opacity: 1;
    background: light-dark(rgba(255, 255, 255, 1), rgba(0, 0, 0, 0.8));
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.copy-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.chart-legend-hint {
    text-align: center;
    color: var(--label-color);
    font-size: 0.85rem;
    margin-top: 10px;
    margin-bottom: 5px;
    opacity: 0.8;
    font-style: italic;
}
