
body{
    align-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #f5e7da;
    font-family: Arial, sans-serif;
    padding: 20px;
    height: 100vh;
}

.balance_container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
    max-width: 400px; /* Better for mobile and desktop */
    margin-left: auto;
    margin-right: auto;
    background-color: #ea745c;
    color: white;
    padding: 20px;
    border-radius: 15px;
}

#balance{
    font-size: 24px;
    font-weight: bold;
    margin: 0;

}

#balancelabel{
    font-size: 15px;
    margin: 0 0 10px 0;

}

.chart_container{
    flex-direction: column;
    display: flex;
    width: 100%;
    max-width: 400px; /* Same as balance container for consistency */
    margin-left: auto;
    margin-right: auto;
    background-color: #fdfaf5;
    color: #000000;
    padding: 20px;
    border-radius: 15px;
}

.chart{
    width: 100%;
    height: 15vh;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-bottom: 10px;
    gap: 16px; /* Espaçamento entre os labels */
    align-items: flex-end;
}

.chart_labels{
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    gap: 16px; /* Espaçamento entre os labels */

}

.bar{
    width: 100%;
    height: 70%;
    background-color: #ea745c;
    border-radius: 5px;
    flex: 1;
    font-size: 12px;
    margin: 0 5px; /* Espaço lateral opcional */
    transition: height 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar.animated{

}

.bar:hover{
    background-color: #fd9a86;
}

.label {
    flex: 1;
    font-size: 12px;
    color: #92857a;
    margin: 0 13px; /* Espaço lateral opcional */
}

.summary{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 8px 0;
    margin-top: 60px;
}

.summary_title{
    p{margin: 0 0 10px 0;}
    font-size: 16px;
    color: #92857a;
}



#total{
    font-size: 43px;
    color: black;
    font-weight: bold;
}

.summary_percentage{
    margin-top: 40px;
    text-align: right;
    p{margin: 0 0 3px 0;
        font-size: 16px;
        color: #92857a;
    }
}

#improvement{
    color: black;
    font-weight: bold;
}


/* Responsive adjustments */
@media (max-width: 480px) {
    .balance_container,
    .chart_container {
        width: 95%;
        max-width: none;
        padding: 15px;
    }
}

@media (min-width: 768px) {
    .balance_container,
    .chart_container {
        max-width: 450px;
    }
}