body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
    color: #333;
}

h1, h2 {
    color: #4A90E2;
}

h1 {
    font-size: 1.5em;
}

h2 {
    font-size: 1.2em;
}

form {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

label {
    display: block;
    margin: 10px 0 5px;
}

label.title, input#title {
    font-weight: bold;
}

input[type="text"],
input[type="date"],
input[type="time"],
input[type="number"],
textarea {
    font-size: 20px;
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* include padding and border in width */
}

#time {
    display: flex;
    margin-bottom: 20px;
    justify-content: space-between;
}

#end-time, #start-time {
    width: 100%;
} 

#start-time {
    margin-right: 20px;
}


input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

textarea#notes {
    margin-bottom: 20px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #4A90E2;
    color: white;
    cursor: pointer;
    margin-right: 10px;
    touch-action: manipulation;
}

button#increase {
    margin-right: 0px;
}

button:hover {
    background-color: #357ABD;
}

#count {
    font-size: 2em;
    text-align: center;
    margin-right: 10px;
    margin-top:0px;
}

#newInsertion {
    background-color: #50C878;
    margin: 10px 0 10px 0;
    width: 100%;
}

#saveInsertion {
    width: 100%;
}

#newInsertion:hover {
    background-color: #45B365;
}

#savedInsertions {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.saved-item {
    border-bottom: 1px solid #eee;
    padding: 10px;
    margin-top: 10px;
}

.saved-item button {
    padding: 5px;
}

.counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #E8E8E8; 
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.counter button {
    font-size: 28px; /* Aumenta la dimensione del font per i simboli + e - */
    min-width: 80px;
    background-color: #4A90E2;
    color: white;
    border: 3px solid  #4A90E2;
    border-radius: 4px;
    cursor: pointer;
}



.counter button:hover {
    background-color: #50C878;
    border: 3px solid  #50C878;
}

.counter input[type="number"] {
    flex-grow: 1;
    text-align: center;
}


section#salvati {
    margin-bottom: 50px;
}



