/* Reset di base */
body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Container principale */
.container {
    max-width: 600px;
    background: white;
    margin: 40px auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Titoli */
h1, h2 {
    text-align: center;
    color: #2e8b57;
}

/* Label e input */
label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

input[type="text"],
input[type="password"],
select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

/* Pulsanti */
button {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    border-radius: 10px;
    border: none;
    background: #2e8b57;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #256c46;
}

/* Avviso */
.avviso {
    color: red;
    text-align: center;
    font-weight: bold;
}

/* Tabelle */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95rem;
}

th, td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

th {
    background: #2e8b57;
    color: white;
}

tr:nth-child(even) {
    background: #f9f9f9;
}

tr:hover {
    background: #e0f2e9;
}

/* Campi mensa e radio */
.campo-mensa {
    margin-top: 20px;
    text-align: center;
}

.titolo-mensa {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
}

.scelta-mensa {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 25px; /* distanza tra Sì e No */
}

.scelta-mensa label {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.scelta-mensa input[type="radio"] {
    margin: 0;
}

/* Checkbox giorni della settimana */
.checkbox-giorni {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.checkbox-giorni label {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f0f0f0;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.checkbox-giorni input[type="checkbox"] {
    transform: scale(1.2);
}

.checkbox-giorni label:hover {
    background: #e0f2e9;
}

/* Totali e riepilogo classi */
.totali, .riepilogo-classi {
    margin-top: 25px;
    text-align: center;
    font-weight: bold;
}

.riepilogo-classi table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.riepilogo-classi th, .riepilogo-classi td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

.riepilogo-classi th {
    background: #2e8b57;
    color: white;
}

/* Evidenzia assenze future (per eventuale stile futuro) */
.future-assenza {
    color: #777;
    font-style: italic;
}
.pdf-btn {
    display: inline-block;
    padding: 10px 15px;
    background: #2e8b57;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 15px;
}
.pdf-btn:hover {
    background: #256c46;
}