/* Container principal - ocupa 100% da altura disponível */
.gauge-main {
    width: 100%;
    height: 100%;
    background: #F8FFF5;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 3px;
    border: 1px solid #afafaf;
    box-sizing: border-box;
    position: relative;
    min-height: 185px;
}

.value-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
    z-index: 10;
}

.gauge-value {
    margin: 0;
    color: #4b4b4b;
    font-size: clamp(1rem, 4vw, 2rem);
}

.gauge-container {
    position: relative;
    width: 85%;
    height: 65%;
    min-height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gauge-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: -22%;
}

.gauge-blocks {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.gauge-block {
    position: absolute;
    width: clamp(8px, 3vw, 16px);
    height: clamp(12px, 4vw, 20px);
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    clip-path: polygon(0 0, 100% 0, 89% 100%, 11% 100%);
    bottom: 50%;
    left: 50%;
    transform-origin: center bottom;
    margin-left: calc(clamp(8px, 3vw, 16px) / -2);
}

.gauge-pointer {
    position: absolute;
    bottom: 41%;
    left: 50%;
    transform-origin: center bottom;
    z-index: 5;
}

.pointer-cone {
    width: clamp(12px, 3vw, 20px);
    height: clamp(45px, 10vw, 60px);
    background-color: #57b120;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    margin-left: calc(clamp(12px, 3vw, 20px) / -2);
    margin-bottom: -8px;
}

.pointer-circle {
    width: clamp(12px, 3vw, 20px);
    height: clamp(12px, 3vw, 20px);
    background-color: #57b120;
    border-radius: 50%;
    z-index: 6;
    margin-left: calc(clamp(12px, 3vw, 20px) / -2);
    margin-top: -2px;
}

.gauge-label {
    text-align: center;
    margin: 5px 0 0 0;
    font-weight: 400;
    color: #4b4b4b;
    font-size: clamp(0.8rem, 3vw, 1.3rem);
    z-index: 10;
    padding: 0 5px;
}

/* Media queries para ajustes específicos */
@media (max-width: 300px) {
    .gauge-container {
        width: 90%;
        height: 55%;
    }
}

@media (min-width: 500px) {
    .gauge-container {
        width: 80%;
        max-height: 120px;
    }
}

@media (max-height: 150px) {
    .gauge-main {
        min-height: 100px;
    }
    
    .gauge-container {
        height: 50%;
        min-height: 40px;
    }
}