.page-fade-enter-active,
.page-fade-leave-active {
    transition: opacity 0.5s ease, transform 0.35s ease;
}
.page-fade-enter-from,
.page-fade-leave-to {
    opacity: 0;
    transform: translateY(12px);
}

.fade-slide-enter-active,
.fade-slide-leave-active {
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.fade-slide-enter-from,
.fade-slide-leave-to {
    opacity: 0;
    transform: translateY(8px);
}

.loader-center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    animation: rotate 1s linear infinite;
}

/* FIX: ensure utentiLoader has explicit size and positioning so ::before is bounded */
.utentiLoader {
    display: inline-block;
    width: 48px;
    height: 48px;
    position: relative; /* reference for absolute ::before */
    box-sizing: border-box;
    border-radius: 50%;
    animation: rotate 1s linear infinite; /* add rotation like original */
}

    .utentiLoader::before {
        content: "";
        box-sizing: border-box;
        position: absolute;
        inset: 0px;
        border-radius: 50%;
        border: 5px solid #7924A9;
        animation: prixClipFix 2s linear infinite;
    }

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes prixClipFix {
    0% {
        clip-path: polygon(50% 50%,0 0,0 0,0 0,0 0,0 0);
    }

    25% {
        clip-path: polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0);
    }

    50% {
        clip-path: polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%);
    }

    75% {
        clip-path: polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%);
    }

    100% {
        clip-path: polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0);
    }
}

.editResp{
    margin-bottom:1rem;
}

.utentiTableActionsButton {
    border: 0;
    margin-right: 0.3rem;
    color: transparent;
    background-color: transparent;
    padding: 0.3rem 0.5rem;
    border-radius: 5px;
    opacity: 0;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

/* Aule: le etichette azione restano sempre leggermente visibili */
.utentiTableActionsButton.aulaTableActionsButton {
    opacity: 0.38;
    color: rgba(0, 0, 0, 0.55);
}

/* Hover riga -> mostra tutti */
.p-datatable-tbody tr:hover .utentiTableActionsButton,
.table tbody tr:hover .utentiTableActionsButton {
    opacity: 1;
    color: black;
    background-color: transparent;
}

.p-datatable-tbody tr:hover td:has(.utentiTableActionsButton:hover)
.utentiTableActionsButton,
.table tbody tr:hover td:has(.utentiTableActionsButton:hover)
.utentiTableActionsButton {
    opacity: 1;
    background-color: #009EE0;
    background-color: transparent;
    color: black;
}

.p-datatable-tbody tr:hover .utentiTableActionsButton:hover,
.table tbody tr:hover .utentiTableActionsButton:hover {
    opacity: 1 !important;
    background-color: #009EE0 !important;
    color: white !important;
    transform: scale(1.12);
}

.btn-secondary:hover,
.btn-outline-secondary:hover,
.btn-secondary:active,
.btn-secondary:focus,
.btn-secondary {
    color: white !important;
}

.infoUploadFiles{
    margin-top:1.6rem;
}

.infoUploadFiles p{
    color:darkgray;
    margin:0;
    font-size:0.8rem;
}

.btn-riepilogo-presenze {
    margin-left:0.5rem;
    color: #fff;
    background-color: green;
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}