/* Reset base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
header {
  background: linear-gradient(135deg, #4a90e2, #357ab8);
  color: white;
  padding: 1.5em;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

header h1 {
  font-size: 2em;
  margin-bottom: 0.3em;
}

header p {
  font-size: 1.1em;
  opacity: 0.9;
}

/* Navbar */
nav {
  display: flex;
  justify-content: center;
  gap: 1em;
  background: #fff;
  padding: 1em;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 10;
}

nav button {
  background: #4a90e2;
  color: white;
  border: none;
  padding: 0.6em 1.2em;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

nav button:hover {
  background: #357ab8;
  transform: translateY(-2px);
}

/* Contenuto */
main {
  flex: 1;
  padding: 2em;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.page {
  display: none;
  max-width: 600px;
  width: 100%;
  background: #fff;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  animation: fadeIn 0.4s ease-in-out;
}

.page.active {
  display: block;
}

h2 {
  margin-bottom: 1em;
  color: #357ab8;
}

/* Pulsanti dentro le sezioni */
section button {
  background: #357ab8;
  color: white;
  border: none;
  padding: 0.5em 1.2em;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s;
}

section button:hover {
  background: #245b85;
}

#password-value,
#ip-value {
  margin-top: 1em;
  font-size: 1.2em;
  font-weight: bold;
  color: #444;
  word-break: break-all;
}

/* Footer */
footer {
  text-align: center;
  background: #333;
  color: white;
  padding: 1em;
  margin-top: auto;
}

/* Animazione */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
