.chart-tabs {
    position: relative;
    display: flex;
    gap: 10px;
    margin-bottom: 0;
}

.chart-tabs::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 0;
}

.chart-tabs .tab-link {
    padding: 14px 28px;
    border: none;
    border-radius: 12px 12px 0 0;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    color: #61666d;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.chart-tabs .tab-link:hover {
    color: #fb7299;
    background: rgba(251, 114, 153, 0.05);
}

.chart-tabs .tab-link.active {
    color: #fb7299;
    background: white;
    box-shadow: 0 -4px 8px rgba(251, 114, 153, 0.08);
}

.chart-tabs .tab-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fb7299;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.chart-tabs .tab-link.active::after {
    transform: scaleX(1);
}

.charts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.chart-wrapper {
    position: relative;
    flex: 1 1 100%;
    min-width: 300px;
    height: 500px;
    padding: 25px;
    background: white;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 8px 24px rgba(251, 114, 153, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
    margin-top: -1px;
    border: 1px solid rgba(251, 114, 153, 0.1);
}

.chart-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0 12px 12px 12px;
    background: linear-gradient(to right bottom, rgba(251, 114, 153, 0.03), transparent);
    pointer-events: none;
}

.chart-wrapper.active {
    display: block;
}

.chart-wrapper:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    will-change: box-shadow;
    backface-visibility: hidden;
}

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

@media (max-width: 768px) {
    .chart-wrapper {
        height: 400px;
    }
}

.dark-mode .chart-wrapper {
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
}