/* Impostazioni generali */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f3f4f6;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Contenitore principale */
.container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 600px;
    margin: 20px 0;
}

/* Header */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

header .logo {
    max-width: 80px;
    height: auto;
    margin-bottom: 10px;
}

header h1 {
    font-size: 24px;
    color: #333;
    margin: 0;
}

/* Stili del form */
.form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.form label {
    align-self: flex-start;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form input, .form select, .form textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form input:focus, .form select:focus, .form textarea:focus {
    border-color: #007bff;
}

.form button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 10px; /* Spazio tra i pulsanti */
}

.form .btn-entrata {
    background-color: #dc3545; /* Rosso */
}

.form .btn-entrata:hover {
    background-color: #c82333;
}

.form .btn-uscita {
    background-color: #28a745; /* Verde */
}

.form .btn-uscita:hover {
    background-color: #218838;
}

/* Messaggi di errore */
.error {
    color: red;
    margin-bottom: 15px;
}

/* Link di logout */
.logout {
    display: block;
    margin-top: 20px;
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    transition: color 0.3s;
}

.logout:hover {
    color: #0056b3;
}

/* Stili della tabella */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #f3f4f6;
    font-weight: bold;
}

/* Stili del pulsante di eliminazione */
.btn-delete {
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.btn-delete img {
    width: 16px;
    height: 16px;
}

.btn-delete:hover img {
    filter: brightness(0.8);
}
