/* ---------- Reset básico ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

/* ---------- Página del GIF (pantalla completa) ---------- */
body { overflow: hidden; }
main.full {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
}
main.full img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ---------- Dashboard /stats ---------- */
body.stats {
  overflow: auto;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
  background: #f7f7f8;
  color: #222;
}
body.stats h1 { margin-bottom: .5rem; }
body.stats h2 { margin-top: 0; font-size: 1.1rem; }

.toolbar {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: .55rem 1rem;
  border-radius: 6px;
  background: #0852B0;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
}
.btn.alt { background: #1f7a3a; }
.btn:hover { opacity: .9; }

.card {
  background: #fff;
  border-radius: 10px;
  padding: 1.2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  margin-bottom: 1.2rem;
}

table { width: 100%; border-collapse: collapse; }
th, td { padding: .55rem .6rem; border-bottom: 1px solid #eee; text-align: left; }
th { background: #f2f2f4; }

.pill {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  border: 1px solid #ccc;
}

canvas { max-height: 360px; }
