/* SFONDO: libreria ben visibile */
body {
    margin: 0;
    padding: 0;
    font-family: 'Georgia', serif;
    background: linear-gradient(rgba(255,255,255,0.75), rgba(255,255,255,0.75)),
                url('https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?auto=format&fit=crop&w=1470&q=80') no-repeat center center fixed;
    background-size: cover;
    color: #1f2b38;
}

/* CONTENITORE */
.container, form, table {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.96);
    border-radius: 16px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    border: 2px solid #326273;
}

/* TITOLI */
h1, h2 {
    text-align: center;
    color: #21404e;
    font-family: 'Palatino Linotype', serif;
    margin-bottom: 20px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}

/* LABELS */
label {
    display: block;
    margin-top: 20px;
    font-weight: bold;
    font-size: 1.1rem;
    color: #2c3e50;
}

/* CAMPI INPUT */
input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: 2px solid #5ba4b3;
    border-radius: 10px;
    background-color: #f8fbfd;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    border-color: #326273;
    background-color: #ffffff;
    outline: none;
}

/* PULSANTI */
input[type="submit"], .button {
    background: linear-gradient(to right, #4e9ea9, #21404e);
    color: white;
    padding: 14px 24px;
    margin-top: 25px;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: 0.3s;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

input[type="submit"]:hover, .button:hover {
    background: linear-gradient(to right, #21404e, #4e9ea9);
    transform: scale(1.05);
    color: white; /* Mantieni il testo bianco */
}

/* LINK */
a {
    display: block;
    text-align: center;
    margin-top: 25px;
    font-weight: bold;
    color: #1f3a4c;
    text-decoration: none;
    font-size: 1.05rem;
}

a:hover {
    text-decoration: underline;
    color: #2c5973;
}

/* TABELLE */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 14px;
    border: 1px solid #5ba4b3;
    text-align: center;
}

th {
    background-color: #21404e;
    color: white;
    font-size: 1.1rem;
}

tr:nth-child(even) {
    background-color: #f0f6f9;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .container, form, table {
        padding: 20px;
        margin: 20px;
    }

    input[type="submit"] {
        font-size: 1rem;
    }
}

/* Aggiungi o modifica queste regole nel tuo style.css */

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.data-table th, .data-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.data-table th {
    background-color: #f2f2f2;
    color: #333;
    font-weight: bold;
}

.data-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.data-table tbody tr:hover {
    background-color: #e9e9e9;
}
