body {
    all: unset;
    padding: 0;
    font: initial;
    font-family: arial;
}

a{
    color: rgb(200,0,0);
    text-decoration: none;
}

i{
    font-size: 30px;
    margin: auto 0;
}

/* layout generale */
.layout{
    display: flex;
}

.main{
    width: 100%;
}

/* login */
.container_login{
    background: gray;
    display: flex;
    justify-content: center;
    height: 100vh;
    margin: auto;
    align-items: center;
}

.login{
    background: white;
    padding: 20px 20px 5px 20px;
    border-radius: 20px;
}

.login form{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input{
    border: 1px solid rgb(200,200,200);
    border-radius: 5px;
    height: 30px;
}

input[type='submit']{
    background: rgb(0, 135, 255);
    border: 0;
    color: wheat;
    height: 35px;
    border-radius: 5px;
}

input#action,
input#non_nome{
    display: none;
}

.navbar input {
    border: none;
    border-radius: 30px;
    height: 40px;
    margin: 5px 20px;
    font-size: 20px;
    padding-left: 20px;
    background: rgba(220,220,220,0.4);
}

/* sidebar */
#sidebar {
    display: flex;
    position: sticky;
    background: #F0EFFF;
    width: 350px;
    color: white;
    transition: width 0.5s, background-color 0.5s;
    flex-direction: column;
    height: 100vh;
}

#sidebar ul{
    list-style: none;
    padding: 0;
    margin: 10px;
}
#sidebar ul li{
    color: #666;
    font-size: 20px;
    padding: 10px;
    padding-left: 30px;
}
#sidebar ul li:hover{
    background: rgb(210,210,210);
    border-radius: 10px;
    cursor: pointer;
}
#sidebar ul li.attivo a::after {
    content: "\2193";
    margin-left: 10px;

}

#sidebar ul li a{
    text-decoration: none;
    margin-left: 10px;
    color: #666;
}

.sidebar_title{
    text-align: center;
    width: 100%;
    color: #000;
    font-size: 25px;
}

/* navbar */
.navbar{
    position: sticky;
    top: 10px;
    background: #fff;
    border-radius: 20px;
    margin: 10px 10px 10px 0;
    height: 50px;
    display: flex;
}

.navbar_title{
    text-align: center;
    width: 100%;
    color: #666;
    font-size: 25px;
    margin: 0;
    margin: auto 20px;
    text-align: right;
    text-transform: uppercase;
    
}
.navbar_title::before {
    margin-right: 10px;
    content: "\1F464";
    justify-content: center;
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    background-color: lightgrey;
    height: 40px;
    width: 40px;
    border-radius: 25px;
    color: gray;
}
/* counters */
.counters_container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.counter_progetti {
    width: 300px;
    height: 250px;
    border-radius: 10px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.counter_progetti p {
    padding: 0 30px;
    margin: 0;
    font-weight: 600;
}

.counter_progetti h3 {
    padding: 0 20px;
    margin: 0;
    font-size: 35px;
}

.counter_green {
    background: #283593;
}
.counter_green .conuter_body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 20px 30px;
    gap: 10px;
}


.counter_green .conuter_body button{
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: #4d5ee3;
    border: none;
    color: white;
    padding: 10px;
    border-radius: 15px;
}


.counter_green .conuter_body button i {
    font-size: 25px;
}

.counter_red {
    background: linear-gradient(to top, crimson, red);
}

.counter_bianco {
    box-shadow: 2px 4px 5px #aaa;
    background: #fff;
}

.counter_progetti.counter_bianco h3 {
    color: #777;
}

.counter_progetti.counter_bianco p {
    color: #555;
}

.dashboard_header{
    padding: 10px;
}

.dashboard_content{
    padding: 20px;
}


.contenuto_page{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 20px;
    margin-right: 10px;
    padding: 20px;
    width: 80%;
}

.wrapper{
    background: rgb(248 249 250);
    height: calc(100vh - 109px);
}

.non_visibile {
    display: none;
}

ul div li{
    margin-left: 20px;
}


/*TABLE*/

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

tbody tr:nth-child(odd) {
    background-color: rgba(215,215,215,0.8); 
}

tbody tr:nth-child(even) {
    background-color: rgba(230,230,230,0.8);
}

th, td {
    padding: 10px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

tfoot tr td ,thead tr {
    padding: 10px;
    font-weight: bold;
    background-color: rgba(200,200,200,0.8);
}


td:has(a) {
    cursor: pointer;
}


.sidebar_user{
    color: #666;
    margin-top: auto;
    margin-left: 40px;
    font-size: 20px;
    display: flex;
    gap: 15px;
}

.counters_container .conuter_header {
    display: flex;
    justify-content: space-around;
    margin: 20px;
    margin-bottom: 0px;
}

.conuter_body {
    height: 55%;
    padding-top: 25px;
}

.counters_container:last-child .conuter_body {
    height: 60%;
    padding-top: 0px;
}

.diminuzione{
    color: rgb(220,50,50);
}
.aumento {
    color: rgb(0,180,0);
}

.counters_container:first-child .conuter_body h3 {
    color: rgb(40, 53, 147);
    padding: 5px 30px;
}

.counters_container:first-child .conuter_header i {
    color: rgb(40, 53, 147);
    background: rgba(65, 93, 233,0.5);
    padding: 10px;
    border-radius: 10px;
    font-size: 20px;
}

.counters_container:nth-child(2) .conuter_body h3 {
    color: rgb(206, 131, 70);
    padding: 5px 30px;
}

.counters_container:nth-child(2) .conuter_header i {
    color: rgb(206, 131, 70);
    background: rgba(205, 152, 112, 0.5);
    padding: 10px;
    border-radius: 10px;
    font-size: 20px;
}

