body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #0f172a;
  color: #e5e7eb;
}

/* LOGIN */
#login {
  max-width: 400px;
  margin: 120px auto;
  padding: 30px;
  background: #020617;
  border-radius: 12px;
  text-align: center;
}

#login input {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 8px;
  border: none;
}

#login button {
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  border-radius: 8px;
  background: #2563eb;
  color: white;
  border: none;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: #020617;
}

header h1 {
  margin: 0;
}

.dates {
  font-size: 12px;
  opacity: 0.7;
}

header button {
  background: #334155;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
}

/* INSTÂNCIA */
.instance {
  padding: 20px 30px;
}

.instance h2 {
  margin-bottom: 10px;
}

/* GRID FIXO POR CATEGORIA */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

/* TILE COMPACTO */
.tile {
  background: #020617;
  padding: 10px;
  border-radius: 10px;
  border-left: 4px solid #22c55e;
  min-height: 80px;
}

.tile.CRITICAL {
  border-left-color: #ef4444;
}

/* PISCA CRÍTICO */
@keyframes pulse {
  0% { box-shadow: 0 0 0 rgba(239,68,68,0); }
  50% { box-shadow: 0 0 14px rgba(239,68,68,0.8); }
  100% { box-shadow: 0 0 0 rgba(239,68,68,0); }
}

.tile.blink {
  animation: pulse 1.5s infinite;
}

/* TEXTO */
.tile-title {
  font-size: 12px;
  text-transform: uppercase;
  opacity: 0.7;
}

.tile-status {
  font-size: 18px;
  font-weight: bold;
  margin-top: 4px;
}

.alert-line {
  font-size: 11px;
  margin-top: 4px;
  color: #fecaca;
}

/* MOBILE */
@media (max-width: 600px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===========================
   DATAS HEADER (DIREITA)
=========================== */
.header-dates {
  text-align: right;
  font-size: 13px;
  line-height: 1.4;
}

.header-dates div {
  white-space: nowrap;
}

.header-dates .label {
  color: #94a3b8;        /* cinza elegante */
  margin-right: 6px;
}

.header-dates .value {
  color: #e5e7eb;        /* quase branco */
  font-weight: 600;
}
