/* admin-style.css - used on admin preview and frontend charts */

/* Chart container */
.vosap-chart-container {
    width: 100%;
    max-width: 500px;
    margin: 40px auto;
    text-align: center;
    position: relative;
    aspect-ratio: 1 / 1;
}

.vosap-chart-container canvas {
    width: 100% !important;
    height: auto !important;
    display: block;
}

.vosap-chart-container h2 {
    color: #7e3206ff;
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 15px;
}

.donut-center-text {
    position: absolute;
    top: 43%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    color: #000;
    width: 90%;
    height: auto;
    line-height: 1.3;
}

.donut-center-text .main-number {
    font-size: clamp(18px, 2.5vw, 30px);
    font-weight: 800;
    margin: 0;
}

.donut-center-text .sub-text {
    font-size: clamp(12px, 1.5vw, 18px);
    font-weight: 700;
    margin: 0;
    color: #000;
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .vosap-chart-container {
        max-width: 90%;
        aspect-ratio: 1 / 1;
        margin: 20px auto;
    }

    .vosap-chart-container h2 {
        font-size: 18px;
    }

    .donut-center-text {
        position: absolute;
        top: 43%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .donut-center-text .main-number {
        font-size: clamp(14px, 4vw, 22px);
    }
    .donut-center-text .sub-text {
        font-size: clamp(10px, 3vw, 16px);
    }
}

@media (max-width: 535px) {
    .donut-center-text {
        top: 40.5%;
        transform: translate(-50%, -40.5%);
    }
}
@media (max-width: 485px) {
    .donut-center-text {
        top: 36.5%;
        transform: translate(-50%, -35.5%);
    }
}
@media (max-width: 414px) {
    .donut-center-text {
        top: 34.5%;
        transform: translate(-50%, -35.5%);
    }
}

@media (max-width: 412px) {
    .donut-center-text {
        top: 29.5%;
        transform: translate(-50%, -29.5%);
    }
}

@media (max-width: 375px) {
    .donut-center-text {
        top: 27%;
        transform: translate(-50%, -27%);
    }
}

@media (max-width: 358px) {
    .donut-center-text {
        top: 21%;
        transform: translate(-50%, -21%);
    }
}
