body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: linear-gradient(135deg,#eef2f7,#d9e1ec);
}

#login-box, .card {
  max-width: 420px;
  margin: 10vh auto;
  background: #fff;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,.1);
}

h1,h2 { text-align:center }

input, button {
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  font-size: 16px;
  border-radius: 10px;
}

button {
  background: #2563eb;
  color: white;
  border: none;
}

.answer {
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: 10px;
  margin-top: 10px;
}

.correct { background:#d1fae5; border-color:#10b981 }
.wrong   { background:#fee2e2; border-color:#ef4444 }

.footer {
  text-align:center;
  font-size:13px;
  color:#555;
  margin-top:20px;
}

.hidden { display:none }

// ===============================
// CSS AGGIUNTIVO (da includere nel tuo HTML)
// ===============================
const additionalCSS = `
<style>
.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.nav-btn {
  padding: 8px 15px;
  background-color: #4a6fa5;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.nav-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.back-btn {
  background-color: #6c757d;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 5px;
}

.action-btn {
  background-color: #28a745;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 5px;
}

.footer-buttons {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
}

.question-text {
  font-size: 1.1em;
  line-height: 1.5;
  margin-bottom: 20px;
}

.answer {
  padding: 12px 15px;
  margin: 8px 0;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.answer:hover {
  background-color: #f8f9fa;
  border-color: #4a6fa5;
}

.answer.selected {
  border-color: #4a6fa5;
  background-color: #e8f0fe;
}

.answer.correct {
  border-color: #28a745;
  background-color: #d4edda;
}

.answer.wrong {
  border-color: #dc3545;
  background-color: #f8d7da;
}

.feedback {
  padding: 10px;
  margin: 15px 0;
  border-radius: 5px;
  font-weight: bold;
}

.card {
  max-width: 800px;
  margin: 0 auto;
}
</style>
`;

// Inietta il CSS aggiuntivo
document.head.insertAdjacentHTML('beforeend', additionalCSS);
