/* CORPO E TITOLO */
body {
  background-color: #121212;
  color: #eee;
  font-family: Arial, sans-serif;
  margin: 20px;
  text-align: center;
}

h1 {
  margin-bottom: 20px;
}

/* TABELLA 1x6 GRAFICI */
table {
  width: 90vw;
  max-width: 1400px;
  margin: 0 auto 30px auto;
  border-collapse: collapse;
  table-layout: fixed;
  color: #eee;
}

td {
  border: 1px solid #444;
  padding: 15px;
  vertical-align: top;
  background: #1f1f1f;
  text-align: center;
  width: calc(100% / 6);
  height: 200px;
}

.info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.3em;
  margin-bottom: 10px;
}

.icon {
  font-size: 1.8em;
}

canvas {
  max-width: 100%;
  height: 160px !important;
  background-color: #222;
  border-radius: 8px;
  display: block;
}

/* SEZIONE INFERIORE GPU + STORAGE + PROCESSI */
#bottom-section {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto 40px auto;
  flex-wrap: wrap;
}

/* BOX GPU, STORAGE e PROCESSI */
#gpu-section,
#storage-section,
#process-section {
  flex: 1 1 30%;
  background: #1f1f1f;
  padding: 20px;
  border-radius: 8px;
  color: #ccc;
  min-height: 500px;
  overflow: visible;
}

#gpu-section h2,
#storage-section h2,
#process-section h2 {
  margin-bottom: 15px;
}

/* DETTAGLI STORAGE */
#storage-section div {
  padding: 5px 0;
  font-size: 0.9em;
}

/* BARRA UTILIZZO DISCO */
.disk-bar-container {
  background: #333;
  border-radius: 6px;
  height: 18px;
  width: 100%;
  margin-top: 6px;
  overflow: hidden;
}

.disk-bar-fill {
  background: #4bc0c0;
  height: 100%;
  width: 0%;
  border-radius: 6px 0 0 6px;
  transition: width 0.5s ease;
}

/* BARRE GPU */
.gpu-bar-container {
  margin: 8px 0;
  text-align: left;
}

.gpu-bar-label {
  font-size: 1em;
  margin-bottom: 4px;
  cursor: help;
  color: #ddd;
}

.gpu-bar-fill {
  background: #9966ff;
  height: 18px;
  width: 0%;
  border-radius: 6px;
  transition: width 0.5s ease;
}

/* LISTA TOP PROCESSI */
#top-process-lists {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  text-align: left;
}

#top-process-lists ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 48%;
  font-size: 0.95em;
  color: #eee;
  background: #222;
  border-radius: 6px;
  padding: 10px;
  max-height: 420px;
  overflow-y: auto;
}

#top-process-lists li {
  margin-bottom: 6px;
  border-bottom: 1px solid #333;
  padding-bottom: 4px;
  display: flex;
  justify-content: space-between;
}

#top-process-lists li span {
  font-weight: bold;
  color: #ff6384;
}

#top-process-lists li span.ram {
  color: #36a2eb;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  table {
    display: block;
  }

  table tr {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  table td {
    width: 90%;
    margin-bottom: 20px;
    height: auto;
  }

  canvas {
    height: 140px !important;
  }

  #bottom-section {
    flex-direction: column;
    gap: 20px;
    padding: 0 10px;
  }

  #gpu-section,
  #storage-section,
  #process-section {
    width: 100%;
    min-height: auto;
  }

  #top-process-lists {
    flex-direction: column;
  }

  #top-process-lists ul {
    width: 100%;
  }
}
#process-section {
  margin-top: 2em;
}

.process-tables {
  display: flex;
  gap: 2em;
  flex-wrap: wrap;
}

.process-table {
  flex: 1;
  min-width: 300px;
}

.process-list {
  list-style: none;
  padding-left: 0;
}

.process-list li {
  background: #1e1e1e;
  margin: 4px 0;
  padding: 6px 10px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
}

.process-list li span {
  font-weight: bold;
  color: #ff6384;
}
#process-section {
  margin-top: 2em;
  padding: 1em;
  background-color: #121212;
  border-radius: 10px;
}

.process-tables {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
}

.process-table {
  flex: 1;
  min-width: 300px;
}

.process-list {
  list-style: none;
  padding-left: 0;
}

.process-list li {
  background-color: #1e1e1e;
  margin: 5px 0;
  padding: 8px 10px;
  border-radius: 5px;
  color: #ffffff;
  font-size: 0.9em;
  display: flex;
  justify-content: space-between;
}

.process-list li span {
  font-weight: bold;
  color: #ff6384;
}
