/* ====== PALETA DE CORES - PTQA ====== */
:root {
    --azul-ptqa: #2196f3;        /* Cor principal do PTQA, representa tom água/mato */
    --azul-claro-ptqa: #64b5f6;  /* Para gradientes e detalhes */
    --preto: #121212;             /* Fundo escuro principal */
    --cinza-escuro: #1e1e1e;     /* Fundo de cards e gráficos */
    --cinza-medio: #2b2b2b;      /* Cards e filtros */
    --cinza-hover: #383838;       /* Hover de filtros */
    --branco: #fff;               /* Textos claros */
    --particula-icon: url('/img/particula_icon.png'); /* Ícone decorativo */
}

/* ====== RESET GLOBAL ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;      /* Evita que padding/margin quebrem layout */
    scroll-behavior: smooth;     /* Rolagem suave para links internos */
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: var(--preto);
    color: #eee;
    line-height: 1.6;            /* Espaçamento confortável de leitura */
}

/* ====== HEADER BANNER ====== */
.header-banner {
    background: linear-gradient(135deg, var(--azul-ptqa), var(--azul-claro-ptqa));
    position: relative;
    text-align: center;
    color: var(--branco);
    padding: 60px 20px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    margin-bottom: 40px;
}

.header-banner::after {
    content: '';
    background: var(--particula-icon);
    width: 50px; height: 50px;
    position: absolute;
    top: 20px;
    right: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7; /* Ícone discreto */
}

.header-banner h1 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7); /* Facilita leitura */
}

.header-banner p {
    font-size: 1.3rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* ====== BOTÕES ====== */
.btn-metrics-container,
.btn-voltar-container {
    max-width: 1200px;
    margin: 20px auto;
    text-align: center;
}

.btn-metrics,
.btn-voltar {
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 30px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s; /* Animação suave ao passar o mouse */
}

.btn-metrics {
    background: linear-gradient(135deg, var(--azul-ptqa), var(--azul-claro-ptqa));
    color: var(--preto);
}

.btn-voltar {
    background: linear-gradient(135deg, var(--azul-ptqa), var(--azul-claro-ptqa));
    color: #fff;
}

.btn-metrics:hover,
.btn-voltar:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5); /* Sutil efeito 3D */
}

/* ====== FILTROS ====== */
.filtros-container {
    max-width: 1200px;
    margin: 0 auto 35px;
    padding: 0 10px;
}

.filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    align-items: flex-end;
}

.filtros label {
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
    color: #fff;
    font-weight: 500;
}

.filtros input[type="date"],
.filtros select {
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #555;
    background: var(--cinza-medio);
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s;
    width: 200px;
}

.filtros input[type="date"]:focus,
.filtros select:focus {
    border-color: var(--azul-ptqa);
    box-shadow: 0 0 10px rgba(33,150,243,0.6);
    outline: none;
    background-color: #333;
}

.filtros button {
    padding: 12px 28px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--azul-ptqa), var(--azul-claro-ptqa));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.filtros button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
/* ====== GRÁFICOS ====== */
.charts-container {
    max-width: 1200px;
    margin: 0 auto 50px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.chart-card {
    background: var(--cinza-medio);
    border: 2px solid var(--amarelo-mel);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.chart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.7);
}

.chart-card::before {
    content: '🐝';
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 2rem;
    opacity: 0.5;
}

.chart-card h3 {
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: var(--branco);
    text-align: center;
}

/* ApexCharts fundo e bordas */
.apexcharts-canvas {
    background: var(--cinza-escuro);
    border-radius: 15px;
    min-height: 550px;
}

/* ====== LABELS VISÍVEIS ====== */
/* Eixo X e Y */
.apexcharts-xaxis text,
.apexcharts-yaxis text {
    fill: var(--branco) !important; /* cor branca para melhor contraste */
    font-size: 0.9rem;
    font-weight: 500;
}

/* Legenda do gráfico */
.apexcharts-legend-text {
    fill: var(--branco) !important;
    font-size: 0.95rem;
}

/* Tooltip */
.apexcharts-tooltip {
    color: var(--preto);
    background: var(--amarelo-mel);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Linhas do grid */
.apexcharts-gridline,
.apexcharts-yaxis-tick line,
.apexcharts-xaxis-tick line {
    stroke: #555; /* cinza médio para contraste no fundo escuro */
}

/* Pontos e marcadores */
.apexcharts-marker {
    stroke-width: 2px;
    stroke: var(--amarelo-mel);
}


/* ====== METRICS CARDS ====== */
.metrics-container {
    max-width: 1200px;
    margin: 0 auto 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.metric-card {
    background: var(--cinza-medio);
    border: 2px solid var(--azul-ptqa);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.7);
}

.metric-card::before {
    content: '✨';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0.4;
}

.metric-card h3 {
    color: var(--azul-claro-ptqa);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.metric-card p {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000000;
}

/* ====== BANNER PRINCIPAL ====== */
.banner {
    text-align: center;
    color: var(--branco);
    margin-bottom: 60px;
    border-radius: 15px;
    overflow: hidden;
    max-width: 1200px;
    height: 400px;
}

.banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65);
    transition: transform 0.6s ease, filter 0.6s ease;
    z-index: 1;
    max-height: 450px;
}

.banner img:hover {
    transform: scale(1.05);
    filter: brightness(0.75);
}

.banner .caixa-info {
    position: relative;
    z-index: 2;
    top: 50%;
    left: 50%;
    background: rgba(255,255,255,0.92);
    color: #111;
    padding: 20px 30px;
    border-radius: 12px;
    max-width: 500px;
    border-left: 6px solid var(--verde-ifsc); /* destaque visual */
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    text-align: center;
    animation: fadeIn 1s ease forwards;
}

.banner .caixa-info h2 {
    color: var(--verde-ifsc);
    margin-bottom: 8px;
    font-size: 1.8rem;
}

.banner .caixa-info p {
    font-size: 1rem;
    line-height: 1.5;

}

/* ====== ANIMAÇÃO ====== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ====== RESPONSIVO ====== */
@media(max-width:768px){
    .filtros { flex-direction: column; gap: 15px; }
    .charts-container { grid-template-columns: 1fr; gap: 35px; }
    .apexcharts-canvas { min-height: 450px; }
    .metrics-container { grid-template-columns: 1fr; gap: 25px; }
    .banner img { max-height: 300px; }
    .banner .caixa-info {
        max-width: 90%;
        padding: 12px 18px;
    }
    .banner .caixa-info h2 { font-size: 1.4rem; }
    .banner .caixa-info p { font-size: 0.95rem; }
    .header-banner { padding: 25px 15px; max-height: 300px; }
    .header-banner h1 { font-size: 1.5rem; }
    .header-banner p { font-size: 1rem; }
}
