/* Appliquer les styles aux checkboxes, sauf ceux dans .wp-list-table */
input[type="checkbox"]:not(.wp-list-table input[type="checkbox"]) {
    appearance: none;
    -webkit-appearance: none;
    width: 45px;
    height: 25px;
    background-color: #ccc;
    border: none;
    border-radius: 26px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    box-sizing: border-box;
    margin-right: 10px;
}

/* Ajout du bouton à l'intérieur du switch */
input[type="checkbox"]:not(.wp-list-table input[type="checkbox"])::before {
    content: "" !important;
    position: absolute;
    top: 50%;
    left: 3px;
    transform: translate(0, -50%);
    width: 16px !important;
    height: 16px !important;
    background-color: white;
    border-radius: 50%;
    margin: 0 !important;
    transition: transform 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Changement de couleur lorsque coché */
input[type="checkbox"]:checked:not(.wp-list-table input[type="checkbox"]) {
    background-color: #4caf50;
}

/* Déplacement du bouton interne quand activé */
input[type="checkbox"]:checked:not(.wp-list-table input[type="checkbox"])::before {
    transform: translate(23px, -50%);
}
