@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html, body {
  background-color: #f3f4f6;
  overflow-x: hidden;
}

body {
  padding: 6px;
}

.tvGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 4px;
}

.tvCard {
  display: flex;
  align-items: center;
  border-radius: 6px;
  overflow: hidden;
  min-height: 56px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.tvDia {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  padding: 0 10px;
  min-width: 64px;
  text-align: center;
  color: #111827;
  border-right: 1px solid rgba(0, 0, 0, 0.12);
}

.tvNome {
  font-size: 2.1rem;
  font-weight: 600;
  flex: 1;
  padding: 6px 10px;
  color: #111827;
  line-height: 1.2;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.tvVazio {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1.2rem;
  padding: 40px;
  color: #6b7280;
}

.VERMELHO {
  background-color: #f87171;
}

.VERMELHO-PISCANTE {
  background-color: #f87171;
  animation: pisca 2s infinite;
}

.AMARELO-PISCANTE {
  background-color: #fcd34d;
}

.VERDE {
  background-color: #6ee7b7;
}

.AZUL {
  background-color: #93c5fd;
}

.DEMONSTRATIVO {
  background-color: #c4b5fd;
}

@keyframes pisca {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

@media (min-width: 1600px) {
  .tvGrid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  .tvDia {
    font-size: 2.6rem;
    min-width: 76px;
  }
  .tvNome {
    font-size: 2.5rem;
  }
}

@media (min-width: 2400px) {
  .tvGrid {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 6px;
  }
  .tvCard {
    min-height: 72px;
  }
  .tvDia {
    font-size: 3.2rem;
    min-width: 92px;
  }
  .tvNome {
    font-size: 3.1rem;
  }
}
