/* ====== PALETA DE CORES - AMARELO ====== */
:root {
    --amarelo-mel: #fbc02d;      /* cor principal (destaque, botão, bordas) */
    --laranja-mel: #f57c00;      /* tons de colmeia */
    --verde-ifsc: #fbc02d;       /* agora em amarelo para gráficos e títulos */
    --verde-claro: #ffe082;      /* hover ou detalhes em amarelo claro */
    --preto: #121212;             /* fundo principal */
    --cinza-escuro: #1e1e1e;     /* fundo de cards e charts */
    --cinza-medio: #2b2b2b;      /* cards e filtros */
    --cinza-hover: #383838;       /* hover de filtros */
    --branco: #fff;               /* textos claros */
    --abelha-icon: url('/img/abelha_icon.png'); /* enfeite sutil */
}

/* ====== RESET GLOBAL ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family:'Segoe UI', sans-serif;
    background: var(--preto);
    color: #eee;
    line-height: 1.6;
}

/* ====== HEADER BANNER ====== */
.header-banner {  
    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;
    background: var(--laranja-mel);
}
.header-banner::after {
    content: '';
    background: var(--abelha-icon);
    width: 50px;
    height: 50px;
    position: absolute;
    top: 20px;
    right: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
}
.header-banner h1 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
.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;
}
.btn-metrics {
    background: linear-gradient(135deg, var(--amarelo-mel), var(--laranja-mel));
    color: var(--preto);
}
.btn-voltar {
    background: linear-gradient(135deg, var(--amarelo-mel), var(--laranja-mel));
    color: #fff;
}
.btn-metrics:hover,
.btn-voltar:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* ====== 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"] {
    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 {
    border-color: var(--amarelo-mel);
    box-shadow: 0 0 10px rgba(251,192,45,0.6);
    outline: none;
    background-color: #333;
}
.filtros button {
    padding: 12px 28px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg,var(--amarelo-mel),var(--laranja-mel));
    color: var(--preto);
    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-canvas {
    background: var(--cinza-escuro);
    border-radius: 15px;
    min-height: 550px;
}

/* ====== LABELS DO GRÁFICO VISÍVEIS ====== */
.apexcharts-xaxis text,
.apexcharts-yaxis text {
    fill: var(--branco) !important;
    font-size: 0.9rem;
    font-weight: 500;
}
.apexcharts-legend-text {
    fill: var(--branco) !important;
    font-size: 0.95rem;
}
.apexcharts-tooltip {
    color: var(--preto);
    background: var(--amarelo-mel);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}
.apexcharts-gridline,
.apexcharts-yaxis-tick line,
.apexcharts-xaxis-tick line {
    stroke: #555;
}
.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(--laranja-mel);
    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(--laranja-mel); 
    margin-bottom: 15px; 
    font-size: 1.3rem; 
}
.metric-card p { 
    font-size: 1.8rem; 
    font-weight: 700; 
    color:#fff; 
}

/* ====== BANNER ====== */
.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);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    text-align: center;
    animation: fadeIn 1s ease forwards;
}

/* ====== 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 .caixa-info h2 { font-size: 1.5rem; }
    .banner .caixa-info p { font-size: 1rem; }
    .header-banner { padding: 25px 15px; max-height: 300px; }
    .header-banner h1 { font-size: 1.5rem; }
    .header-banner p { font-size: 1rem; }
}
