html {
    font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
    overflow-y: scroll; 
    scrollbar-gutter: stable; 
}

body {
    margin-bottom: 60px;
}
 /* Rende gli input completamente trasparenti quando il browser suggerisce valori. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px transparent inset !important;
    -webkit-text-fill-color: #111827 !important;
    background-color: transparent !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Per i browser non-webkit. */
input[data-autocompleted] {
    background-color: transparent !important;
}

/* Forza l’alzata della floating label quando il campo č autocompilato (autofill). */
.group input.peer:-webkit-autofill + label {
    transform: translateY(-0.75rem); 
    top: 0.75rem; 
    z-index: 0; 
    color: #0284c7; 
    font-weight: 500; 
}

@-moz-document url-prefix() {
    .group input.peer:-moz-ui-valid + label {
        transform: translateY(-0.75rem);
        top: 0.75rem;
        z-index: 0;
        color: #0284c7;
        font-weight: 500;
    }
}

.group input.peer:not(:placeholder-shown) + label {
    z-index: 0;
}

/* Bordo azzurro al focus per i checkbox nelle modali. */
#editUserModal input[type="checkbox"]:focus-visible,
#createUserModal input[type="checkbox"]:focus-visible {
    outline: 2px solid #0284c7;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(2,132,199,.25);
    border-color: #0284c7;
}

@supports not selector(:focus-visible) {
    #editUserModal input[type="checkbox"]:focus,
    #createUserModal input[type="checkbox"]:focus {
        outline: 2px solid #0284c7;
        outline-offset: 2px;
        box-shadow: 0 0 0 3px rgba(2,132,199,.25);
        border-color: #0284c7;
    }
}



