.root {
    position: relative;
    width: 100%;
    max-width: 1080px;
    display: flex;
    align-items: center;
    justify-content: center;

    &::before {
        content: '';
        position: absolute;
        width: 100%;
        max-width: 960px;
        height: 100%;
        max-height: 473px;
        border-radius: var(--border-radius-full);
        opacity: 0.5;
        background: radial-gradient(
            50% 50% at 50% 50%,
            var(--color-bg-fill-primary) 0%,
            var(--color-bg-fill-brand-indigo) 100%
        );
        filter: blur(200px);
    }
}

.container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 30px 60px 60px;
    border: var(--border-width-sm) solid var(--border-color-alpha-white-10);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border-radius: var(--border-radius-xxl);
    background: linear-gradient(180deg, rgba(129, 177, 226, 0.00) 50%, rgba(129, 177, 226, 0.10) 100%), linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.02) 100%), var(--color-bg-base-dark);
    box-shadow: 0 0 180px 0 rgba(129, 177, 226, 0.15) inset;
    backdrop-filter: blur(25px);
}

.swiper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.content {
    padding: 30px 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 60px;
    width: 100%;
    max-width: 960px;
}

.metricsContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.metric {
    display: flex;
    min-width: 160px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.metricTitle {
    padding: 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.canvas {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(15, 1fr);
    justify-content: space-between;
    row-gap: 28px;
    column-gap: 8px;
}

.circle {
    width: 12px;
    min-width: 12px;
    height: 12px;
    min-height: 12px;
    border-radius: var(--border-radius-full);
    align-self: center;

    &[data-value='optimal'] {
        background-color: var(--color-bg-fill-alpha-white-10);
    }

    &[data-value='inRange'] {
        background-color: var(--color-bg-fill-brand-indigo);
        filter: drop-shadow(0px 0px 32px var(--color-bg-fill-brand-indigo));
    }

    &[data-value='outOfRange'] {
        background-color: var(--color-bg-danger);
        filter: drop-shadow(0px 0px 32px var(--color-bg-danger));
    }
}

.tabsContainer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 16px;
}

.tab {
    padding: 12px 0;
    min-width: 80px;
    width: 100%;
    text-align: left;
    color: var(--color-text-primary-inverted);
    background: none;
    border: none;
    border-top: var(--border-width-sm) solid var(--border-color-invert);
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s ease, color 0.3s ease, border-top-color 0.3s ease;
}

.tabActive {
    color: var(--color-text-primary-brand-solar);
    border-top-color: var(--border-color-solar);
    opacity: 1;
}

@media screen and (width <= 768px) {
    .container {
        padding: 0 16px 16px;
        gap: var(--spacing-8);
        border-radius: var(--border-radius-lg);
    }

    .content {
        gap: 8px;
        padding: 28px 12px 12px;
    }

    .metric {
        gap: 8px;
        min-width: 136px;
    }

    .canvas {
        grid-template-columns: repeat(8, 1fr);
        gap: 10px;
    }

    .circle {
        width: 6px;
        min-width: 6px;
        height: 6px;
        min-height: 6px;
    }

    .tabsContainer {
        overflow-x: auto;
        white-space: nowrap;
        gap: 8px;
    }

    .tab {
        min-width: 0;
    }
}
