.soc-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
   
}

.battery-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    
}

.header-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
}

.showcase-header {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffffff;
}

.soc {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 400;
    color: #ffffff;
}

.soc-widget {
    flex-grow: 1;
    width: 80%;
}

.battery-outer {
    height: 100px;
    flex-grow: 0.8;   /* how much it expands relative to siblings */
    flex-shrink: 1;   /* allow shrinking if space is tight */
    flex-basis: 0;    /* start size baseline */
    max-width: 250px; /* cap it at 500px wide */
    border-radius: 28px;
    border: 5px solid #4e4e4e;
    display: flex;
    align-items: center;
    padding: 3px;
    overflow: hidden;
    position: relative;
}

.battery-inner {
    width: 0%;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(to right, #5e9d64, #3ead49);
    opacity: 0;
    transition: width 0.5s ease-in-out, opacity 0.3s ease-in-out;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.soc-label {
    position: absolute;
    top: 2px;
    left: 11px;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    opacity: 0.9;
}

.soc-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.6);
}

.battery-head {
    width: 10px;
    height: 30px;
    border-top-right-radius: 30%;
    border-bottom-right-radius: 30%;
    background-color: #4e4e4e;
    margin-left: 8px;
}

/* @media (min-width: 1232px) and (max-width:1552px) {
    .soc-widget .battery-outer{
        width: 220px;
        height: 90px;
        border-radius: 24px;
        --border: 4px;
    }
}


@media (min-width: 768px) and (max-width: 1232px) {
    .soc-widget .battery-outer{
        width: 160px;
        height: 80px;
        border-radius: 24px;
        --border: 4px;
    }

    .soc-widget .soc-value {
        font-size: 1.9rem;
    }

    .soc-widget .soc-label {
        font-size: 0.8rem;
    }
} */

@media (max-width: 768px) {
    .battery-outer {
        height: 80px;
        flex-grow: .6;
    }
}