/* style.css */
/* Estilos para o Dashboard FadigaZero */

/* Importa uma fonte limpa do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 20px;
    width: 100%;
}

#dashboard-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

header h1 {
    margin: 0;
    color: #0056b3;
    font-weight: 700;
}

#export-pdf-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#export-pdf-btn:hover {
    background-color: #0056b3;
}

.kpi-container {
    width: 99%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.kpi-card h3 {
    margin-top: 0;
    font-size: 18px;
    color: #6c757d;
    font-weight: 500;
}

.kpi-card p {
    margin-bottom: 0;
    font-size: 36px;
    font-weight: 700;
    color: #0056b3;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 99%;
}

.chart-container {
    /* width: 100%; */
    height: 400px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    background-color: #fff;
}

/* Estilos para tornar o layout responsivo em telas menores */
@media (max-width: 1200px) {
    .charts-grid {
        grid-template-columns: 1fr; /* Uma coluna para os gráficos */
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    #dashboard-container {
        padding: 15px;
    }
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
