.pi-health-widget {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.circle-container {
    width: 100%;
    max-width: 1280px;
    height: 100%;
    cursor: pointer;
    position: relative;
}

.bg-image {
    position: absolute;
    top: 13%;
    left: 12%;
    width: 75%;
    height: 75%;
    z-index: 0;
}

/* Style for the SVG when loaded */
.pi-health-widget svg {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

/* Tooltip styles */
.tooltip {
    position: absolute;
    background: white;
    padding: clamp(15px, 2vw, 25px);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    width: clamp(320px, 35%, 380px);
    pointer-events: none;
    font-family: 'Manrope', sans-serif;
}

/* Tooltip positions relative to circle size */
.tooltip-1 {    
    top: 50%;
    left: 0;
    transform: translate(-100%, -50%);
}

.tooltip-1 h3 {
    color: #187870;
}

.tooltip-2 {
    top: 50%;
    right: 0;
    transform: translate(100%, -50%);
}

.tooltip-2 h3 {
    color: #58c0c8;
}

.tooltip-3 {
    bottom: 0;
    right: 0;
    transform: translate(100%, 50%);
}

.tooltip-3 h3 {
    color: #6552a3;
}

.tooltip.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tooltip h3 {
    margin: 0 0 clamp(15px, 2vw, 20px) 0;
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 700;
    line-height: 1.3;
}

.tooltip p {
    margin: 0;
    color: #4b5563;
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.6;
}

/* Tablet styles */
@media (max-width: 1024px) {
    .tooltip {
        width: clamp(280px, 30%, 340px);
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .tooltip {
        width: clamp(280px, 85%, 320px);
        padding: clamp(15px, 4vw, 20px);
        left: 50%;
        transform: translateX(-50%);
        pointer-events: auto;
    }

    .tooltip-1 {
        top: 20%;
        left: 50%;
        transform: translateX(-50%);
    }

    .tooltip-2 {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .tooltip-3 {
        bottom: 20%;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    .tooltip {
        width: 90%;
    }

    .tooltip h3 {
        font-size: clamp(18px, 4vw, 22px);
    }

    .tooltip p {
        font-size: clamp(14px, 3.5vw, 16px);
    }
}

/* Hover effects for SVG elements */
.pi-health-widget .bottom:hover,
.pi-health-widget .right:hover,
.pi-health-widget .left:hover {
    cursor: pointer;
}

/* Remove hover effect from tooltip */
.tooltip:hover {
    opacity: 1 !important;
    visibility: visible !important;
}