body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 20px; /* Reduzido para dispositivos m�veis */
    background: rgba(255, 255, 255, 0.8), url('assets/fundogoleada.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: inherit;
    width: 100%; /* Largura total da tela */
    max-width: 150%; /* Evita que o body exceda a largura da tela */
    overflow-x: hidden; /* Evita rolagem horizontal */
    justify-content: center;
}

h2 {
    font-family: 'DIN', sans-serif;
    font-weight: bold;
    font-size: 15px;
    background-color: #c00000;
    color: white;
    padding: 12px 24px;
    border-radius: 15px;
    text-align: center;
    margin: 0 auto; /* Centraliza todos os t�tulos */
    display: block;
    width: fit-content;
    max-width: 100%;
}

.dashboard h2 {
    margin: 0 auto; /* Mant�m centraliza��o no dashboard */
    width: fit-content;
    max-width: 600px;
}

.tab {
    display: flex;
    justify-content: safe center; /* Alinhamento inicial */
    background-color: none;
    margin-bottom: 40px;
    border-radius: 0px;
    overflow-x: auto; /* Habilita rolagem horizontal */
    padding: 0 1px; /* Espa�o para barra de rolagem */
    align-items: safe center; /* Center all content */
}

.tab button {
    background-color: #fff;
    color: #333;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 15px 30px;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
    border-bottom: 0px solid transparent;
    flex: 0 0 auto; /* Evita crescimento excessivo */
    white-space: nowrap; /* Evita quebra de linha */
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 50px;
}

.tab button:hover {
    background-color: #f8f9fa;
}

.tab button.active {
    color: brown;
    border-bottom: 0px solid #007bff;
}

.dashboard {
    text-align: center;
    margin: 20px auto;
    background: rgb(255, 255, 255, 0,10);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px #ffffff8c;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    
}



.dashboard-container {
    background: rgb(255, 255, 255, 0,10);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); /* Corrigi a cor da sombra */
    max-width: 800px;
    width: 100%; /* Alterado de 90% para 100% */
    margin: 20px auto; /* Adicionei margem vertical */
    position: relative; /* Removi 'center' que � inv�lido */
    transform: translateX(0); /* Garantir alinhamento */
}
.graph-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}
.chart-container {
    position: relative;
    height: 400px;
    width: 50%; /* Ajuste para melhor propor��o */
    margin: 0 auto;
    left: 0; /* Garantir posicionamento */
}

/* Legendas mais destacadas */
.chartjs-legend {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chart-bar-group {
    position: relative;
    width: 50px;
    height: 100%;
    margin: 0 auto;
}

.chart-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: #c00000;
    border-radius: 4px;
    margin: 0 auto;
}

    .chart-bar::after {
        content: attr(data-label); /* Displays the data-label content */
        position: absolute;
        top: 10%;
        left: 50%;
        transform: translate(-50%, -50%); /* Center the label */
        color: white;
        font-size: 12px;
        font-weight: bold;
        background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
        padding: 2px 5px;
        border-radius: 3px;
        white-space: nowrap;
    }

.plan-boundary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #007bff;
}

.target-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: yellow;
}

.series-name {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #333;
    text-align: center;font-family: 'DIN', sans-serif;
    font-weight: bold;
    font-size: 15px;
    background-color: #c00000;
    color: white;
    padding: 12px 24px;
    border-radius: 15px;
    text-align: center;
    margin: 0 auto; /* Centraliza todos os t�tulos */
    display: block;
    width: fit-content;
    max-width: 100%;
}

.table-wrapper {
    display: flex;
    justify-content: center; /* Centraliza a tabela */
    margin: 20px auto; /* Centraliza na tela */
    max-width: 1200px; /* Largura m�xima para telas maiores */
    width: 100%;
}

table {
    background: #ffffff;
    width: 100%;
    max-width: 90%; /* Evita que a tabela exceda o container */
    border-collapse: separate;
    border-spacing: 0;
    border: 0;
    border-bottom:0;
    border-radius: 15px;
    overflow: hidden;
    margin: 0 auto; /* Centraliza a tabela */
}

    table th,
    table td {
        font-family: 'Roboto', sans-serif;
        font-size: 14px;
        padding: 12px;
        text-align: center;
        border-bottom: 1px solid #ddd;
    }

    table th {
        background-color: #c00000;
        color: #fff;
        font-weight: bold;
    }

    table td {
        vertical-align: middle;
    }

    table tr:hover {
        background-color: #f1f1f1;
    }

    table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

tfoot {
    font-weight: bold;
    background-color: #c00000;
    color: white;
}

.upload-container {
    text-align: center;
    margin-top: 20px;
}

.file-upload {
    position: relative;
    display: inline-block;
}

#csvFiles {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 99;
}

.byd-line {
    position: absolute;
    right: 50%;
    width: 50%;
    height: 2px;
    background-color: #007bff;
    z-index: 3;
}

.byd-label {
    position: absolute;
    right: 75%;
    transform: translateX(-50%);
    font-family: 'DIN', sans-serif;
    font-weight: bold;
    color: white;
    z-index: 4;
    font-size: 14px;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    border-radius: 15px;
    text-align: center;
    margin: 50 auto; /* Centraliza todos os t�tulos */
    display: block;
    width: fit-content;
    max-width: 100%;
}

.upload-btn {
    background-color: #c00000;
    color: white;
    border: none;
    padding: 15px 30px;
    margin-top: 20px;
    cursor: pointer;
    border-radius: 15px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

    .upload-btn:hover {
        background-color: #a80000;
    }

@media (max-width: 768px) {
    body {
        padding: 10px; /* Reduce padding for smaller screens */
    }

    h2 {
        font-size: 14px; /* Smaller font size */
        padding: 8px 16px; /* Adjust padding */
        margin: 10px auto; /* Center vertically */
    }

    .tab {
        margin-bottom: 20px; /* Adjust spacing */
    }

    .tab button {
        padding: 10px 20px; /* Smaller button size */
        font-size: 12px; /* Smaller text */
    }

    .dashboard {
        margin: 15px auto; /* Adjust margin */
        padding: 15px; /* Adjust padding */
    }

    .chart-container {
        height: 300px; /* Adjust chart height */
    }

    table {
        font-size: 12px; /* Smaller table text */

    }

        table th,
        table td {
            padding: 8px; /* Adjust cell padding */

        }
}

