body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fdfcff; /* Bianco quasi puro con una punta di lilla */
    color: #4a4a4a;
    margin: 0;
    padding: 0;
}
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center; /* AGGIUNTO QUESTO PER CENTRARE */
}
.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f4e8ff 100%); /* Sfumatura bianca a lilla chiaro */
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(147, 112, 219, 0.1); /* Ombra color lilla */
}

h1, h2, h3 {
    color: #7b68ee; /* Lilla scuro/viola per i titoli */
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #5a4b81;
}

input[type="text"], input[type="password"], input[type="date"], input[type="time"], input[type="number"], textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #dcd0ff;
    border-radius: 6px;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.8);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-group label {
    font-weight: normal;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

button {
    background-color: #b19cd9; /* Lilla */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #9370db; /* Lilla più scuro al passaggio del mouse */
}

.alert {
    padding: 10px;
    background-color: #e6e6fa;
    color: #4b0082;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}

.nav-links {
    text-align: center;
    margin-top: 15px;
}

.nav-links a {
    color: #7b68ee;
    text-decoration: none;
}