:root{
  --bg:#fafafa;
  --card:#fff;
  --accent:#0b74de;
  --muted:#666;
  --pad:12px;
}
*{box-sizing:border-box}
body{
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  margin:0;
  background:var(--bg);
  color:#111;
  -webkit-font-smoothing:antialiased;
}
header{padding:20px; background:linear-gradient(90deg,#fff,#f4f8ff); border-bottom:1px solid #eee}
h1{margin:0 0 6px; font-size:1.4rem}
.container{max-width:1100px; margin:20px auto; padding:12px}
.controls{
  display:flex; gap:12px; align-items:center; flex-wrap:wrap;
  background:var(--card); padding:var(--pad); border-radius:10px; box-shadow:0 2px 6px rgba(10,20,40,0.04);
}
.controls label{display:flex; flex-direction:column; font-size:0.95rem; color:var(--muted)}
.controls select, .controls input[type="date"]{
  margin-top:6px; padding:8px 10px; border-radius:6px; border:1px solid #ddd; min-width:180px;
}
.buttons{display:flex; gap:8px; align-items:center}
button{
  background:var(--accent); border:none; color:#fff; padding:8px 12px; border-radius:8px; cursor:pointer;
  font-weight:600;
}
button[disabled]{opacity:0.6; cursor:not-allowed}
.chartbox{background:var(--card); margin-top:14px; padding:14px; border-radius:10px}
/* responsive canvas container */
.canvas-container{
  position: relative;
  width: 100%;
  min-height: 360px;
  height: 48vh;
  background: #fff;
}
#events_section{margin-top:14px; background:var(--card); padding:14px; border-radius:10px}
#events_list ul{margin:8px 0 0 18px}
footer{padding:12px; text-align:center; color:var(--muted); font-size:0.85rem}
@media(max-width:900px){
  .controls select, .controls input[type="date"]{ min-width:140px; }
}
@media(max-width:700px){
  .controls{flex-direction:column; align-items:stretch}
  .buttons{justify-content:flex-start}
  .canvas-container{ min-height: 320px; height: 56vh; }
  button{padding:10px 14px; font-size:0.95rem}
}
/* force canvas full width */
.chartjs-render-monitor { width:100% !important; }

/* fullscreen rules (for most browsers) to ensure white background in fullscreen */
.canvas-container:-webkit-full-screen { background: #fff !important; }
.canvas-container:-moz-full-screen { background: #fff !important; }
.canvas-container:fullscreen { background: #fff !important; }

/* download menu styles (if not included in HTML) */
#download_menu { position:absolute; display:none; background:#fff; border:1px solid #ddd; box-shadow:0 6px 16px rgba(0,0,0,0.08); border-radius:6px; padding:6px 0; z-index:9999; min-width:160px; }
#download_menu button { display:block; width:100%; text-align:left; padding:8px 12px; border:0; background:transparent; cursor:pointer; }
#download_menu button:hover { background:#f4f6fb; }

/* >>> download menu fixes: ensure readable and positioned fixed */
#download_menu {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
  border-radius: 6px !important;
  min-width: 140px;
  z-index: 99999;
  font-size: 14px;
}
#download_menu button {
  color: #111111 !important;
  background: transparent !important;
  border: 0 !important;
  padding: 8px 12px !important;
  text-align: left !important;
  width: 100%;
  cursor: pointer;
}
#download_menu button:hover {
  background: #f4f6fb !important;
}

/* Overlay pseudo-fullscreen (fallback) */
.full-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}

/* garante que o container dentro ocupe toda a área visível */
.full-overlay .canvas-container {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border-radius: 6px;
  overflow: hidden;
}

/* estilo do botão Fechar (padrão já herdado) */
.full-overlay .btn-icon.btn-outline {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.06);
  color: #111;
}

/* assegura fundo branco em fullscreen nativo também */
.canvas-container:-webkit-full-screen, .canvas-container:fullscreen {
  background: #ffffff !important;
}
/* Rodapé disclaimer */
footer.disclaimer {
  margin-top: 2rem;
  padding: 0.8rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #555; /* cinza suave */
  border-top: 1px solid #e0e0e0;
}

footer.disclaimer small {
  line-height: 1.4;
}

footer.disclaimer a {
  color: #555; /* mesma cor do texto */
  text-decoration: none; /* sem sublinhado normal */
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

footer.disclaimer a:hover {
  color: #0066cc; /* azul discreto */
  text-decoration: underline;
}

/* Adicione ao styles.css */
.astro-block h4 { font-size:1.03rem; margin-bottom:6px; color:#0b74de; }
.astro-block ul { margin:6px 0 0 18px; color:#222; }
.astro-block strong { color:#111; }

