body {
    margin: 0;
    padding: 0;
    font-size: 16px;
    background-color: #E7E0FD;
    height: 100vh;
    overflow: hidden;
}

input[type="text"],
input[type="email"],
input[type="number"],
select.form-control {
    background: transparent;
    border: none;
    border-bottom: 1px solid #000000;
    -webkit-box-shadow: none;
    box-shadow: none;
    border-radius: 0;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select.form-control:focus {
    -webkit-box-shadow: none;
    box-shadow: none;
    outline: none;
}

.card {
    opacity: 0; /* Inizia con opacità 0 */
    animation: fadeIn 0.5s forwards;
    padding: 30px;
    margin-left: 10px !important;
    margin-right: 10px !important;
    margin-bottom: 15px !important;
}

/* .card:not(#codice-centro) {
display: none;
} */

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#codice-centro {
    max-width: 450px;
}

#codice-centro .card-body {
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-login {
    background-color: rgba(171, 171, 171, 0.5);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    align-self: center;
    margin-top: 10px;

}

.btn-login:hover {
    background-color: #E7E0FD;
}

p {
    margin-top: 1.5rem !important;
    margin-bottom: 0.8rem !important;
}

#container-boxes-survey {
    display: flex;
    justify-content: center;
    margin: 20px;
    flex-wrap: wrap;
}

#form-questionarioUno .form-control,
#form-questionarioDue .form-control {
    padding: 0 !important;
}

a {
    color: #765ed9 !important;
}

.footer {
    position: fixed;
    bottom: 10px;
    right: 10px;

}

/* .footer-content {
position: absolute;
bottom: 15px;
} */




.inter-bold {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700; /* Usa un valore da 100 a 900 */
    font-style: normal;
    font-variation-settings:
    "slnt" 0;
}

.inter-light {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300; /* Usa un valore da 100 a 900 */
    font-style: normal;
    font-variation-settings:
    "slnt" 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 4vh;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 10px;
}

/* .container.index {
background-color: #f4f4f4;
} */

h1 {
    text-align: center;
    color: #333;
}

.select-site {
    text-align: center;
    margin-top: 30px;
}

.select-site label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
    font-size: 20px;
}

.select-site select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    max-width: 300px;
    cursor: pointer;
}

.article, .user {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.article, .user {
    opacity: 0; /* Inizia con opacità 0 */
    animation: fadeIn 0.5s forwards;
}

.loading {
    position: relative;
}

.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #000;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.faded {
    opacity: 0.5 !important;
    transition: opacity 0.5s !important;
}

.fade-out {
    animation: fadeOut 0.5s forwards !important;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

#siti-permessi {
    margin-bottom: 15px;
}


.article h3, .user h3 {
    margin: 0 0 10px;
}

.article p, .user p {
    margin: 0 0 10px;
    color: #666;
}

.container-aggiungi {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

button {
    background-color: #97DFE6;
    color: black;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #86C6CF;
}

.nav-item {
    transition: background-color 0.3s ease;
}

.nav-item:hover {
    background-color: #86C6CF;
}


#statusMessage {
    margin-top: 20px;
    text-align: center;
    font-size: 16px;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 2s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#toast {
    z-index: 1060 !important;
}

#toast.p-3 {
    padding: 0.5rem !important;
}

#toast.end-0 {
    right: 15px !important;
    z-index: 100;
}

#toast.bottom-0 {
    bottom: 15px !important;
    z-index: 100;
}

/* LOGIN */
.login-container .logo {
    display: block;
    text-align: center;
    margin-bottom: 40px;
}

.login-container img {
    width: 250px;
}

.login-box {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    padding: 40px;
    transform: translate(-50%, -50%);
    background: rgba(223, 223, 223, 0.4);
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 25px;
    text-align: center;
}


.login-box h2 {
    margin: 0 0 30px;
    padding: 0;
    color: #fff;
    text-align: center;
}

.login-box .user-box, .register-box .user-box {
    position: relative;
}

.login-box .user-box input,
.register-box .user-box input {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    margin-bottom: 30px;
    border: none;
    border-bottom: 1px solid #fff;
    outline: none;
    background: transparent;
}

.login-box .user-box label,
.register-box .user-box label {
    position: absolute;
    top: -3px;
    left: 0;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    pointer-events: none;
    transition: 0.5s;
    text-align: left;
}


input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active
{
    transition: background-color 5000s ease-in-out 0s;
    color: white;
}

.login-box input:-webkit-autofill::first-line,
.register-box input:-webkit-autofill::first-line {
    font-size: 16px;
    color: white;
}

.login-box .user-box input:focus ~ label,
.login-box .user-box input:valid ~ label,
.login-box .user-box input:-webkit-autofill ~ label,
.register-box .user-box input:focus ~ label,
.register-box .user-box input:valid ~ label,
.register-box .user-box input:-webkit-autofill ~ label {
    top: -28px;
    left: 0;
    color: var(--bgButton);
    font-size: 14px;
}

.navbar {
    margin: 0 auto;
    max-width: 1400px;
    background-color: #97DFE6 !important;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.dropdown-menu {
    left: auto !important;
    top: auto !important;
}

.navbar .active {
    background-color: #86C6CF;

}



.article-left {
    width: 80%;
    margin-right: 20px;
}

#createUtenteModal input {
    cursor: pointer;
}

#codice-centro #codice_centro {
    width: 300px;
}

@media only screen and (max-width: 768px) {
    .footer {
        position: static;
        margin-bottom: 20px;
        text-align: center;
        padding-bottom: 20px;
    }

    .btn-login {
        background-color: #a75ed5;
        color: white;
    }

    .mb-3 {
        margin-bottom: 2rem !important;
    }

    .form-select {
        margin-bottom: 1rem !important;
    }

    .col-sm-4 {
        margin-top: 15px !important;
        margin-bottom: 15px !important;
    }

    .col-sm-1 {
        margin-bottom: 15px !important;
    }
}


@media screen and (max-width: 692px) {
    .login-box {
        width: 310px;
        padding: 30px;
    }

    #codice-centro {
        width: 310px;
        padding: 30px;
    }

    #codice-centro p {
        text-align: center;
    }

    #codice-centro #codice_centro {
        width: 220px;
    }
}

@media only screen and (max-width: 600px) {
    .container h1 {
        display: none;
    }
}
