* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  min-height: 100vh;
  padding: 40px 20px;
  color: #333;
}

/* Titolo principale */
h1 {
  text-align: center;
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: 1px;
}

/* Pulsante navigazione */
input[type="button"] {
  display: block;
  margin: 0 auto 30px auto;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
  transition: all 0.3s ease;
}

input[type="button"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(17, 153, 142, 0.5);
}

input[type="button"]:active {
  transform: translateY(0);
}

/* Container della tabella */
table {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  border-style:solid;
  border-width:medium;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-collapse: collapse;
}

/* Header della tabella */
table tr:first-child {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

table tr:first-child td {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 18px 16px;
  text-align: center;
}

/* Righe dati */
table tr:not(:first-child) {
  transition: all 0.2s ease;
}

table tr:not(:first-child):hover {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  transform: scale(1.01);
}

table tr:not(:first-child) td {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

/* Colori per ogni tipo di dato */
table tr:not(:first-child) td:nth-child(1) {
  color: #888;
  font-weight: 500;
}

/* Temperatura - Arancione/Rosso */
table tr:not(:first-child) td:nth-child(2) {
  color: #e74c3c;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Umidità - Azzurro */
table tr:not(:first-child) td:nth-child(3) {
  color: #3498db;
  font-weight: 600;
}

/* Pressione - Viola */
table tr:not(:first-child) td:nth-child(4) {
  color: #9b59b6;
  font-weight: 600;
}

/* Altitudine - Verde */
table tr:not(:first-child) td:nth-child(5) {
  color: #27ae60;
  font-weight: 600;
}

/* Data - Grigio */
table tr:not(:first-child) td:nth-child(6) {
  color: #7f8c8d;
  font-size: 0.85rem;
}

/* Ultima riga senza bordo */
table tr:last-child td {
  border-bottom: none;
}

/* Animazione di ingresso */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

table {
  animation: fadeIn 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 20px 10px;
  }

  h1 {
    font-size: 1.8rem;
  }

  table {
    font-size: 0.85rem;
  }

  table tr:first-child td,
  table tr:not(:first-child) td {
    padding: 12px 8px;
  }

  input[type="button"] {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  table tr:first-child td {
    font-size: 0.75rem;
    padding: 10px 4px;
  }

  table tr:not(:first-child) td {
    padding: 10px 4px;
    font-size: 0.8rem;
  }
}