body {
  background: #0f172a;
  color: white;
  font-family: Arial, sans-serif;
  padding: 30px;
}

h1 {
  margin-bottom: 20px;
}

.card {
  background: #111827;
  padding: 20px;
  border-radius: 18px;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.cpu-grid {
  grid-template-columns: 1fr;
  max-width: 426px;
}

.item {
  background: #020617;
  padding: 16px;
  border-radius: 14px;
}

.label {
  color: #94a3b8;
  font-size: 13px;
}

.value {
  font-size: 24px;
  font-weight: bold;
  margin-top: 6px;
}

.green {
  color: #22c55e;
}

.yellow {
  color: #facc15;
}

.red {
  color: #ef4444;
}

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

  .cpu-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

@media (max-width: 600px) {
  body {
    padding: 16px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

.nav {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.nav a {
  background: #1e293b;
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
}

.nav a:hover {
  background: #334155;
}

.filter-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr .7fr auto;
  gap: 14px;
  align-items: end;
}

.filter-card label {
  display: block;
  color: #cbd5e1;
  margin-bottom: 6px;
  font-size: 14px;
}

select,
input,
button {
  width: 100%;
  background: #020617;
  color: white;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 10px;
  font-size: 15px;
}

button {
  background: #2563eb;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background: #1d4ed8;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.threshold {
  float: right;
  font-size: 13px;
  background: #064e3b;
  color: #bbf7d0;
  padding: 6px 10px;
  border-radius: 8px;
}

.small {
  font-size: 14px;
  word-break: break-all;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

th, td {
  padding: 12px;
  border-bottom: 1px solid #334155;
  text-align: left;
}

th {
  color: #cbd5e1;
}

@media (max-width: 1200px) {
  .chart-grid {
    grid-template-columns: 1fr;
  }

  .filter-card {
    grid-template-columns: 1fr;
  }
}
