:root {
    --primary-color: #afafaf;
    --accent-color: #0074d9;
    --white: #ffffff;
    --light-gray: #848991;
    --border-color: rgb(100, 100, 100);
    --text-color: #ffffff;
    --black: #000000;
}

.controls-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
    margin: 24px auto;
    max-width: 600px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.control-group label {
    margin-right: 0;
}

.label-spacer {
    user-select: none;
}

@media (max-width: 768px) {
    .label-spacer {
        display: none;
    }

    .controls-container {
        flex-direction: column;
        align-items: stretch;
        padding: 0 16px;
        gap: 12px;
    }
    
    .control-group {
        width: 100%;
    }
    
    select, input[type="date"], button {
        width: 100%;
        margin-right: 0;
    }
    
    button {
        margin-top: 8px;
        padding: 12px;
    }
    
    #tabella-container {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
        padding: 0 8px;
    }
    
    table {
        min-width: 600px;
        width: 100%;
    }
    
    th, td {
        padding: 1.5vw;
        font-size: 14px;
    }
}

img{
    margin-top: 32px;
    width: 150px;
}

label {
    font-weight: 600;
    margin-right: 8px;
}

select, input, button {
    height: 44px;
    margin: 0;
    padding: 0 12px;
    font-size: 16px;
    border-radius: 8px;
    font-family: inherit;
    background-color: transparent;
    color: white;
    border: 2px rgba(0, 139, 139, 0.5) solid;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

button {
    border: 0;
}

select:focus, input:focus {
    outline: none;
    border: 2px darkcyan solid;
}

select option {
    background-color: rgb(60, 60, 60);
    color: white;
}

input[type="date"] {
    color-scheme: dark;
}

button {
    background-color: darkcyan;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

#message-container{
    margin:16px;
}

#tabella-container{
    display: none;
}

table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    min-width: 85%;
    max-width: 100%;
    text-align: left;
}

thead {
    position: sticky;
    top: 0;
}

th {
    background-color: darkcyan;
    padding: .7vw;
}

td {
    padding: .7vw;
}

tr:nth-child(even) {
    background-color: rgb(60, 60, 60);
}

a {
	color: orange;
}